aboutsummaryrefslogtreecommitdiff
path: root/src/lib/List/Manga
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-04-02 09:56:45 +0000
committerFuwn <[email protected]>2026-04-02 09:56:45 +0000
commitaa2af2e5b534c81e18e6bb6f735104fc32d5d830 (patch)
tree1745a437e584ab658dc31fa3f74070f961033a13 /src/lib/List/Manga
parentfix(ui): tune april fools notification copy (diff)
downloaddue.moe-aa2af2e5b534c81e18e6bb6f735104fc32d5d830.tar.xz
due.moe-aa2af2e5b534c81e18e6bb6f735104fc32d5d830.zip
revert(ui): remove april fools executive mode
Diffstat (limited to 'src/lib/List/Manga')
-rw-r--r--src/lib/List/Manga/CleanMangaList.svelte25
-rw-r--r--src/lib/List/Manga/MangaListTemplate.svelte33
2 files changed, 21 insertions, 37 deletions
diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte
index aab8be97..56de1df1 100644
--- a/src/lib/List/Manga/CleanMangaList.svelte
+++ b/src/lib/List/Manga/CleanMangaList.svelte
@@ -22,14 +22,12 @@ import settings from "$stores/settings";
import ListTitle from "../ListTitle.svelte";
import { onMount } from "svelte";
import root from "$lib/Utility/root";
-import { executiveCopy, executiveTitle } from "$lib/Utility/executiveMode";
import locale from "$stores/locale";
import Skeleton from "$lib/Loading/Skeleton.svelte";
import { browser } from "$app/environment";
import "../covers.css";
import CleanGrid from "../CleanGrid.svelte";
import CleanList from "../CleanList.svelte";
-import aprilFools from "$stores/aprilFools";
import stateBin from "$stores/stateBin";
import localforage from "localforage";
import MediaRoulette from "../MediaRoulette.svelte";
@@ -124,30 +122,26 @@ const increment = (manga: Media) => {
? totalEpisodeDueCount
: filteredMedia.length}
time={endTime / 1000}
- title={executiveTitle(
- $aprilFools,
- due
- ? $locale().lists.due.mangaAndLightNovels
- : $locale().lists.completed.mangaAndLightNovels,
- )}
+ title={due
+ ? $locale().lists.due.mangaAndLightNovels
+ : $locale().lists.completed.mangaAndLightNovels}
hideTime={dummy}
hideCount={dummy}
>
{#if !dummy}
<button
class="small-button"
- title={executiveCopy($aprilFools, "Force refresh")}
+ title="Force a full refresh"
onclick={cleanCache}
- data-umami-event="Force Refresh Manga"
- >{executiveCopy($aprilFools, "Refresh")}</button
+ data-umami-event="Force Refresh Manga">Refresh</button
>
{#if $settings.displayMediaRoulette && filteredMedia.length > 0}
<button
class="small-button"
onclick={() => (showRoulette = true)}
- title={executiveCopy($aprilFools, "Pick a random manga to read")}
+ title="Pick a random manga to read"
>
- {executiveCopy($aprilFools, "Roulette")}
+ Roulette
</button>
{/if}
{/if}
@@ -183,9 +177,8 @@ const increment = (manga: Media) => {
{/if}
<p>
- {$aprilFools ? "No deliverables to display." : "No manga to display."}
- <button onclick={cleanCache} data-umami-event="Force Refresh No Manga"
- >{executiveCopy($aprilFools, "Force refresh")}</button
+ No manga to display. <button onclick={cleanCache} data-umami-event="Force Refresh No Manga"
+ >Force refresh</button
>
</p>
diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte
index daa3a27b..52649098 100644
--- a/src/lib/List/Manga/MangaListTemplate.svelte
+++ b/src/lib/List/Manga/MangaListTemplate.svelte
@@ -15,8 +15,6 @@ import { chapterCount, hydrateChapterCounts } from "$lib/Media/Manga/chapters";
import { options } from "$lib/Notification/options";
import { addNotification } from "$lib/Notification/store";
import privilegedUser from "$lib/Utility/privilegedUser";
-import { executiveCopy, executiveTitle } from "$lib/Utility/executiveMode";
-import aprilFools from "$stores/aprilFools";
import identity from "$stores/identity";
import lastPruneTimes from "$stores/lastPruneTimes";
import locale from "$stores/locale";
@@ -52,13 +50,6 @@ let keyCacher: ReturnType<typeof setInterval> | undefined;
let keyCacheMinutes = -1;
let nativeEnhancementVersion = 0;
let nativeEnhancementKey = "";
-const mangaListTitle = () =>
- executiveTitle(
- $aprilFools,
- due
- ? $locale().lists.due.mangaAndLightNovels
- : $locale().lists.completed.mangaAndLightNovels,
- );
$: authorised =
env.PUBLIC_ALWAYS_REFRESH_MANGA === "true" || privilegedUser($identity.id);
@@ -375,26 +366,26 @@ const cleanCache = () => {
<ListTitle
count={0}
time={endTime / 1000}
- title={mangaListTitle()}
+ title={$locale().lists.due.mangaAndLightNovels}
hideTime={dummy}
hideCount={dummy}
>
{#if !dummy}
<button
data-umami-event="Force Refresh Manga"
- title={executiveCopy($aprilFools, "Force refresh")}
+ title="Force a full refresh"
onclick={() => {
cleanCache();
forceFlag = true;
- }}>{executiveCopy($aprilFools, "Refresh")}</button
+ }}>Refresh</button
>
{/if}
</ListTitle>
{:else}
<ListTitle
{progress}
- title={mangaListTitle()}
+ title={$locale().lists.due.mangaAndLightNovels}
hideTime={dummy}
hideCount={dummy}
/>
@@ -424,26 +415,26 @@ const cleanCache = () => {
<ListTitle
count={0}
time={endTime / 1000}
- title={mangaListTitle()}
+ title={$locale().lists.due.mangaAndLightNovels}
hideTime={dummy}
hideCount={dummy}
>
{#if !dummy}
<button
data-umami-event="Force Refresh Manga"
- title={executiveCopy($aprilFools, "Force refresh")}
+ title="Force a full refresh"
onclick={() => {
cleanCache();
forceFlag = true;
- }}>{executiveCopy($aprilFools, "Refresh")}</button
+ }}>Refresh</button
>
{/if}
</ListTitle>
{:else}
<ListTitle
{progress}
- title={mangaListTitle()}
+ title={$locale().lists.due.mangaAndLightNovels}
hideTime={dummy}
hideCount={dummy}
/>
@@ -456,19 +447,19 @@ const cleanCache = () => {
<ListTitle
count={cleanedMedia.length}
time={endTime / 1000}
- title={mangaListTitle()}
+ title={$locale().lists.due.mangaAndLightNovels}
hideTime={dummy}
hideCount={dummy}
>
{#if !dummy}
<button
data-umami-event="Force Refresh Manga"
- title={executiveCopy($aprilFools, "Force refresh")}
+ title="Force a full refresh"
onclick={() => {
cleanCache();
forceFlag = true;
- }}>{executiveCopy($aprilFools, "Refresh")}</button
+ }}>Refresh</button
>
{/if}
</ListTitle>
@@ -493,7 +484,7 @@ const cleanCache = () => {
<ListTitle
count={-1337}
time={0}
- title={mangaListTitle()}
+ title={$locale().lists.due.mangaAndLightNovels}
hideTime={dummy}
hideCount={dummy}
/>