mirror of
https://github.com/Xevion/rdap.git
synced 2025-12-13 06:12:35 -06:00
type/import fixes, improve placeholder examples
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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([
|
||||||
|
|||||||
Reference in New Issue
Block a user