From 7ad173e81e721fc367c08a77f6d4dab6da61451d Mon Sep 17 00:00:00 2001 From: Felix Wotschofsky Date: Mon, 23 Dec 2024 15:07:29 +0100 Subject: [PATCH] =?UTF-8?q?Reorganize=20components=20=F0=9F=8F=97=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/{lookup/[domain] => }/_components/copy-button.tsx | 0 app/{lookup/[domain] => }/_components/domain-link.tsx | 0 app/{lookup/[domain] => }/_components/ip-details-modal.tsx | 0 app/{lookup/[domain] => }/_components/location-map.tsx | 0 app/_components/search-form.tsx | 2 +- app/lookup/[domain]/(dns)/_components/record-row.tsx | 2 +- app/lookup/[domain]/(dns)/_components/stacked-record.tsx | 2 +- app/lookup/[domain]/_components/ip-link.tsx | 2 +- app/lookup/[domain]/certs/_components/table.tsx | 2 +- app/lookup/[domain]/layout.tsx | 4 ++-- app/lookup/[domain]/subdomains/_components/table.tsx | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) rename app/{lookup/[domain] => }/_components/copy-button.tsx (100%) rename app/{lookup/[domain] => }/_components/domain-link.tsx (100%) rename app/{lookup/[domain] => }/_components/ip-details-modal.tsx (100%) rename app/{lookup/[domain] => }/_components/location-map.tsx (100%) diff --git a/app/lookup/[domain]/_components/copy-button.tsx b/app/_components/copy-button.tsx similarity index 100% rename from app/lookup/[domain]/_components/copy-button.tsx rename to app/_components/copy-button.tsx diff --git a/app/lookup/[domain]/_components/domain-link.tsx b/app/_components/domain-link.tsx similarity index 100% rename from app/lookup/[domain]/_components/domain-link.tsx rename to app/_components/domain-link.tsx diff --git a/app/lookup/[domain]/_components/ip-details-modal.tsx b/app/_components/ip-details-modal.tsx similarity index 100% rename from app/lookup/[domain]/_components/ip-details-modal.tsx rename to app/_components/ip-details-modal.tsx diff --git a/app/lookup/[domain]/_components/location-map.tsx b/app/_components/location-map.tsx similarity index 100% rename from app/lookup/[domain]/_components/location-map.tsx rename to app/_components/location-map.tsx diff --git a/app/_components/search-form.tsx b/app/_components/search-form.tsx index 13bf7c4..9d6eb77 100644 --- a/app/_components/search-form.tsx +++ b/app/_components/search-form.tsx @@ -31,7 +31,7 @@ import { isValidDomain, } from '@/lib/utils'; -import { IpDetailsModal } from '../lookup/[domain]/_components/ip-details-modal'; +import { IpDetailsModal } from './ip-details-modal'; const normalizeDomain = (input: string) => { let tDomain; diff --git a/app/lookup/[domain]/(dns)/_components/record-row.tsx b/app/lookup/[domain]/(dns)/_components/record-row.tsx index e309bd4..8316e83 100644 --- a/app/lookup/[domain]/(dns)/_components/record-row.tsx +++ b/app/lookup/[domain]/(dns)/_components/record-row.tsx @@ -7,7 +7,7 @@ import { TableCell, TableRow } from '@/components/ui/table'; import type { RecordContextEntry } from '@/lib/record-context'; import { cn, DOMAIN_REGEX, IPV4_REGEX, IPV6_REGEX } from '@/lib/utils'; -import { DomainLink } from '../../_components/domain-link'; +import { DomainLink } from '../../../../_components/domain-link'; import { IpLink } from '../../_components/ip-link'; import { RecordSubvalues } from './record-subvalues'; diff --git a/app/lookup/[domain]/(dns)/_components/stacked-record.tsx b/app/lookup/[domain]/(dns)/_components/stacked-record.tsx index 45464dd..fd36555 100644 --- a/app/lookup/[domain]/(dns)/_components/stacked-record.tsx +++ b/app/lookup/[domain]/(dns)/_components/stacked-record.tsx @@ -3,7 +3,7 @@ import reactStringReplace from 'react-string-replace'; import type { RecordContextEntry } from '@/lib/record-context'; -import { DomainLink } from '../../_components/domain-link'; +import { DomainLink } from '../../../../_components/domain-link'; import { IpLink } from '../../_components/ip-link'; import { RecordSubvalues } from './record-subvalues'; diff --git a/app/lookup/[domain]/_components/ip-link.tsx b/app/lookup/[domain]/_components/ip-link.tsx index 97e717f..2077e3b 100644 --- a/app/lookup/[domain]/_components/ip-link.tsx +++ b/app/lookup/[domain]/_components/ip-link.tsx @@ -12,7 +12,7 @@ import { import { useAnalytics } from '@/lib/analytics'; -import { IpDetailsModal } from './ip-details-modal'; +import { IpDetailsModal } from '../../../_components/ip-details-modal'; type IpLinkProps = { value: string; diff --git a/app/lookup/[domain]/certs/_components/table.tsx b/app/lookup/[domain]/certs/_components/table.tsx index 9fa560a..b1619f5 100644 --- a/app/lookup/[domain]/certs/_components/table.tsx +++ b/app/lookup/[domain]/certs/_components/table.tsx @@ -6,7 +6,7 @@ import { SortableTable } from '@/components/sortable-table'; import type { CertsData } from '@/lib/certs'; import { isValidDomain } from '@/lib/utils'; -import { DomainLink } from '../../_components/domain-link'; +import { DomainLink } from '../../../../_components/domain-link'; type CertsTableProps = { certs: CertsData; diff --git a/app/lookup/[domain]/layout.tsx b/app/lookup/[domain]/layout.tsx index 43c3618..a2cb7a0 100644 --- a/app/lookup/[domain]/layout.tsx +++ b/app/lookup/[domain]/layout.tsx @@ -7,12 +7,12 @@ import { type FC, type ReactNode } from 'react'; import { Card } from '@/components/ui/card'; -import { Footer } from '@/app/_components/footer'; -import { Header } from '@/app/_components/header'; import { getVisitorIp, isUserBot } from '@/lib/api'; import { recordLookup } from '@/lib/search'; import { isValidDomain, isWildcardDomain } from '@/lib/utils'; +import { Footer } from '../../_components/footer'; +import { Header } from '../../_components/header'; import { RelatedDomains } from './_components/related-domains'; import { ResultsTabs } from './_components/results-tabs'; import { ShareButton } from './_components/share-button'; diff --git a/app/lookup/[domain]/subdomains/_components/table.tsx b/app/lookup/[domain]/subdomains/_components/table.tsx index 3154cf8..660fd70 100644 --- a/app/lookup/[domain]/subdomains/_components/table.tsx +++ b/app/lookup/[domain]/subdomains/_components/table.tsx @@ -12,7 +12,7 @@ import { import { SortableTable } from '@/components/sortable-table'; -import { DomainLink } from '../../_components/domain-link'; +import { DomainLink } from '../../../../_components/domain-link'; type SubdomainsTableProps = { results: {