Skip to content

Commit

Permalink
Reapply "fix icons and types"
Browse files Browse the repository at this point in the history
This reverts commit a3e9d76.
  • Loading branch information
aelew committed Nov 29, 2024
1 parent a3e9d76 commit 5b4cd58
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export default async function SubdomainFinderResultPage({
}

const ipStore: Record<string, number> = {};
result.data.forEach((record) =>
ipStore[record.ip] ? (ipStore[record.ip] += 1) : (ipStore[record.ip] = 1)
);
result.data.forEach((record) => {
ipStore[record.ip] = (ipStore[record.ip] ?? 0) + 1;
});
const mostCommonIp = Object.keys(ipStore).sort(
(a, b) => ipStore[b]! - ipStore[a]!
)[0];
Expand Down
15 changes: 15 additions & 0 deletions src/components/icons/docusign.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { SVGProps } from 'react';

export function DocusignIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<title>DocuSign</title>
<path d="M9.517 3.31h4.966v6.621h3.31L12 16.552 6.207 9.931h3.31V3.31zM0 19.034h24v1.655H0v-1.655z" />
</svg>
);
}
43 changes: 43 additions & 0 deletions src/components/icons/microsoft.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import type { SVGProps } from 'react';

export function MicrosoftIcon(props: SVGProps<SVGSVGElement>) {
return (
<svg
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<title>Microsoft</title>
<path d="M0 0v11.408h11.408V0zm12.594 0v11.408H24V0zM0 12.594V24h11.408V12.594zm12.594 0V24H24V12.594z" />
</svg>
);
}

export function MicrosoftOutlook(props: SVGProps<SVGSVGElement>) {
return (
<svg
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<title>Microsoft Outlook</title>
<path d="M7.88 12.04q0 .45-.11.87-.1.41-.33.74-.22.33-.58.52-.37.2-.87.2t-.85-.2q-.35-.21-.57-.55-.22-.33-.33-.75-.1-.42-.1-.86t.1-.87q.1-.43.34-.76.22-.34.59-.54.36-.2.87-.2t.86.2q.35.21.57.55.22.34.31.77.1.43.1.88zM24 12v9.38q0 .46-.33.8-.33.32-.8.32H7.13q-.46 0-.8-.33-.32-.33-.32-.8V18H1q-.41 0-.7-.3-.3-.29-.3-.7V7q0-.41.3-.7Q.58 6 1 6h6.5V2.55q0-.44.3-.75.3-.3.75-.3h12.9q.44 0 .75.3.3.3.3.75V10.85l1.24.72h.01q.1.07.18.18.07.12.07.25zm-6-8.25v3h3v-3zm0 4.5v3h3v-3zm0 4.5v1.83l3.05-1.83zm-5.25-9v3h3.75v-3zm0 4.5v3h3.75v-3zm0 4.5v2.03l2.41 1.5 1.34-.8v-2.73zM9 3.75V6h2l.13.01.12.04v-2.3zM5.98 15.98q.9 0 1.6-.3.7-.32 1.19-.86.48-.55.73-1.28.25-.74.25-1.61 0-.83-.25-1.55-.24-.71-.71-1.24t-1.15-.83q-.68-.3-1.55-.3-.92 0-1.64.3-.71.3-1.2.85-.5.54-.75 1.3-.25.74-.25 1.63 0 .85.26 1.56.26.72.74 1.23.48.52 1.17.81.69.3 1.56.3zM7.5 21h12.39L12 16.08V17q0 .41-.3.7-.29.3-.7.3H7.5zm15-.13v-7.24l-5.9 3.54Z" />
</svg>
);
}

