Chore: Restructure Repository for SvelteKit

This commit is contained in:
Youwes09
2026-05-22 04:04:59 -05:00
parent bf071dcfc7
commit 8cef74bb98
266 changed files with 5093 additions and 396 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { DownloadItem } from '$lib/server-adapters/types'
export const downloadsState = $state({
items: [] as DownloadItem[],
error: null as string | null,
})
export const activeDownloads = $derived(
downloadsState.items.filter(d => d.state === 'downloading')
)
export const queuedDownloads = $derived(
downloadsState.items.filter(d => d.state === 'queued')
)
export const downloadCount = $derived(downloadsState.items.length)