From 11e3d7a8f44baafbd560c94b93067550831cb256 Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 17 Dec 2024 16:50:13 +0600 Subject: [PATCH] web: rename `DownloadManager` to `ProcessingQueue` also replaced the download icon with a blender (to be updated, maybe) --- .../ProcessingQueue.svelte} | 49 ++++++++++--------- .../ProcessingQueueItem.svelte} | 22 ++++----- .../ProcessingStatus.svelte} | 20 ++++---- web/src/routes/+layout.svelte | 4 +- 4 files changed, 48 insertions(+), 47 deletions(-) rename web/src/components/{downloads/DownloadManager.svelte => queue/ProcessingQueue.svelte} (81%) rename web/src/components/{downloads/DownloadItem.svelte => queue/ProcessingQueueItem.svelte} (89%) rename web/src/components/{downloads/DownloadStatus.svelte => queue/ProcessingStatus.svelte} (83%) diff --git a/web/src/components/downloads/DownloadManager.svelte b/web/src/components/queue/ProcessingQueue.svelte similarity index 81% rename from web/src/components/downloads/DownloadManager.svelte rename to web/src/components/queue/ProcessingQueue.svelte index abf28e03..05ed6db7 100644 --- a/web/src/components/downloads/DownloadManager.svelte +++ b/web/src/components/queue/ProcessingQueue.svelte @@ -4,17 +4,18 @@ import type { QueueItem } from "$lib/types/queue"; import Meowbalt from "$components/misc/Meowbalt.svelte"; - import DownloadStatus from "$components/downloads/DownloadStatus.svelte"; import PopoverContainer from "$components/misc/PopoverContainer.svelte"; - import DownloadItem from "$components/downloads/DownloadItem.svelte"; + import ProcessingStatus from "$components/queue/ProcessingStatus.svelte"; + import ProcessingQueueItem from "$components/queue/ProcessingQueueItem.svelte"; import IconX from "@tabler/icons-svelte/IconX.svelte"; import IconGif from "@tabler/icons-svelte/IconGif.svelte"; - import IconPhoto from "@tabler/icons-svelte/IconPhoto.svelte"; import IconMovie from "@tabler/icons-svelte/IconMovie.svelte"; import IconMusic from "@tabler/icons-svelte/IconMusic.svelte"; + import IconPhoto from "@tabler/icons-svelte/IconPhoto.svelte"; import IconVolume3 from "@tabler/icons-svelte/IconVolume3.svelte"; + let popover: SvelteComponent; $: expanded = false; @@ -30,7 +31,7 @@ }; // dummy data for testing ui rn - const downloadQueue: QueueItem[] = [ + const processingQueue: QueueItem[] = [ { id: "fake id", type: "video", @@ -80,8 +81,8 @@ }); -
- + -
-
downloads
- {#if downloadQueue.length > 0} - {/if}
-
- {#each downloadQueue as item} - + {#each processingQueue as item} + {/each} - {#if downloadQueue.length === 0} + {#if processingQueue.length === 0}
- your downloads will appear here! + downloads will appear here!
{/if}
@@ -123,7 +124,7 @@