Chore: Port over Settings (Barely Works)

This commit is contained in:
Youwes09
2026-05-24 20:31:46 -05:00
parent ae5d9748c7
commit d9a9427e3b
87 changed files with 8821 additions and 615 deletions
+9 -7
View File
@@ -5,12 +5,14 @@ export const downloadsState = $state({
error: null as string | null,
})
export const activeDownloads = $derived(
downloadsState.items.filter(d => d.state === 'downloading')
)
export function activeDownloads() {
return downloadsState.items.filter(d => d.state === 'downloading')
}
export const queuedDownloads = $derived(
downloadsState.items.filter(d => d.state === 'queued')
)
export function queuedDownloads() {
return downloadsState.items.filter(d => d.state === 'queued')
}
export const downloadCount = $derived(downloadsState.items.length)
export function downloadCount() {
return downloadsState.items.length
}