From 19c34421443c6cb7ed8e8d28d2c8d6be5864f02f Mon Sep 17 00:00:00 2001 From: Xevion Date: Sat, 11 May 2024 01:19:57 -0500 Subject: [PATCH] type/import fixes, improve placeholder examples --- src/components/lookup/Generic.tsx | 1 + src/constants.ts | 6 +++--- src/schema.ts | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/lookup/Generic.tsx b/src/components/lookup/Generic.tsx index 67cddf9..381eebd 100644 --- a/src/components/lookup/Generic.tsx +++ b/src/components/lookup/Generic.tsx @@ -15,6 +15,7 @@ export type ParsedGeneric = | Entity | AutonomousNumber | IpNetwork; + export type ObjectProps = { data: ParsedGeneric; url?: string; diff --git a/src/constants.ts b/src/constants.ts index 7c933e7..47931c5 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,5 +1,5 @@ // see https://www.iana.org/assignments/rdap-json-values -import type { RdapStatusType, RootRegistryType, SimplifiedTargetType, TargetType } from "@/types"; +import type { RdapStatusType, RootRegistryType, SimplifiedTargetType } from "@/types"; export const rdapStatusInfo: Record = { validated: @@ -82,10 +82,10 @@ export const registryURLs: Record = { export const placeholders: Record = { auto: "A domain, an IP address, a TLD, an RDAP URL...", ip: "192.168.0.1/16 or 2001:db8::/32", - autnum: "65535", + autnum: "AS27594", entity: "ABC123-EXAMPLE", url: "https://rdap.org/domain/example.com", - tld: "example", + tld: ".dev", registrar: "9999", json: "{ (paste JSON) }", domain: "example.com", diff --git a/src/schema.ts b/src/schema.ts index 63018b1..0c846f0 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -1,4 +1,3 @@ -import Link from "next/link"; import { z } from "zod"; export const TargetTypeEnum = z.enum([