blob: 24a60da235fa21bdce546314958713705caca89e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<script lang="ts">
/* eslint svelte/no-at-html-tags: "off" */
import Attributions from '$lib/Settings/Categories/Attributions.svelte';
import HeadTitle from '$lib/Home/HeadTitle.svelte';
import Display from '$lib/Settings/Categories/Display.svelte';
import Calculation from '$lib/Settings/Categories/Calculation.svelte';
import Debug from '$lib/Settings/Categories/Debug.svelte';
import Cache from '$lib/Settings/Categories/Cache.svelte';
import Category from '$lib/Settings/Category.svelte';
import tooltip from '$lib/Tooltip/tooltip';
import locale from '$stores/locale.js';
import settings from '$stores/settings';
import LogInRestricted from '$lib/Error/LogInRestricted.svelte';
import SettingSync from '$lib/Settings/Categories/SettingSync.svelte';
import RssFeeds from '$lib/Settings/Categories/RSSFeeds.svelte';
export let data;
// const pruneUnresolved = async () => {
// const unresolved = await chapterDatabase.chapters.where('chapters').equals(-1).toArray();
// const ids = unresolved.map((m) => m.id);
// manga.set('');
// anime.set('');
// await chapterDatabase.chapters.bulkDelete(ids);
// };
</script>
<HeadTitle route="Settings" path="/settings" />
<blockquote>
{#if $settings.displayLanguage == 'en'}
Have feedback or suggestions? Send a private message to
<a
href="https://anilist.co/user/fuwn"
target="_blank"
title={$locale().settings.tooltips.author}
use:tooltip>@fuwn</a
>
on AniList!
{:else if $settings.displayLanguage == 'ja'}
フィードバックや提案はありますか?AniListで
<a
href="https://anilist.co/user/fuwn"
target="_blank"
title={$locale().settings.tooltips.author}
use:tooltip>@fuwn</a
>
にDMを送ってください!
{/if}
<!-- <p></p>
<p>
<b>{$locale().settings.fields.notice}</b>
AniList has temporarily increased their API rate-limits, so you may experience more occasional rate
limits than usual, both on <a href={root('/')}>due.moe</a> and on AniList.
</p> -->
</blockquote>
{#if data.user === undefined}
<LogInRestricted />
{:else}
<div class="small-categories">
<Category title={$locale().settings.settingsSync.title} id="sync" newLine={false}>
<SettingSync />
</Category>
<Category title={$locale().settings.rssFeeds.title} id="feeds" newLine={false}>
<RssFeeds user={data.user} />
</Category>
</div>
<p />
<Category title={$locale().settings.display.title}><Display /></Category>
<Category title={$locale().settings.calculation.title}><Calculation /></Category>
<Category title={$locale().settings.cache.title}><Cache /></Category>
<Category id="debug">
<summary>
{$locale().settings.debug.title}
<button
class="smaller-button button-badge badge-info unclickable-button"
title={$locale().settings.debug.tooltips.version}
use:tooltip
on:click|preventDefault
>{data.commit.slice(0, 7)}
</button></summary
>
<Debug />
</Category>
<Category title={$locale().settings.attributions.title} open={false}><Attributions /></Category>
{/if}
<style>
.small-categories {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
align-items: start;
}
@media (max-width: 600px) {
.small-categories {
grid-template-columns: 1fr;
}
}
</style>
|