From 998b63a35256ac985a5a2714dd1ca451af4dfd8a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 9 Oct 2024 00:41:20 -0700 Subject: chore(prettier): use spaces instead of tabs --- src/lib/Settings/Categories/Attributions.svelte | 92 ++-- src/lib/Settings/Categories/Cache.svelte | 54 +-- src/lib/Settings/Categories/Calculation.svelte | 106 ++--- src/lib/Settings/Categories/Debug.svelte | 74 ++-- src/lib/Settings/Categories/Display.svelte | 540 ++++++++++++------------ src/lib/Settings/Categories/RSSFeeds.svelte | 64 +-- src/lib/Settings/Categories/SettingSync.svelte | 204 ++++----- 7 files changed, 567 insertions(+), 567 deletions(-) (limited to 'src/lib/Settings/Categories') diff --git a/src/lib/Settings/Categories/Attributions.svelte b/src/lib/Settings/Categories/Attributions.svelte index 5ce7f05d..250b08c3 100644 --- a/src/lib/Settings/Categories/Attributions.svelte +++ b/src/lib/Settings/Categories/Attributions.svelte @@ -1,35 +1,35 @@ @@ -37,38 +37,38 @@

- Outbound Link Disclaimer -
    -
  1. - due.moe - does not host or directly link to any less-than-legal anime or manga material and/or distribution - platforms. -
  2. -
  3. - due.moe - is not affiliated with any of the above or below sites and services. -
  4. -
  5. - At the moment, due.moe only ever contains outbound links to the - following sites and services: + Outbound Link Disclaimer +
      +
    1. + due.moe + does not host or directly link to any less-than-legal anime or manga material and/or distribution + platforms. +
    2. +
    3. + due.moe + is not affiliated with any of the above or below sites and services. +
    4. +
    5. + At the moment, due.moe only ever contains outbound links to the + following sites and services: - -
    6. -
    + +
  6. +
diff --git a/src/lib/Settings/Categories/Cache.svelte b/src/lib/Settings/Categories/Cache.svelte index c59897e1..e65b8081 100644 --- a/src/lib/Settings/Categories/Cache.svelte +++ b/src/lib/Settings/Categories/Cache.svelte @@ -1,30 +1,30 @@ - All caches are stored in your browser's localStorage. Clearing - due.moe's site data will clear these caches too. + All caches are stored in your browser's localStorage. Clearing + due.moe's site data will clear these caches too.

Re-cache AniList media lists every - ($settings.cacheMinutes < 1 && ($settings.cacheMinutes = 1)) || - ($settings.cacheMinutes > 60 && ($settings.cacheMinutes = 60))} + type="number" + class="no-shadow" + bind:value={$settings.cacheMinutes} + min="1" + max="60" + placeholder="30" + size="1" + on:change={() => + ($settings.cacheMinutes < 1 && ($settings.cacheMinutes = 1)) || + ($settings.cacheMinutes > 60 && ($settings.cacheMinutes = 60))} /> minutes @@ -32,15 +32,15 @@ minutes Re-cache manga data every - ($settings.cacheMangaMinutes < 5 && ($settings.cacheMangaMinutes = 5)) || - ($settings.cacheMangaMinutes > 1440 && ($settings.cacheMangaMinutes = 1440))} + type="number" + class="no-shadow" + bind:value={$settings.cacheMangaMinutes} + min="5" + max="1440" + placeholder="120" + size="2" + on:change={() => + ($settings.cacheMangaMinutes < 5 && ($settings.cacheMangaMinutes = 5)) || + ($settings.cacheMangaMinutes > 1440 && ($settings.cacheMangaMinutes = 1440))} /> minutes diff --git a/src/lib/Settings/Categories/Calculation.svelte b/src/lib/Settings/Categories/Calculation.svelte index bd361fa2..4a202fff 100644 --- a/src/lib/Settings/Categories/Calculation.svelte +++ b/src/lib/Settings/Categories/Calculation.svelte @@ -1,90 +1,90 @@ - - {$locale().settings.calculation.fields.preferNativeChapterCount.hint} - + + {$locale().settings.calculation.fields.preferNativeChapterCount.hint} +
- - {$locale().settings.calculation.fields.roundDownChapters.hint} - + + {$locale().settings.calculation.fields.roundDownChapters.hint} +
- - {$locale().settings.calculation.fields.showMediaWithZeroProgress.hint} - + + {$locale().settings.calculation.fields.showMediaWithZeroProgress.hint} +
- - Out-of-date volume warnings display an alert when there is a mismatch between the chapter - progress and number of volumes you have logged for a given title. -
- For example, an alert would be shown if you have tracked a manga up to Ch. 50 (Vol. 5), but have - less than 4 volumes logged. + + Out-of-date volume warnings display an alert when there is a mismatch between the chapter + progress and number of volumes you have logged for a given title. +
+ For example, an alert would be shown if you have tracked a manga up to Ch. 50 (Vol. 5), but have + less than 4 volumes logged. -
+
- Disabling this option speeds up refresh times for manga lists. -
+ Disabling this option speeds up refresh times for manga lists. +

