mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-03-11 22:15:35 +00:00
feat: reset
fix: continue watching order on home screen
This commit is contained in:
parent
2fca2c4d4f
commit
4da12bfd5d
3 changed files with 11 additions and 12 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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<typeof client.search>
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class='space-y-3 pb-10 lg:max-w-4xl'>
|
||||
|
|
@ -87,22 +93,15 @@
|
|||
<Switch {id} bind:checked={$settings.hideToTray} />
|
||||
</SettingCard>
|
||||
{/if}
|
||||
<div class='d-inline-flex flex-column'>
|
||||
<div class='flex flex-wrap gap-2'>
|
||||
<Button on:click={importSettings}>
|
||||
Import Settings From Clipboard
|
||||
</Button>
|
||||
<Button on:click={exportSettings}>
|
||||
Export Settings To Clipboard
|
||||
</Button>
|
||||
{#if !SUPPORTS.isAndroid}
|
||||
<Button on:click={native.checkUpdate}>
|
||||
Check For Updates
|
||||
</Button>
|
||||
{/if}
|
||||
<Button
|
||||
on:click={() => { settings.reset(); native.restart() }}
|
||||
variant='destructive'>
|
||||
Restore Default Settings
|
||||
<Button on:click={reset} variant='destructive'>
|
||||
Reset EVERYTHING To Default
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue