From f10406b29c4fd456d4ba7badff1bc42f10c42a2e Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Thu, 22 Jan 2026 20:04:28 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Makes=20use=20of=20tailwin?= =?UTF-8?q?d=20for=20styling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/filesystem/FileManager.svelte | 549 +++++++----------- 1 file changed, 201 insertions(+), 348 deletions(-) diff --git a/app/src/lib/components/filesystem/FileManager.svelte b/app/src/lib/components/filesystem/FileManager.svelte index 637066a..a1e6551 100644 --- a/app/src/lib/components/filesystem/FileManager.svelte +++ b/app/src/lib/components/filesystem/FileManager.svelte @@ -1,374 +1,227 @@ -
-
-

File Manager

-
Current: {currentPath}
-
- - - -
-
+
+
+

File Manager

+
Current: {currentPath}
+
+ + + +
+
- {#if error} -
{error}
- {/if} + {#if error} +
{error}
+ {/if} - {#if uploadProgress} -
-
- Uploading: {uploadProgress.percentage.toFixed(1)}% ({formatBytes( - uploadProgress.bytesTransferred - )} / {formatBytes(uploadProgress.totalBytes)}) -
-
-
-
-
- {/if} + {#if uploadProgress} +
+
+ Uploading: {uploadProgress.percentage.toFixed(1)}% ({formatBytes( + uploadProgress.bytesTransferred + )} / {formatBytes(uploadProgress.totalBytes)}) +
+
+
+
+
+ {/if} - {#if downloadProgress} -
-
- Downloading: {downloadProgress.percentage.toFixed(1)}% ({formatBytes( - downloadProgress.bytesTransferred - )} / {formatBytes(downloadProgress.totalBytes)}) -
-
-
-
-
- {/if} + {#if downloadProgress} +
+
+ Downloading: {downloadProgress.percentage.toFixed(1)}% ({formatBytes( + downloadProgress.bytesTransferred + )} / {formatBytes(downloadProgress.totalBytes)}) +
+
+
+
+
+ {/if} -
- {#if loading} -
Loading...
- {:else} - {#if currentPath !== '/'} -
navigateTo('/')}> - 📁 - .. -
- {/if} +
+ {#if loading} +
Loading...
+ {:else} + {#if currentPath !== '/'} +
navigateTo('/')} + > + 📁 + .. +
+ {/if} - {#each directories as dir} -
- 📁 - navigateTo(currentPath + '/' + dir.name)} - >{dir.name} - -
- {/each} + {#each directories as dir} +
+ 📁 + navigateTo(currentPath + '/' + dir.name)}>{dir.name} + +
+ {/each} - {#each files as file} -
- 📄 - {file.name} - {formatBytes(file.size)} - - -
- {/each} + {#each files as file} +
+ 📄 + {file.name} + {formatBytes(file.size)} + + +
+ {/each} - {#if files.length === 0 && directories.length === 0} -
Directory is empty
- {/if} - {/if} -
+ {#if files.length === 0 && directories.length === 0} +
Directory is empty
+ {/if} + {/if} +
- -