Full Toolkit for Next-Level Domain Analysis
Reorganize components 🏗️
Felix Wotschofsky7ad173e81e72
diff --git a/app/lookup/[domain]/_components/copy-button.tsx b/app/_components/copy-button.tsxsimilarity index 100%rename from app/lookup/[domain]/_components/copy-button.tsxrename to app/_components/copy-button.tsxdiff --git a/app/lookup/[domain]/_components/domain-link.tsx b/app/_components/domain-link.tsxsimilarity index 100%rename from app/lookup/[domain]/_components/domain-link.tsxrename to app/_components/domain-link.tsxdiff --git a/app/lookup/[domain]/_components/ip-details-modal.tsx b/app/_components/ip-details-modal.tsxsimilarity index 100%rename from app/lookup/[domain]/_components/ip-details-modal.tsxrename to app/_components/ip-details-modal.tsxdiff --git a/app/lookup/[domain]/_components/location-map.tsx b/app/_components/location-map.tsxsimilarity index 100%rename from app/lookup/[domain]/_components/location-map.tsxrename to app/_components/location-map.tsxdiff --git a/app/_components/search-form.tsx b/app/_components/search-form.tsxindex 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.tsxindex 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.tsxindex 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.tsxindex 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.tsxindex 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.tsxindex 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.tsxindex 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: {