type/import fixes, improve placeholder examples

This commit is contained in:
2024-05-11 01:19:57 -05:00
parent 83402d54f5
commit 19c3442144
3 changed files with 4 additions and 4 deletions

View File

@@ -15,6 +15,7 @@ export type ParsedGeneric =
| Entity
| AutonomousNumber
| IpNetwork;
export type ObjectProps = {
data: ParsedGeneric;
url?: string;

View File

@@ -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<RdapStatusType, string> = {
validated:
@@ -82,10 +82,10 @@ export const registryURLs: Record<RootRegistryType, string> = {
export const placeholders: Record<SimplifiedTargetType | "auto", string> = {
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",

View File

@@ -1,4 +1,3 @@
import Link from "next/link";
import { z } from "zod";
export const TargetTypeEnum = z.enum([