diff --git a/build.mjs b/build.mjs index c4846f1f..051b8501 100644 --- a/build.mjs +++ b/build.mjs @@ -21,6 +21,13 @@ async function spawn(exec, opts) { }); } +const expectedLibs = ["drop-base/package.json"]; + +for (const lib of expectedLibs) { + const path = `./libs/${lib}`; + if (!fs.existsSync(path)) throw `Missing "${expectedLibs}". Run "git submodule update --init --recursive"`; +} + const views = fs.readdirSync(".").filter((view) => { const expectedPath = `./${view}/package.json`; return fs.existsSync(expectedPath); diff --git a/main/app.vue b/main/app.vue index 7d4165fe..1594dd66 100644 --- a/main/app.vue +++ b/main/app.vue @@ -1,5 +1,5 @@ diff --git a/main/composables/downloads.ts b/main/composables/downloads.ts index d75c46f6..f9ab1cd8 100644 --- a/main/composables/downloads.ts +++ b/main/composables/downloads.ts @@ -32,3 +32,5 @@ listen("update_stats", (event) => { const stats = useStatsState(); stats.value = event.payload as StatsState; }); + +export const useDownloadHistory = () => useState>('history', () => []); \ No newline at end of file diff --git a/main/pages/queue.vue b/main/pages/queue.vue index 8d5c4ef4..30eb886f 100644 --- a/main/pages/queue.vue +++ b/main/pages/queue.vue @@ -4,18 +4,18 @@ class="h-16 overflow-hidden relative rounded-xl flex flex-row border border-zinc-900" >
- {{ formatKilobytes(stats.speed) }}/s - {{ formatKilobytes(stats.speed) }}B/s + {{ formatTime(stats.time) }} left
-
+
@@ -62,9 +62,9 @@ class="mt-2 inline-flex items-center gap-x-1 text-zinc-400 text-sm font-display" >{{ formatKilobytes(element.current / 1000) - }} + }}B / - {{ formatKilobytes(element.max / 1000) }}{{ formatKilobytes(element.max / 1000) }}B
@@ -91,7 +91,7 @@