export function MicrosoftAzure(props: SVGProps<SVGSVGElement>) {
return (
<svg
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<title>Microsoft Azure</title>
<path d="M22.379 23.343a1.62 1.62 0 0 0 1.536-2.14v.002L17.35 1.76A1.62 1.62 0 0 0 15.816.657H8.184A1.62 1.62 0 0 0 6.65 1.76L.086 21.204a1.62 1.62 0 0 0 1.536 2.139h4.741a1.62 1.62 0 0 0 1.535-1.103l.977-2.892 4.947 3.675c.28.208.618.32.966.32m-3.084-12.531 3.624 10.739a.54.54 0 0 1-.51.713v-.001h-.03a.54.54 0 0 1-.322-.106l-9.287-6.9h4.853m6.313 7.006c.116-.326.13-.694.007-1.058L9.79 1.76a1.722 1.722 0 0 0-.007-.02h6.034a.54.54 0 0 1 .512.366l6.562 19.445a.54.54 0 0 1-.338.684" />
</svg>
);
}
37 changes: 20 additions & 17 deletions src/lib/resources/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
SiAdobe,
SiAirtable,
SiAkamai,
SiAmazonaws,
SiAmazonwebservices,
SiApple,
SiAtlassian,
SiBox,
Expand All @@ -12,7 +12,6 @@ import {
SiCalendly,
SiCanva,
SiDocker,
SiDocusign,
SiDropbox,
SiFacebook,
SiFastly,
Expand All @@ -30,9 +29,6 @@ import {
SiLogmein,
SiLoom,
SiMailgun,
SiMicrosoft,
SiMicrosoftazure,
SiMicrosoftoutlook,
SiMiro,
SiMixpanel,
SiMongodb,
Expand All @@ -50,7 +46,6 @@ import {
SiStripe,
SiTutanota,
SiTwilio,
SiTwitter,
SiVercel,
SiWix,
SiWordpress,
Expand All @@ -61,7 +56,13 @@ import {
} from '@icons-pack/react-simple-icons';

import { CloudflareIcon } from '@/components/icons/cloudflare';
import { DocusignIcon } from '@/components/icons/docusign';
import { GoogleIcon } from '@/components/icons/google';
import {
MicrosoftAzure,
MicrosoftIcon,
MicrosoftOutlook
} from '@/components/icons/microsoft';
import { SkiffIcon } from '@/components/icons/skiff';

export const SERVICES = [
Expand All @@ -88,8 +89,14 @@ export const SERVICES = [
matches: ['akadns.net', '.edgesuite.net']
},
{
icon: SiAmazonaws,
matches: ['.amazon.com', '.awsdns-', '.amazonaws.com', '.cloudfront.net']
icon: SiAmazonwebservices,
matches: [
'.amazon.com',
'.awsdns-',
'.amazonaws.com',
'.cloudfront.net',
'amazonses:'
]
},
{
icon: SiWix,
Expand All @@ -99,10 +106,6 @@ export const SERVICES = [
icon: SiNamecheap,
matches: ['.registrar-servers.com']
},
{
icon: SiAmazonaws,
matches: ['amazonses:']
},
{
icon: SiBrevo,
matches: ['brevo-code:', 'sendinblue-code:']
Expand Down Expand Up @@ -228,11 +231,11 @@ export const SERVICES = [
matches: ['mailgun.org', 'mgverify=']
},
{
icon: SiDocusign,
icon: DocusignIcon,
matches: ['docusign=']
},
{
icon: SiMicrosoftazure,
icon: MicrosoftAzure,
matches: [
'.azure-dns.',
'.azureedge.net',
Expand Down Expand Up @@ -269,15 +272,15 @@ export const SERVICES = [
matches: ['.icloud.com', ':icloud.com']
},
{
icon: SiMicrosoft,
icon: MicrosoftIcon,
matches: ['.microsoft.com']
},
{
icon: SiMicrosoftoutlook,
icon: MicrosoftOutlook,
matches: ['.outlook.com']
},
{
icon: SiTwitter,
icon: SiX,
matches: ['.twitter.com', '.twtrdns.net']
},
{
Expand Down

0 comments on commit 5b4cd58

Please sign in to comment.