No SSL certificate found.
@@ -18,22 +43,12 @@ const SslTable: React.FC<{
) : (
-
- | Issuer |
- {content.issuer?.friendly_name} |
-
-
- | Covers |
- {content.dns_names?.join(', ')} |
-
-
- | Issued On |
- {new Date(content.not_before).toLocaleDateString()} |
-
-
- | Expires On |
- {new Date(content.not_after).toLocaleDateString()} |
-
+ {sslRows.map(({ label, value }) => (
+
+ | {label} |
+ {value} |
+
+ ))}
)}
diff --git a/src/components/WhoisTable.tsx b/src/components/WhoisTable.tsx
index 7d2d0a4..236d8ec 100644
--- a/src/components/WhoisTable.tsx
+++ b/src/components/WhoisTable.tsx
@@ -1,5 +1,6 @@
import React, { useMemo } from 'react';
import { getDays } from '../helpers/getDays';
+import Loading from './Loading';
const WhoisTable: React.FC<{
// eslint-disable-next-line @typescript-eslint/no-explicit-any
content: Record
| undefined;
@@ -24,9 +25,9 @@ const WhoisTable: React.FC<{
? name_servers
: name_servers.substring(0, name_servers.indexOf(' ')),
Registered_On: new Date(creation_date).toLocaleDateString(),
- Expires_On: `${new Date(expiration_date).toLocaleDateString()} (${getDays(
+ Expires_On: `${new Date(
expiration_date
- )} days)`,
+ ).toLocaleDateString()} (in ${getDays(expiration_date)} days)`,
Last_updated_On: new Date(updated_date).toLocaleDateString(),
Status: Array.isArray(status)
? status.map((s: string) => s.substring(0, s.indexOf(' ')))
@@ -45,9 +46,7 @@ const WhoisTable: React.FC<{
return (
{loading ? (
-
-
-
+
) : !content ? (
Whois data could not be fetched.
@@ -55,18 +54,18 @@ const WhoisTable: React.FC<{
) : (
- {whoisRows.map(row => (
-
- | {row.label} |
+ {whoisRows.map(({ label, value }) => (
+
+ | {label} |
- {Array.isArray(row.value) ? (
+ {Array.isArray(value) ? (
- {row.value.map((r: string, idx: number) => (
+ {value.map((r: string, idx: number) => (
- {r}
))}
) : (
- row.value
+ value
)}
|
diff --git a/src/enums/SslStatus.enum.ts b/src/enums/SslStatus.enum.ts
new file mode 100644
index 0000000..c5b3d2c
--- /dev/null
+++ b/src/enums/SslStatus.enum.ts
@@ -0,0 +1,4 @@
+export enum SslStatus {
+ ACTIVE = 'Active',
+ EXPIRED = 'Expired',
+}
diff --git a/src/index.css b/src/index.css
index bb67ee6..7bee2b2 100644
--- a/src/index.css
+++ b/src/index.css
@@ -36,4 +36,5 @@ html {
https://github.com/saadeghi/daisyui/issues/3040#issuecomment-2131174823
*/
scrollbar-gutter: auto !important;
+ scroll-behavior: smooth;
}
diff --git a/src/views/Results.tsx b/src/views/Results.tsx
index e6b76cc..5de513c 100644
--- a/src/views/Results.tsx
+++ b/src/views/Results.tsx
@@ -100,8 +100,8 @@ const Results = () => {
return (
<>
-
-
+
+
Looking up {searchParams.get('domain')}