From 41ce2f4affc92cec70052b9361b3646c4ade0e9e Mon Sep 17 00:00:00 2001 From: Stixx Date: Mon, 6 Jan 2025 12:29:30 +0100 Subject: [PATCH] feat: verify and sign screen include list of file servers where a SIGIT is uploaded --- src/components/UsersDetails.tsx/index.tsx | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/components/UsersDetails.tsx/index.tsx b/src/components/UsersDetails.tsx/index.tsx index edf7c72..9b08b94 100644 --- a/src/components/UsersDetails.tsx/index.tsx +++ b/src/components/UsersDetails.tsx/index.tsx @@ -19,6 +19,7 @@ import { faCheck, faClock, faEye, + faServer, faFile, faFileCircleExclamation } from '@fortawesome/free-solid-svg-icons' @@ -40,6 +41,7 @@ export const UsersDetails = ({ meta }: UsersDetailsProps) => { signers, viewers, fileHashes, + zipUrls, signersStatus, createdAt, completedAt, @@ -100,6 +102,18 @@ export const UsersDetails = ({ meta }: UsersDetailsProps) => { return false } + /** + * Used to parse the base URL from Blossom server full path + */ + const getBaseUrl = (url: string): string => { + try { + const parsedUrl = new URL(url) + return `${parsedUrl.protocol}//${parsedUrl.host}` + } catch (error) { + return 'Invalid URL' + } + } + return submittedBy ? (
@@ -270,6 +284,19 @@ export const UsersDetails = ({ meta }: UsersDetailsProps) => { — )} + + {signedStatus} + +
+ +
+

File Servers

+ + {zipUrls.map((url) => ( + + {getBaseUrl(url)} + + ))}
) : undefined