From 8218210c41ce1d606482d7f614c6bb127900687c Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 20 Feb 2023 00:24:37 -0600 Subject: [PATCH] Update constants, remove unused inputRef --- src/constants.ts | 19 ++++++++++--------- src/pages/index.tsx | 1 - 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 5ae5a15..578cd91 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,5 +1,5 @@ // see https://www.iana.org/assignments/rdap-json-values -import type {RegistryType, RdapStatusType, ObjectType} from "@/types"; +import type {RdapStatusType, RootRegistryType, TargetType} 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.", @@ -39,16 +39,17 @@ export const rdapStatusInfo: Record = { }; // list of RDAP bootstrap registry URLs -export const registryURLs: Record = { - "https://data.iana.org/rdap/asn.json": "autnum", - "https://data.iana.org/rdap/dns.json": "domain", - "https://data.iana.org/rdap/ipv4.json": "ip4", - "https://data.iana.org/rdap/ipv6.json": "ip6", - "https://data.iana.org/rdap/object-tags.json": "entity", +export const registryURLs: Record = { + "autnum": "https://data.iana.org/rdap/asn.json", + "domain": "https://data.iana.org/rdap/dns.json", + "ip4": "https://data.iana.org/rdap/ipv4.json", + "ip6": "https://data.iana.org/rdap/ipv6.json", + "entity": "https://data.iana.org/rdap/object-tags.json", }; -export const placeholders: Record = { - 'ip': '192.168.0.1/16', +export const placeholders: Record = { + 'ip4': '192.168.0.1/16', + 'ip6': 'TODO: Complete this placeholder', 'autnum': '65535', 'entity': 'ABC123-EXAMPLE', 'url': 'https://rdap.org/domain/example.com', diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 6f6224d..c768996 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -8,7 +8,6 @@ import {OGP} from "react-ogp"; const Index: NextPage = () => { const {error, setTarget, submit, currentType} = useLookup(); - const inputRef = useRef(); const [response, setResponse] = useState(); return (