Show 7zip contents on filesystem

This commit is contained in:
2024-11-14 22:35:34 +01:00
parent cac31a097a
commit 0a0f687044
2 changed files with 5 additions and 2 deletions

View File

@@ -237,7 +237,10 @@ export const fs_node_type = (node: FSNode) => {
return "dir" return "dir"
} else if (node.file_type === "application/bittorrent" || node.file_type === "application/x-bittorrent") { } else if (node.file_type === "application/bittorrent" || node.file_type === "application/x-bittorrent") {
return "torrent" 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" return "zip"
} else if (node.file_type.startsWith("image")) { } else if (node.file_type.startsWith("image")) {
return "image" return "image"

View File

@@ -17,7 +17,7 @@ export let hide_branding = false
<td></td> <td></td>
<td>Name</td> <td>Name</td>
<td>Size</td> <td>Size</td>
<td>Actions</td> <td></td>
</tr> </tr>
{#each $nav.children as child, index (child.path)} {#each $nav.children as child, index (child.path)}
<a <a