Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaathis committed Nov 3, 2023
1 parent 46d31fb commit 60ad709
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 19 deletions.
3 changes: 1 addition & 2 deletions app/lookup/[domain]/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ import { Badge } from '@/components/ui/badge';
import DnsTable from '@/components/DnsTable';
import DomainNotRegistered from '@/components/DomainNotRegistered';
import Loader from '@/components/Loader';
import DnsRecordsWidget from '@/components/overview/DnsRecordsWidget';
import RecordList from '@/components/overview/RecordList';
import SecurityWidget from '@/components/overview/SecurityWidget';
import whois, { isAvailable } from '@/lib/whois';
import DnsRecordsWidget from '@/components/overview/DnsRecordsWidget';

export const fetchCache = 'default-no-store';

const LookupDomain = async ({ params: { domain } }) => {

const whoisResult = whoiser.firstResult(
await whoiser(domain, {
timeout: 3000,
Expand Down
32 changes: 25 additions & 7 deletions components/CreditsInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,47 @@
import {
Button,
Popover, PopoverContent, PopoverTrigger,
Popover,
PopoverContent,
PopoverTrigger,
} from '@nextui-org/react';
import { MedalIcon } from 'lucide-react';
import { redirect } from 'next/navigation';
import React, { FC } from 'react';

const CreditsInfo: FC = () => {
return (
<Popover showArrow placement="top" radius="sm"
<Popover
showArrow
placement="top"
radius="sm"
classNames={{
base: 'p-0 border-small border-divider bg-background',
arrow: 'bg-default-200',
}}>
}}
>
<PopoverTrigger>
<Button variant="ghost" className="bg-background" disableRipple>
<MedalIcon />
</Button>
</PopoverTrigger>
<PopoverContent
className="p-3 rounded-md text-default-500 transition-opacity"
<PopoverContent className="rounded-md p-3 text-default-500 transition-opacity">
originally created by{' '}
<a
className="decoration-offset-4 hover:underline"
target="_blank"
href="https://github.com/wotschofsky"
>
originally created by <a className="decoration-offset-4 hover:underline" target="_blank" href="https://github.com/wotschofsky">Felix Wotschofsky</a>
Felix Wotschofsky
</a>
<br />
forked by <a className="decoration-offset-4 hover:underline" target="_blank" href="https://github.com/maaaathis">maaaathis</a>
forked by{' '}
<a
className="decoration-offset-4 hover:underline"
target="_blank"
href="https://github.com/maaaathis"
>
maaaathis
</a>
</PopoverContent>
</Popover>
);
Expand Down
3 changes: 2 additions & 1 deletion components/ExternalFavicon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
'use client'
'use client';

import Image from 'next/image';
import { type FC, useCallback, useState } from 'react';

Expand Down
18 changes: 9 additions & 9 deletions components/overview/DnsRecordsWidget.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { XSquareIcon } from 'lucide-react';
import { FC } from 'react';

import DnsLookup from '@/utils/DnsLookup';
import RecordList from './RecordList';

import { XSquareIcon } from 'lucide-react';
import RecordList from './RecordList';

interface DnsRecordsWidgetProps {
type:
Expand Down Expand Up @@ -46,15 +46,15 @@ const DnsRecordsWidget: FC<DnsRecordsWidgetProps> = async ({
{Object.values(records).map((record) => {
return (
<li key={record.data.split(' ')[1]}>
{type == "MX" ? (
<a
className="cursor-pointer decoration-slate-700 decoration-dotted underline-offset-4 hover:underline dark:decoration-slate-300"
href={`/lookup/${record.data.split(' ')[1]}`}
>
{record.data.split(' ')[1]}
{type == 'MX' ? (
<a
className="cursor-pointer decoration-slate-700 decoration-dotted underline-offset-4 hover:underline dark:decoration-slate-300"
href={`/lookup/${record.data.split(' ')[1]}`}
>
{record.data.split(' ')[1]}
</a>
) : (
<RecordList record={record.data} />
<RecordList record={record.data} />
)}
</li>
);
Expand Down

0 comments on commit 60ad709

Please sign in to comment.