* [#213] Add missing "meta" property
- IManga
- IMangaCard (optional)
- IChapter
- ICategory
* [#213] Add util functions for handling metadata
- global server
- manga
- chapter
- category
* [#213] Use "ReaderSettings" from the manga metadata
- get ReaderSettings from manga metadata
- remove unnecessary check "make sure settings has all the keys"
in case the stored settings in the metadata are outdated they will be filled with default values
* [#213] Reload manga only in case "mangaId" changed
In case the chapter is still from the same manga, a reload is unnecessary
* [#213] Only update the changed reader setting
Otherwise the app has to send patch requests to the server for every setting even if it didn't change
* [#213] Hide "openButton" on first render in case "navBar" is shown
The "openButton" was always set to be visible event in case the navBar was shown on the first render
* [#213] Open the "ReaderNavBar" if needed after receiving new settings
Otherwise, the drawer won't open in case the "navBar" was hidden on the first render since the default state in that case was set to false
* [#213] Update "ReaderSettings" after receiving the manga response
Otherwise, the default settings aren't getting removed
* [#213] Hide/Show "OpenButton" when opening/closing the drawer
Otherwise, the button stays hidden until it gets updated due to scrolling
* [#213] Keep "ReaderNavBar" state when opening prev/next chapter
In case the navBar wasn't sticky but opened, it got closed when the prev/next chapter got opened
* [#213] Prevent "ReaderNavBar" from closing when changing "staticNav" setting
* Fix library update progress rendering
The websocket sends a list with mangas for each category (completed, running, pending) instead of a number.
This resulted in the progress to always be 0
* Prevent TypeError
The "UpdateStatus" can have a "statusMap" that contains not data.
Co-authored-by: schroda <github@dasch.simplelogin.com>
* Remove scroll tracking from Page component
* Replace initial scrolling trigger with initialPage prop to be more clear on when to scroll to inital page
* Add current page tracking back to HorizontalPager
* Memoize prevChapter and nextChapter functions
* Rewrite navigation in vertical pager to scroll by screen percentage instead of whole pages, refactor code
* Handle last pages explicitly to fix issue with small last pages
* Refactor library options to match chapter options using shared component
* Disable some eslint rules
* Cleanup SourceOptions layout to use same components as other panels
* Add NavbarToolbar component for rendering items in toolbar through portal
* Refactor Manga screen, move chapters filtering to toolbar menu, cleanup ChapterOptions
* Fix warning
* Update layout of ChapterList and add selection for chapters, add batch download, move stuff around
* Add space to bookmark icon
* Clear actions when leaving source mangas page
* Move bookmark icon back inline and align it correctly with text
* Fixup MangaDetails buttons to update cache properly so buttons in manga menu are updated
* Move chapters filter to ChapterList
* Fixup error display overlapping with loaded content when revalidation fails
* Fixup spacing around ChapterList title
* Only show small progress if manga is loaded so there is not to many spinners
* Prevent title wrapping
* Add icon buttons to desktop sizes of manga toolbar menu
* Wrap data fetching in library and manga screen with swr for better dev and user experience. Refactor some API calls and data handling. Add manual refresh to manga detail.
* Fix manga card layout
* Fix refresh button position on small screens
* Revert "Fix manga card layout"
This reverts commit d85da3d8385e1ef64feed1789e4cd4591c8bd563.
* Fix manga not setting title
* Move chapters loading to Manga component, join data fetching, add auto online fetch if fetched data is old
* Revert some changes
* Unified the way options are being handled. now everything uses the LibraryOptionsContext, removed the no-longer used useLibraryOptions hook
* removed query from library options. since it doesn't make sense for this to be cached
* fixed a bug in the useLocalStorage implementation
* move sorts to copy tachiyomi
is now in a tab along with filter ad display same as tachiyomi
* add comfortable grid
and all the stuff needed to make it easy to add more
* Revert "Merge remote-tracking branch 'upstream/master' into grid-types-(comfortable/list)"
This reverts commit 33eed92e8f7259ddce0e34ab59f721553bbb7e93, reversing
changes made to d699955345e253d2b2c2d837e76509a39b3bef00.
* 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
* Download Queue info
add Imanga type definition to IDownloadChapter
add source name to queue
add manga name to queue
* more like tachi
* add back state and % data
* yup forgot to remove after
* Added a useLocalStorageReducer funtion
This is mostly a refactor of ChapterOptions to simplify it with a reducer function
Also moved a lot of function used in ChaperList to a utility file
* Added UseCallback where needed
* renamed utility folder to util to follow the convention throughout the app
* Refactor: Moved Resume FAB to seperate file
* Renamed Types and Function for chapter filtering and sorting with the chapterOption prefix
* more renaming
* Added the Floating action button to Resume to the last read chapter
- When a chapter is marked as read/unread the lastPageRead is changed to 1,
Also fixed a bug which made the boolean expression appear in the ui
Also removed some unused Styles
Added the Resume/Start Button
* changed a Resume button to a React compnent
* Update src/screens/Manga.tsx
Co-authored-by: Sascha Hahne <ntbm@users.noreply.github.com>
* Update src/screens/Manga.tsx
Co-authored-by: Sascha Hahne <ntbm@users.noreply.github.com>
Co-authored-by: Sascha Hahne <ntbm@users.noreply.github.com>
* Added conditional unread badges
* Better spacing for unread badges
* Revert minHeight change as it is not relating to this feature
* Change to flexbox
* sidebar is working in the desktop mode
Still needs a few styling imporvements
* - made the color of the sidebar same as the Navbar
- increased font size in when using on a non-mobile device
* changed the main view padding to 64px
* Settings changed a few values to be based on the Theme object
* - Added ToolTip
- Fixed a Typo
- Renamed mobileDevice to isMobileWidth
- changed text property to Title in NavbarItem
* increased tooltip fontsize