mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-21 02:12:04 +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",
|
"name": "ui",
|
||||||
"version": "6.1.10",
|
"version": "6.1.11",
|
||||||
"license": "BUSL-1.1",
|
"license": "BUSL-1.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@9.14.4",
|
"packageManager": "pnpm@9.14.4",
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
unsub.push(sequelsQuery.subscribe(() => undefined))
|
unsub.push(sequelsQuery.subscribe(() => undefined))
|
||||||
sections.unshift({ title: 'Sequels You Missed', query: sequelsQuery, variables: { ids: sequelIDs, status: ['FINISHED', 'RELEASING'], onList: false } })
|
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))
|
value.data?.Page?.media?.sort((a, b) => continueIDs.indexOf(a!.id) - continueIDs.indexOf(b!.id))
|
||||||
return value
|
return value
|
||||||
}) as ReturnType<typeof client.search>
|
}) as ReturnType<typeof client.search>
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
import { Button } from '$lib/components/ui/button'
|
import { Button } from '$lib/components/ui/button'
|
||||||
import { SingleCombo } from '$lib/components/ui/combobox'
|
import { SingleCombo } from '$lib/components/ui/combobox'
|
||||||
import { Switch } from '$lib/components/ui/switch'
|
import { Switch } from '$lib/components/ui/switch'
|
||||||
|
import { client } from '$lib/modules/anilist'
|
||||||
import native from '$lib/modules/native'
|
import native from '$lib/modules/native'
|
||||||
import { settings, SUPPORTS } from '$lib/modules/settings'
|
import { settings, SUPPORTS } from '$lib/modules/settings'
|
||||||
|
|
||||||
|
|
@ -59,6 +60,11 @@
|
||||||
duration: 5000
|
duration: 5000
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
function reset () {
|
||||||
|
localStorage.clear()
|
||||||
|
client.storage.clear()
|
||||||
|
native.restart()
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class='space-y-3 pb-10 lg:max-w-4xl'>
|
<div class='space-y-3 pb-10 lg:max-w-4xl'>
|
||||||
|
|
@ -87,22 +93,15 @@
|
||||||
<Switch {id} bind:checked={$settings.hideToTray} />
|
<Switch {id} bind:checked={$settings.hideToTray} />
|
||||||
</SettingCard>
|
</SettingCard>
|
||||||
{/if}
|
{/if}
|
||||||
<div class='d-inline-flex flex-column'>
|
<div class='flex flex-wrap gap-2'>
|
||||||
<Button on:click={importSettings}>
|
<Button on:click={importSettings}>
|
||||||
Import Settings From Clipboard
|
Import Settings From Clipboard
|
||||||
</Button>
|
</Button>
|
||||||
<Button on:click={exportSettings}>
|
<Button on:click={exportSettings}>
|
||||||
Export Settings To Clipboard
|
Export Settings To Clipboard
|
||||||
</Button>
|
</Button>
|
||||||
{#if !SUPPORTS.isAndroid}
|
<Button on:click={reset} variant='destructive'>
|
||||||
<Button on:click={native.checkUpdate}>
|
Reset EVERYTHING To Default
|
||||||
Check For Updates
|
|
||||||
</Button>
|
|
||||||
{/if}
|
|
||||||
<Button
|
|
||||||
on:click={() => { settings.reset(); native.restart() }}
|
|
||||||
variant='destructive'>
|
|
||||||
Restore Default Settings
|
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue