Update constants, remove unused inputRef

This commit is contained in:
Xevion
2023-02-20 00:24:37 -06:00
parent 4166c0cd5e
commit 8218210c41
2 changed files with 10 additions and 10 deletions

View File

@@ -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<RdapStatusType, string> = {
"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<RdapStatusType, string> = {
};
// list of RDAP bootstrap registry URLs
export const registryURLs: Record<string, RegistryType> = {
"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<RootRegistryType, string> = {
"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<ObjectType, string> = {
'ip': '192.168.0.1/16',
export const placeholders: Record<TargetType, string> = {
'ip4': '192.168.0.1/16',
'ip6': 'TODO: Complete this placeholder',
'autnum': '65535',
'entity': 'ABC123-EXAMPLE',
'url': 'https://rdap.org/domain/example.com',

View File

@@ -8,7 +8,6 @@ import {OGP} from "react-ogp";
const Index: NextPage = () => {
const {error, setTarget, submit, currentType} = useLookup();
const inputRef = useRef<HTMLInputElement>();
const [response, setResponse] = useState<ParsedGeneric | null>();
return (