Source filters, move search to SourceMangas (#142)

* source genre filter

much the same as the library version

* undo

* base

base + SelectFilter + CheckBoxFilter
haven't done useQueryParam yet

* gui done

left to do:
1.saving the input data (so it don't disappear when closing the drawer)
2.post to update
3.reload list after drawer close

* done ish

* done im tired

* ok, actually done now

worked out the breaking that was happening in the last commit

im probably using useState for more than is nessessary, only really needed to do triggerUpdate and Data

* key error/warning fix

* issues all done

* remove junk

* jank back button fix

i re-used the query querystring

* reove single search

* boi was that a pain to fix

* Update App.tsx
This commit is contained in:
robo
2022-03-04 01:25:10 +00:00
committed by GitHub
parent 06aa40630f
commit 964186ce42
16 changed files with 957 additions and 190 deletions

View File

@@ -16,6 +16,7 @@ interface IUseLibraryOptions {
query: NullAndUndefined<string>
setQuery: (query: NullAndUndefined<string>) => void
active: boolean
activeSort: boolean
sorts: NullAndUndefined<string>
setSorts: (sorts: NullAndUndefined<string>) => void
sortDesc: NullAndUndefined<boolean>
@@ -31,6 +32,8 @@ export default function useLibraryOptions(): IUseLibraryOptions {
// eslint-disable-next-line eqeqeq
const active = !(unread == undefined) || !(downloaded == undefined);
// eslint-disable-next-line eqeqeq
const activeSort = (sortDesc != undefined) || (sorts != undefined);
return {
downloaded,
setDownloaded,
@@ -39,6 +42,7 @@ export default function useLibraryOptions(): IUseLibraryOptions {
query,
setQuery,
active,
activeSort,
sorts,
setSorts,
sortDesc,