From 0a0f687044a72d9131f4b1d9b7b1afdaae38d42c Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Thu, 14 Nov 2024 22:35:34 +0100 Subject: [PATCH] Show 7zip contents on filesystem --- svelte/src/filesystem/FilesystemAPI.ts | 5 ++++- svelte/src/filesystem/filemanager/ListView.svelte | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/svelte/src/filesystem/FilesystemAPI.ts b/svelte/src/filesystem/FilesystemAPI.ts index 7b23053..e489ffd 100644 --- a/svelte/src/filesystem/FilesystemAPI.ts +++ b/svelte/src/filesystem/FilesystemAPI.ts @@ -237,7 +237,10 @@ export const fs_node_type = (node: FSNode) => { return "dir" } else if (node.file_type === "application/bittorrent" || node.file_type === "application/x-bittorrent") { return "torrent" - } else if (node.file_type === "application/zip") { + } else if ( + node.file_type === "application/zip" || + node.file_type === "application/x-7z-compressed" + ) { return "zip" } else if (node.file_type.startsWith("image")) { return "image" diff --git a/svelte/src/filesystem/filemanager/ListView.svelte b/svelte/src/filesystem/filemanager/ListView.svelte index 28843e6..1355f6c 100644 --- a/svelte/src/filesystem/filemanager/ListView.svelte +++ b/svelte/src/filesystem/filemanager/ListView.svelte @@ -17,7 +17,7 @@ export let hide_branding = false Name Size - Actions + {#each $nav.children as child, index (child.path)}