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 | Entity
| AutonomousNumber | AutonomousNumber
| IpNetwork; | IpNetwork;
export type ObjectProps = { export type ObjectProps = {
data: ParsedGeneric; data: ParsedGeneric;
url?: string; url?: string;

View File

@@ -1,5 +1,5 @@
// see https://www.iana.org/assignments/rdap-json-values // 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> = { export const rdapStatusInfo: Record<RdapStatusType, string> = {
validated: validated:
@@ -82,10 +82,10 @@ export const registryURLs: Record<RootRegistryType, string> = {
export const placeholders: Record<SimplifiedTargetType | "auto", string> = { export const placeholders: Record<SimplifiedTargetType | "auto", string> = {
auto: "A domain, an IP address, a TLD, an RDAP URL...", auto: "A domain, an IP address, a TLD, an RDAP URL...",
ip: "192.168.0.1/16 or 2001:db8::/32", ip: "192.168.0.1/16 or 2001:db8::/32",
autnum: "65535", autnum: "AS27594",
entity: "ABC123-EXAMPLE", entity: "ABC123-EXAMPLE",
url: "https://rdap.org/domain/example.com", url: "https://rdap.org/domain/example.com",
tld: "example", tld: ".dev",
registrar: "9999", registrar: "9999",
json: "{ (paste JSON) }", json: "{ (paste JSON) }",
domain: "example.com", domain: "example.com",

View File

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