diff --git a/desktop/libs/drop-base b/desktop/libs/drop-base index 14f4e3e2..04125e89 160000 --- a/desktop/libs/drop-base +++ b/desktop/libs/drop-base @@ -1 +1 @@ -Subproject commit 14f4e3e20b9abe41d9561d580060cf3578149640 +Subproject commit 04125e89bef517411e103cdabcfa64a1bb563423 diff --git a/desktop/main/composables/downloads.ts b/desktop/main/composables/downloads.ts index 741b1f14..a09e4235 100644 --- a/desktop/main/composables/downloads.ts +++ b/desktop/main/composables/downloads.ts @@ -5,9 +5,12 @@ export type QueueState = { queue: Array<{ meta: DownloadableMetadata; status: string; - progress: number | null; - current: number; - max: number; + dl_progress: number | null; + dl_current: number; + dl_max: number; + disk_progress: number | null; + disk_current: number; + disk_max: number; }>; status: string; }; @@ -33,7 +36,8 @@ listen("update_stats", (event) => { stats.value = event.payload as StatsState; }); -export const useDownloadHistory = () => useState>('history', () => []); +export const useDownloadHistory = () => + useState>("history", () => []); export function formatKilobytes(bytes: number): string { const units = ["K", "M", "G", "T", "P"]; @@ -47,4 +51,4 @@ export function formatKilobytes(bytes: number): string { } return `${value.toFixed(1)} ${units[unitIndex]}`; -} \ No newline at end of file +} diff --git a/desktop/main/pages/queue.vue b/desktop/main/pages/queue.vue index 005662ec..fe7fbd26 100644 --- a/desktop/main/pages/queue.vue +++ b/desktop/main/pages/queue.vue @@ -6,12 +6,16 @@
- {{ formatKilobytes(stats.speed) }}B/s + {{ formatKilobytes(stats.speed) }}B/s {{ formatTime(stats.time) }} left
-
+
-