[V1] Major Revisions to Search & New Preview + Genre Filter (WIP Commit)

This commit is contained in:
Youwes09
2026-02-23 22:40:00 -06:00
parent fb82abaf21
commit 523fb40538
19 changed files with 3096 additions and 983 deletions
+12
View File
@@ -103,8 +103,14 @@ export const DEFAULT_SETTINGS: Settings = {
interface Store {
navPage: NavPage;
setNavPage: (page: NavPage) => void;
genreFilter: string;
setGenreFilter: (genre: string) => void;
searchPrefill: string;
setSearchPrefill: (q: string) => void;
activeManga: Manga | null;
setActiveManga: (manga: Manga | null) => void;
previewManga: Manga | null;
setPreviewManga: (manga: Manga | null) => void;
activeChapter: Chapter | null;
activeChapterList: Chapter[];
openReader: (chapter: Chapter, chapterList: Chapter[]) => void;
@@ -152,8 +158,14 @@ export const useStore = create<Store>()(
(set, get) => ({
navPage: "library",
setNavPage: (navPage) => set({ navPage }),
genreFilter: "",
setGenreFilter: (genreFilter) => set({ genreFilter }),
searchPrefill: "",
setSearchPrefill: (searchPrefill) => set({ searchPrefill }),
activeManga: null,
setActiveManga: (activeManga) => set({ activeManga }),
previewManga: null,
setPreviewManga: (previewManga) => set({ previewManga }),
activeChapter: null,
activeChapterList: [],
openReader: (chapter, chapterList) =>