- - Smart chapter count calculation uses statistical methods to estimate the number of chapters - available for a given title based on user submitted progress.
Disabling this setting will - disable light novel chapter count reporting and will disable smart chapter count calculation for - titles which you have higher progress than officially reported. -
+ + Smart chapter count calculation uses statistical methods to estimate the number of chapters + available for a given title based on user submitted progress.
Disabling this setting will + disable light novel chapter count reporting and will disable smart chapter count calculation for + titles which you have higher progress than officially reported. +
{#if !$settings.calculateGuessingDisabled} -
+
- - Smart chapter count calculation method + + Smart chapter count calculation method - - No chapter count estimation method will be 100% accurate. Since estimated media requires scores - derived from user submitted progress, high (or low) false-reports skew the data. - + + No chapter count estimation method will be 100% accurate. Since estimated media requires scores + derived from user submitted progress, high (or low) false-reports skew the data. + {/if} diff --git a/src/lib/Settings/Categories/Debug.svelte b/src/lib/Settings/Categories/Debug.svelte index 620c226a..79e18c03 100644 --- a/src/lib/Settings/Categories/Debug.svelte +++ b/src/lib/Settings/Categories/Debug.svelte @@ -1,60 +1,60 @@ { + localStorage.removeItem('anime'); + localStorage.removeItem('manga'); + addNotification( + options({ + heading: 'Anime and manga list caches successfully cleared' + }) + ); + }}>{$locale().debug.clearCaches}

- {$locale().debug.resetAllSettings.hint} + {$locale().debug.resetAllSettings.hint}

{ + localStorage.clear(); + addNotification( + options({ + heading: 'localStorage successfully cleared' + }) + ); + }}>{$locale().debug.clearLocalStorage.title} localStorage - {$locale().debug.clearLocalStorage.hint1} -
- {$locale().debug.clearLocalStorage.hint2} + {$locale().debug.clearLocalStorage.hint1} +
+ {$locale().debug.clearLocalStorage.hint2}
diff --git a/src/lib/Settings/Categories/Display.svelte b/src/lib/Settings/Categories/Display.svelte index 85a3c922..9f72f1e1 100644 --- a/src/lib/Settings/Categories/Display.svelte +++ b/src/lib/Settings/Categories/Display.svelte @@ -1,177 +1,177 @@ {$locale().settings.display.categories.includeAdditionalMedia}
- Media where either the next episode's release date is unknown or the chapter count could not be - resolved is considered unresolved. -

- - Additionally, you hard exclude specific media from due.moe on AniList. - To exclude any media from being included in any due.moe - calculation, create an anime or manga list with the tag - #DueIgnore in the list's title and add the media you want to exclude to the list. - - -
- - - Inversely, you can selectively include media by creating an anime or manga list with the tag #DueInclude - in the list's title, which will include - only - media in the list in any due.moe calculation. - #DueInclude - will override #DueIgnore. - + Media where either the next episode's release date is unknown or the chapter count could not be + resolved is considered unresolved. +

+ + Additionally, you hard exclude specific media from due.moe on AniList. + To exclude any media from being included in any due.moe + calculation, create an anime or manga list with the tag + #DueIgnore in the list's title and add the media you want to exclude to the list. + + +
+ + + Inversely, you can selectively include media by creating an anime or manga list with the tag #DueInclude + in the list's title, which will include + only + media in the list in any due.moe calculation. + #DueInclude + will override #DueIgnore. +

