Chore: Port over SeriesDetail (WIP Panels)

This commit is contained in:
Youwes09
2026-05-28 23:05:02 -05:00
parent 584b917f98
commit 8c250021a0
53 changed files with 4570 additions and 885 deletions
+5 -5
View File
@@ -1,18 +1,18 @@
import type { DownloadItem } from '$lib/server-adapters/types'
import type { DownloadItem } from "$lib/server-adapters/types";
export const downloadsState = $state({
items: [] as DownloadItem[],
error: null as string | null,
})
});
export function activeDownloads() {
return downloadsState.items.filter(d => d.state === 'downloading')
return downloadsState.items.filter(d => d.state === "downloading");
}
export function queuedDownloads() {
return downloadsState.items.filter(d => d.state === 'queued')
return downloadsState.items.filter(d => d.state === "queued");
}
export function downloadCount() {
return downloadsState.items.length
return downloadsState.items.length;
}