From 4da12bfd5d9e04897c5ae56fd034b9ee87f3ca51 Mon Sep 17 00:00:00 2001 From: ThaUnknown <6506529+ThaUnknown@users.noreply.github.com> Date: Fri, 2 May 2025 00:57:08 +0200 Subject: [PATCH] feat: reset fix: continue watching order on home screen --- package.json | 2 +- src/routes/app/home/+page.svelte | 2 +- src/routes/app/settings/app/+page.svelte | 19 +++++++++---------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 8616d83..ff0ce6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ui", - "version": "6.1.10", + "version": "6.1.11", "license": "BUSL-1.1", "private": true, "packageManager": "pnpm@9.14.4", diff --git a/src/routes/app/home/+page.svelte b/src/routes/app/home/+page.svelte index 740630d..67ce4f1 100644 --- a/src/routes/app/home/+page.svelte +++ b/src/routes/app/home/+page.svelte @@ -49,7 +49,7 @@ unsub.push(sequelsQuery.subscribe(() => undefined)) sections.unshift({ title: 'Sequels You Missed', query: sequelsQuery, variables: { ids: sequelIDs, status: ['FINISHED', 'RELEASING'], onList: false } }) - const contiueQuery = derived(client.search({ ids: continueIDs, sort: ['UPDATED_AT_DESC'] }, false), value => { + const contiueQuery = derived(client.search({ ids: continueIDs.slice(0, 50), sort: ['UPDATED_AT_DESC'] }, false), value => { value.data?.Page?.media?.sort((a, b) => continueIDs.indexOf(a!.id) - continueIDs.indexOf(b!.id)) return value }) as ReturnType diff --git a/src/routes/app/settings/app/+page.svelte b/src/routes/app/settings/app/+page.svelte index 4ad26d2..4cbe166 100644 --- a/src/routes/app/settings/app/+page.svelte +++ b/src/routes/app/settings/app/+page.svelte @@ -6,6 +6,7 @@ import { Button } from '$lib/components/ui/button' import { SingleCombo } from '$lib/components/ui/combobox' import { Switch } from '$lib/components/ui/switch' + import { client } from '$lib/modules/anilist' import native from '$lib/modules/native' import { settings, SUPPORTS } from '$lib/modules/settings' @@ -59,6 +60,11 @@ duration: 5000 }) } + function reset () { + localStorage.clear() + client.storage.clear() + native.restart() + }
@@ -87,22 +93,15 @@ {/if} -
+
- {#if !SUPPORTS.isAndroid} - - {/if} -