diff --git a/index.html b/index.html deleted file mode 100644 index 12fbb34..0000000 --- a/index.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - RDAP Lookup - a private domain name lookup tool - - - - - - - - - - - -
- -
- -
-
-
- -
- -
- - {}} /> -
- -
-
-
-
- -
-
- Options:  - -   - -
-
- -
- -

This page implements a completely private lookup tool for domain names, IP addresses and Autonymous System Numbers (ASNs). Only the relevant registry sees your query: your browser will directly connect to the registry's RDAP server using an encrypted HTTPS connection to protect the confidentiality of your query. If you click the "Follow referral to registrar's RDAP record" checkbox, then the sponsoring registrar may also see your query.

- - -
- - - - diff --git a/src/components/Domain.tsx b/src/components/Domain.tsx index 9003aa8..8fc177e 100644 --- a/src/components/Domain.tsx +++ b/src/components/Domain.tsx @@ -1,6 +1,7 @@ -import React, {Fragment, FunctionComponent, ReactNode} from "react"; -import {DomainType} from "./DomainType"; -import {rdapStatusInfo} from "../constants"; +import type {FunctionComponent, ReactNode} from "react"; +import React, {Fragment} from "react"; +import type {DomainType} from "@/components/DomainType"; +import {rdapStatusInfo} from "@/constants"; export type DomainProps = { data: DomainType; diff --git a/src/components/DomainType.tsx b/src/components/DomainType.tsx index 032c5c3..c6e61e5 100644 --- a/src/components/DomainType.tsx +++ b/src/components/DomainType.tsx @@ -1,6 +1,5 @@ import type {FunctionComponent} from "react"; -import {useMemo} from "react"; -import Domain from "./Domain"; +import Domain from "@/components/Domain"; export type Link = { value: string; diff --git a/src/components/Events.tsx b/src/components/Events.tsx index d670b06..983e9ed 100644 --- a/src/components/Events.tsx +++ b/src/components/Events.tsx @@ -1,4 +1,4 @@ -import {FunctionComponent} from "react"; +import type {FunctionComponent} from "react"; export type Event = { eventAction: string; diff --git a/src/constants.ts b/src/constants.ts index dcdff17..9d8ad18 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,5 +1,5 @@ // see https://www.iana.org/assignments/rdap-json-values -import type {ExtendedUri, RdapStatusType, Uri} from "./types"; +import type {ExtendedUri, RdapStatusType, Uri} from "@/types"; export const rdapStatusInfo: Record = { "validated": "Signifies that the data of the object instance has been found to be accurate. This type of status is usually found on entity object instances to note the validity of identifying contact information.", diff --git a/src/rdap.ts b/src/rdap.ts index e5ef314..1a949cf 100644 --- a/src/rdap.ts +++ b/src/rdap.ts @@ -1,6 +1,6 @@ import ipaddr from "ipaddr.js"; -import {registryURLs, rdapStatusInfo, placeholders} from "./constants"; -import type {Uri} from "./types"; +import {rdapStatusInfo, registryURLs} from "@/constants"; +import type {Uri} from "@/types"; // keeps track of how many registries we've loaded let loadedRegistries = 0; diff --git a/tsconfig.json b/tsconfig.json index 658068a..b0e3c57 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,11 @@ { "compilerOptions": { "target": "es2017", - "lib": ["dom", "dom.iterable", "esnext"], + "lib": [ + "dom", + "dom.iterable", + "esnext" + ], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -14,8 +18,25 @@ "isolatedModules": true, "jsx": "preserve", "incremental": true, - "noUncheckedIndexedAccess": true + "noUncheckedIndexedAccess": true, + "baseUrl": "./src/", + "paths": { + "@/config/*": [ + "../config/*" + ], + "@/*": [ + "./*" + ] + } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.mjs"], - "exclude": ["node_modules"] + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + "**/*.cjs", + "**/*.mjs" + ], + "exclude": [ + "node_modules" + ] }