Allow downloading individual files from zip archive

This commit is contained in:
2024-01-24 14:13:26 +01:00
parent 12e80ec4f4
commit 0e2b410833
7 changed files with 35 additions and 49 deletions

View File

@@ -2,6 +2,7 @@
import { formatDataVolume } from "../../util/Formatting.svelte";
export let item = {
download_url: "",
size: 0,
children: null,
}
@@ -24,7 +25,7 @@ export let item = {
{#each Object.entries(item.children) as [name, child]}
{#if !child.children}
<li>
{name} ({formatDataVolume(child.size, 3)})<br/>
<a href={child.download_url}>{name}</a> ({formatDataVolume(child.size, 3)})<br/>
</li>
{/if}
{/each}