aboutsummaryrefslogtreecommitdiff
path: root/src/routes/settings
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-08-27 17:40:50 -0700
committerFuwn <[email protected]>2023-08-27 17:40:50 -0700
commit585bc0cb4993323c855cf4112491b5c55bfcd611 (patch)
tree059ecc218841c8e84413871f7ef83b43bcf3fbf0 /src/routes/settings
parentfix(manga): pruning (diff)
downloaddue.moe-585bc0cb4993323c855cf4112491b5c55bfcd611.tar.xz
due.moe-585bc0cb4993323c855cf4112491b5c55bfcd611.zip
feat(manga): chapter rounding
Diffstat (limited to 'src/routes/settings')
-rw-r--r--src/routes/settings/+page.svelte16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
index f7b64296..32ecfed8 100644
--- a/src/routes/settings/+page.svelte
+++ b/src/routes/settings/+page.svelte
@@ -5,10 +5,12 @@
import { chapterDatabase } from '$lib/chapterDatabase';
import cacheMangaMinutes from '../../stores/cacheMangaMinutes';
import cacheMinutes from '../../stores/cacheMinutes';
+ import roundDownChapters from '../../stores/roundDownChapters';
export let data;
$: displayingUnresolved = $displayUnresolved === 'true';
+ $: roundingDownChapters = $roundDownChapters === 'true';
$: mangaClosed = $closeMangaByDefault === 'true';
$: animeClosed = $closeAnimeByDefault === 'true';
@@ -44,13 +46,17 @@
displayingUnresolved ? displayUnresolved.set('false') : displayUnresolved.set('true')}
>{displayingUnresolved ? 'Hide' : 'Show'} unresolved</a
>
+ <small style="opacity: 50%;">Displays unresolved chapter counts as "?"</small>
</li>
<li>
- <a href="#" on:click={pruneUnresolved}
- >Prune <b>ALL</b> cached, unresolved manga (for instant re-cache)</a
+ <a
+ href="#"
+ on:click={() =>
+ roundingDownChapters ? roundDownChapters.set('false') : roundDownChapters.set('true')}
+ >{roundingDownChapters ? 'Round down' : 'Maintain'} chapters</a
>
+ <small style="opacity: 50%;">50/50.6 would <b>not</b> be due</small>
</li>
- <li><a href="#" on:click={pruneAll}>Prune <b>ALL</b> cached manga</a></li>
<li>
<a
href="#"
@@ -68,6 +74,10 @@
>
</li>
<li>
+ <a href="#" on:click={pruneUnresolved}>Re-cache <b>ALL</b> unresolved manga</a>
+ </li>
+ <li><a href="#" on:click={pruneAll}>Re-cache <b>ALL</b> manga</a></li>
+ <li>
Re-cache <b>ALL</b> media keys every <input type="number" bind:value={$cacheMinutes} /> minutes
</li>
<li>