From 5d1853ec2f54de1c7097dbb2d6a4a770358f9614 Mon Sep 17 00:00:00 2001 From: dmihalcik-virtru Date: Thu, 9 May 2024 03:22:15 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20=F0=9F=8E=A8=20Autoformat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-app/src/App.tsx | 26 ++++++++++++++++---------- web-app/src/session.ts | 6 +----- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/web-app/src/App.tsx b/web-app/src/App.tsx index 168011fc..71a1cb57 100644 --- a/web-app/src/App.tsx +++ b/web-app/src/App.tsx @@ -330,7 +330,6 @@ function App() { return false; } for (const inputSource of inputSources) { - const inputFileName = fileNameFor(inputSource); console.log(`Encrypting [${inputFileName}] as ${encryptContainerType} to ${sinkType}`); switch (encryptContainerType) { @@ -533,7 +532,6 @@ function App() { return false; } for (const inputSource of inputSources) { - const dfn = decryptedFileName(fileNameFor(inputSource)); console.log( `Decrypting ${decryptContainerType} ${JSON.stringify(inputSource)} to ${sinkType} ${dfn}` @@ -662,20 +660,18 @@ function App() {
{JSON.stringify(authState?.user, null, ' ')}
); - const detailsList = inputSources.map((inputSource) => + const detailsList = inputSources.map((inputSource) => ( <>

{fileNameFor(inputSource)}

{inputSource.type == 'file' && ( <>
Content Type: {inputSource.file.type}
-
- Last Modified: {new Date(inputSource.file.lastModified).toLocaleString()} -
+
Last Modified: {new Date(inputSource.file.lastModified).toLocaleString()}
Size: {new Intl.NumberFormat().format(inputSource.file.size)} bytes
)} - ); + )); return (
@@ -707,9 +703,17 @@ function App() { ) : ( <> - +
OR
-
+
OR:
-
+