From 9c98a399632b5cbe4be11350d72b84cb8fcbace9 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 1 Apr 2026 11:02:59 +0000 Subject: feat(ui): add april fools executive mode --- src/lib/List/Manga/CleanMangaList.svelte | 25 ++++++++++++++-------- src/lib/List/Manga/MangaListTemplate.svelte | 33 ++++++++++++++++++----------- 2 files changed, 37 insertions(+), 21 deletions(-) (limited to 'src/lib/List/Manga') diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte index 56de1df1..aab8be97 100644 --- a/src/lib/List/Manga/CleanMangaList.svelte +++ b/src/lib/List/Manga/CleanMangaList.svelte @@ -22,12 +22,14 @@ 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"; @@ -122,26 +124,30 @@ const increment = (manga: Media) => { ? totalEpisodeDueCount : filteredMedia.length} time={endTime / 1000} - title={due - ? $locale().lists.due.mangaAndLightNovels - : $locale().lists.completed.mangaAndLightNovels} + title={executiveTitle( + $aprilFools, + due + ? $locale().lists.due.mangaAndLightNovels + : $locale().lists.completed.mangaAndLightNovels, + )} hideTime={dummy} hideCount={dummy} > {#if !dummy} {executiveCopy($aprilFools, "Refresh")} {#if $settings.displayMediaRoulette && filteredMedia.length > 0} {/if} {/if} @@ -177,8 +183,9 @@ const increment = (manga: Media) => { {/if}

- No manga to display. {executiveCopy($aprilFools, "Force refresh")}

diff --git a/src/lib/List/Manga/MangaListTemplate.svelte b/src/lib/List/Manga/MangaListTemplate.svelte index 52649098..daa3a27b 100644 --- a/src/lib/List/Manga/MangaListTemplate.svelte +++ b/src/lib/List/Manga/MangaListTemplate.svelte @@ -15,6 +15,8 @@ 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"; @@ -50,6 +52,13 @@ let keyCacher: ReturnType | 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); @@ -366,26 +375,26 @@ const cleanCache = () => { {#if !dummy} {executiveCopy($aprilFools, "Refresh")} {/if} {:else} @@ -415,26 +424,26 @@ const cleanCache = () => { {#if !dummy} {executiveCopy($aprilFools, "Refresh")} {/if} {:else} @@ -447,19 +456,19 @@ const cleanCache = () => { {#if !dummy} {executiveCopy($aprilFools, "Refresh")} {/if} @@ -484,7 +493,7 @@ const cleanCache = () => { -- cgit v1.2.3