{$locale().settings.display.categories.hidePanels}
{ - if ($settings.disableAnime && $settings.disableManga) $settings.disableUpcomingAnime = false; - }} + setting="disableUpcomingAnime" + text={$locale().settings.media.upcomingAnime} + lineBreak={false} + onChange={() => { + if ($settings.disableAnime && $settings.disableManga) $settings.disableUpcomingAnime = false; + }} /> { - if ($settings.disableUpcomingAnime && $settings.disableManga) $settings.disableAnime = false; - - if ( - $settings.disableAnime && - $settings.disableManga && - $settings.displayFiltersIncludeCompleted - ) - $settings.displayFiltersIncludeCompleted = false; - }} + setting="disableAnime" + text={$locale().settings.media.anime} + lineBreak={false} + onChange={() => { + if ($settings.disableUpcomingAnime && $settings.disableManga) $settings.disableAnime = false; + + if ( + $settings.disableAnime && + $settings.disableManga && + $settings.displayFiltersIncludeCompleted + ) + $settings.displayFiltersIncludeCompleted = false; + }} /> { - if ($settings.disableAnime && $settings.disableUpcomingAnime) $settings.disableManga = false; - - if ( - $settings.disableAnime && - $settings.disableManga && - $settings.displayFiltersIncludeCompleted - ) - $settings.displayFiltersIncludeCompleted = false; - }} + setting="disableManga" + text={$locale().settings.media.manga} + onChange={() => { + if ($settings.disableAnime && $settings.disableUpcomingAnime) $settings.disableManga = false; + + if ( + $settings.disableAnime && + $settings.disableManga && + $settings.displayFiltersIncludeCompleted + ) + $settings.displayFiltersIncludeCompleted = false; + }} /> { - if ( - $settings.displayFiltersIncludeCompleted && - $settings.disableAnime && - $settings.disableManga - ) - $settings.disableAnime = false; - }} + setting="displayFiltersIncludeCompleted" + text={$locale().settings.display.categories.filtersIncludeCompleted} + onChange={() => { + if ( + $settings.displayFiltersIncludeCompleted && + $settings.disableAnime && + $settings.disableManga + ) + $settings.disableAnime = false; + }} />

{$locale().settings.display.categories.collapsePanelsByDefault}
@@ -179,102 +179,102 @@ {$locale().settings.display.categories.motionAndAccessibility.title}
{$locale().settings.display.categories.motionAndAccessibility.fields.interfaceLanguage} {#if $settings.displayLanguage !== 'en'} - + {/if}

{ - if ($settings.displayAniListNotifications) - requestNotifications().then(() => { - return; - }); - else - fetch(`/api/notifications/unsubscribe?p=${getFingerprint()}`, { - method: 'POST' - }).then(() => { - return; - }); - }} + setting="displayAniListNotifications" + text={$locale().settings.display.categories.motionAndAccessibility.fields + .enableAniListNotifications} + onChange={() => { + if ($settings.displayAniListNotifications) + requestNotifications().then(() => { + return; + }); + else + fetch(`/api/notifications/unsubscribe?p=${getFingerprint()}`, { + method: 'POST' + }).then(() => { + return; + }); + }} > - - Periodically check for and send recent AniList notifications as native platform notifications -
- This may be useful for users who have installed due.moe as a PWA or are using due.moe on a mobile - device, as AniList has no official mobile app, and the AniList website does not send push notifications. -
+ + Periodically check for and send recent AniList notifications as native platform notifications +
+ This may be useful for users who have installed due.moe as a PWA or are using due.moe on a mobile + device, as AniList has no official mobile app, and the AniList website does not send push notifications. +

{$locale().settings.display.categories.dateAndTime.title}

- - A warning will appear at the top of Home and - Completed if you have not filled in today's activity history - grid point yet. -
- This option is useful to those that like maintaining a consistent activity history grid. -
+ + A warning will appear at the top of Home and + Completed if you have not filled in today's activity history + grid point yet. +
+ This option is useful to those that like maintaining a consistent activity history grid. +

@@ -283,86 +283,86 @@ {#if $settings.displayCoverModeAnime || $settings.displayCoverModeManga || !$settings.displayScheduleListMode} -
- { - if ($settings.displayCoverWidth === null) { - $settings.displayCoverWidth = 116.609; - - return; - } - - $settings.displayCoverWidth < 50 && ($settings.displayCoverWidth = 50); - }} - /> - Cover width (px) -
+
+ { + if ($settings.displayCoverWidth === null) { + $settings.displayCoverWidth = 116.609; + + return; + } + + $settings.displayCoverWidth < 50 && ($settings.displayCoverWidth = 50); + }} + /> + Cover width (px) +
{:else} -
+
{/if}

{$locale().settings.display.categories.media.title}
{$locale().settings.display.categories.media.fields.mediaTitleFormat.title} {#if $settings.displayTitleFormat === 'native'} -   - +   + {:else} -
+
{/if}

{$locale().settings.display.categories.media.fields.outboundLinks.title} - {$locale().settings.display.categories.media.fields.outboundLinks.hint} + {$locale().settings.display.categories.media.fields.outboundLinks.hint}