diff --git a/Todo b/Todo index a9a9593..60ecfce 100644 --- a/Todo +++ b/Todo @@ -30,9 +30,6 @@ In-Progress: - Folders Slide - Dropdown Formatting (Repositories, Etc) - Extensions Revamps - - Notification on Extension Added - - Notification on Extension Refresh - - Notification on Extension Update - Fix Pill-Shaped Language Filter - Fix ALL ALL EN Tag Issue - Search QOL Animations diff --git a/src/api/mutations/downloads.ts b/src/api/mutations/downloads.ts index 5dcff0f..faeb49f 100644 --- a/src/api/mutations/downloads.ts +++ b/src/api/mutations/downloads.ts @@ -1,7 +1,7 @@ const QUEUE_FRAGMENT = ` state queue { - progress state + progress state tries chapter { id name pageCount mangaId manga { id title thumbnailUrl } @@ -33,6 +33,22 @@ export const DEQUEUE_DOWNLOAD = ` } `; +export const DEQUEUE_CHAPTERS_DOWNLOAD = ` + mutation DequeueChaptersDownload($chapterIds: [Int!]!) { + dequeueChapterDownloads(input: { ids: $chapterIds }) { + downloadStatus { ${QUEUE_FRAGMENT} } + } + } +`; + +export const REORDER_DOWNLOAD = ` + mutation ReorderDownload($chapterId: Int!, $to: Int!) { + reorderChapterDownload(input: { chapterId: $chapterId, to: $to }) { + downloadStatus { ${QUEUE_FRAGMENT} } + } + } +`; + export const START_DOWNLOADER = ` mutation StartDownloader { startDownloader(input: {}) { @@ -80,4 +96,4 @@ export const SET_LOCAL_SOURCE_PATH = ` settings { localSourcePath } } } -`; +`; \ No newline at end of file diff --git a/src/features/downloads/components/DownloadItem.svelte b/src/features/downloads/components/DownloadItem.svelte index dd7e377..a86b1e0 100644 --- a/src/features/downloads/components/DownloadItem.svelte +++ b/src/features/downloads/components/DownloadItem.svelte @@ -1,51 +1,224 @@ -