From 92482a9f39b61075cbee61d5aa18547ad4c6c142 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 23 Mar 2026 13:37:52 +0800 Subject: [PATCH] filter by read status and other stuff --- next-ui/src/components.d.ts | 2 + next-ui/src/components/LocaleSelector.vue | 2 +- next-ui/src/components/PageSizeSelector.vue | 2 +- .../src/components/PresentationSelector.vue | 2 +- next-ui/src/components/TempDrawer.vue | 30 ++ next-ui/src/components/ThemeSelector.vue | 2 +- .../src/components/filter/ExpansionPanel.vue | 1 - next-ui/src/components/filter/SelectRange.vue | 1 + .../filter/by/ReadStatus.stories.ts | 43 +++ .../src/components/filter/by/ReadStatus.vue | 30 ++ next-ui/src/functions/filter.ts | 34 +- next-ui/src/pages/libraries/[id]/series.vue | 316 +++++++++++------- next-ui/src/types/ReadStatus.ts | 25 ++ next-ui/src/types/filter.test.ts | 8 + next-ui/src/types/filter.ts | 29 +- 15 files changed, 378 insertions(+), 149 deletions(-) create mode 100644 next-ui/src/components/TempDrawer.vue create mode 100644 next-ui/src/components/filter/by/ReadStatus.stories.ts create mode 100644 next-ui/src/components/filter/by/ReadStatus.vue create mode 100644 next-ui/src/types/ReadStatus.ts diff --git a/next-ui/src/components.d.ts b/next-ui/src/components.d.ts index 2f6849de..69f980b1 100644 --- a/next-ui/src/components.d.ts +++ b/next-ui/src/components.d.ts @@ -40,6 +40,7 @@ declare module 'vue' { FilterByGenre: typeof import('./components/filter/by/Genre.vue')['default'] FilterByLanguage: typeof import('./components/filter/by/Language.vue')['default'] FilterByPublisher: typeof import('./components/filter/by/Publisher.vue')['default'] + FilterByReadStatus: typeof import('./components/filter/by/ReadStatus.vue')['default'] FilterByReleaseYear: typeof import('./components/filter/by/ReleaseYear.vue')['default'] FilterBySeriesStatus: typeof import('./components/filter/by/SeriesStatus.vue')['default'] FilterBySharingLabel: typeof import('./components/filter/by/SharingLabel.vue')['default'] @@ -107,6 +108,7 @@ declare module 'vue' { SeriesMenuBottomSheet: typeof import('./components/series/menu/SeriesMenuBottomSheet.vue')['default'] ServerSettings: typeof import('./components/server/Settings.vue')['default'] SnackQueue: typeof import('./components/SnackQueue.vue')['default'] + TempDrawer: typeof import('./components/TempDrawer.vue')['default'] ThemeSelector: typeof import('./components/ThemeSelector.vue')['default'] UserAuthenticationActivityTable: typeof import('./components/user/AuthenticationActivityTable.vue')['default'] UserDeletionWarning: typeof import('./components/user/DeletionWarning.vue')['default'] diff --git a/next-ui/src/components/LocaleSelector.vue b/next-ui/src/components/LocaleSelector.vue index e3c0b0fc..9716fb43 100644 --- a/next-ui/src/components/LocaleSelector.vue +++ b/next-ui/src/components/LocaleSelector.vue @@ -1,7 +1,7 @@