Commit Graph

126 Commits

Author SHA1 Message Date
Valter Martinek
6f8755fa05 Feature/swr for library screens (#186)
* 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
2022-11-02 13:12:02 +03:30
robo
14a9ffa558 fix mangadex filters (#177) 2022-06-25 00:36:12 +04:30
amr
365f28fee5 added an update checker button for library (#172)
* added an update checker button for library

* fixed import path

* fixed progress props to not be inline

* added error handling

* fixed linting issue
2022-04-18 12:56:36 +04:30
amr
13e6456190 unified library options (#168)
* 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
2022-04-07 15:23:14 +04:30
robo
ee9c3d8c69 fix the grid width thing (#169)
not sure why it was broke but this seems to fix it
2022-04-06 20:42:41 +04:30
robo
9ac66d08ef items per row setting (#165)
* items per row setting

self explanatory

* make it better for user
2022-04-02 05:04:10 +04:30
robo
eeaee05ae7 18+ tag on source/extension cards (#160)
* 18+ to source card

* 18+ extensions card
2022-03-13 11:36:18 +03:30
robo
042172a072 mass search (#157)
* mass search

currently cripples server for like 2 mins on use

* works

its slow, really slow
but it don't break the server anymore

* concurrency using p-queue

* remove package.lock + search auto select

* sorting like yomi

* fix yarn.lock
2022-03-12 08:16:55 +03:30
robo
841b945ca5 in library badge to manga in sources (#156)
* add the in library badge to manga in sources

* other layouts done
2022-03-11 19:24:45 +03:30
robo
33c9defdd9 List layout (#154)
* source layouts

* list layout

Co-authored-by: Aria Moradi <aria.moradi007@gmail.com>
2022-03-07 00:33:15 +03:30
robo
70b84b810f source layouts (#153) 2022-03-07 00:32:06 +03:30
robo
0a63d60880 add comfortable grid option (#152)
* 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.
2022-03-06 20:15:25 +03:30
robo
08a53053b2 move sorts to copy tachiyomi (#151)
is now in a tab along with filter ad display same as tachiyomi
2022-03-06 02:38:32 +03:30
robo
a50824c129 fix manga badges setting menu that turns the update/download badges on and off (#150) 2022-03-05 09:14:59 +03:30
robo
68351aa12f Source filter scroll fix (array of filters on submit) (#149)
* scrolling filters issue fix

scrolling after changing filters and not submitting works properly now

* fixed it

wasn't something i introduced just then, just forgot to fix

* source filters array on submit
2022-03-05 01:18:33 +03:30
robo
bdd03f6698 Update LibraryOptions.tsx (#146) 2022-03-04 14:41:46 +03:30
robo
9c512b2a95 Source genre sorts design (#147)
design thing to copy tachiyomi 1 to 1
(only a slight functional change nothing screenshot-able)
(clicking a new sort always sets to ascending)
2022-03-04 14:41:17 +03:30
robo
964186ce42 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
2022-03-04 04:55:10 +03:30
abhijeetChawla
03df6fbdf6 Resolved Merged Conflicts (#127) 2022-03-03 16:19:01 +03:30
abhijeetChawla
052c9c3ba6 add NavBarContextProvider (#128) 2022-03-03 13:09:18 +03:30
Silenc3IsGold3n
7d890ea093 Close button fix (#141)
* Close button now points to library instead of back

* Redirect back to specific manga page always

Co-authored-by: a <a@a.a>
2022-03-02 13:34:00 +03:30
robo
d4221044cc sorting (#136)
* sorting

add menu
add sort by left to Read
add sort alphabetical
add sort by ID
add Asc/Desc

* woops

* woops

* Camel case
2022-02-24 09:46:21 +03:30
robo
55a3f8ed23 fix scrolling 8px (#135)
ChapterCount Header has a top margin of 8px that wasn't accounted for
2022-02-23 22:21:46 +03:30
Aria Moradi
237762b762 fix direct links (#133) 2022-02-21 01:24:42 +03:30
Aria Moradi
f47f71bc4c fix links to work on a bare host (#132) 2022-02-21 01:10:33 +03:30
Aria Moradi
08d44e38fc show locale date, less confusing (#131) 2022-02-20 23:49:37 +03:30
abhijeetChawla
aaaadebfb3 refactor ChapterOptions (#126)
* 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
2022-01-24 13:09:28 +03:30
abhijeetChawla
f273b11a82 refactor ChapterList (#125)
* Refactor to move all the Data fetch logic for chapters to seperate Hook called useChapterFetch

* Bug fix: No Chapters found Toast
2022-01-23 10:00:54 +03:30
Aria Moradi
7eedce62cd handle search shortcuts (#116)
* code cleanup

* fix some issues

* handle search keyboard shortcuts
2021-12-19 18:06:27 +03:30
Aria Moradi
83f025161b cleanup (#117)
* cleanup

* fix template
2021-12-19 18:02:02 +03:30
abhijeetChawla
2a7b0692e2 added extension search (#115)
Rewrote Extensions as with Virtuoso and Made it Query Work just the Extension Sort order is remaining
2021-12-19 11:25:35 +03:30
abhijeetChawla
d382998d06 Chapter filter is woking (#114) 2021-12-13 17:52:56 +03:30
Aria Moradi
51376be845 migrate PageNumber to Mui 5 (#90)
* migrate PageNumber to Mui 5

* Update src/components/reader/PageNumber.tsx

Co-authored-by: Sascha Hahne <ntbm@users.noreply.github.com>

Co-authored-by: Sascha Hahne <ntbm@users.noreply.github.com>
2021-12-04 10:36:55 +03:30
Aria Moradi
83e6038f61 migrate HorizantalPager to Mui 5 (#92) 2021-12-04 10:31:13 +03:30
Aria Moradi
b08425647a migrate DoublePagedPager to Mui 5 (#91) 2021-12-04 10:28:52 +03:30
Aria Moradi
864e1e4fb0 migrate DoublePage to Mui 5 (#88) 2021-12-04 10:24:16 +03:30
Aria Moradi
24addbdb52 show correct title (#111) 2021-12-04 10:23:12 +03:30
abhijeetChawla
ac4aa7d1ca MangaCard imges don't stretch now (#110) 2021-12-03 13:09:02 +03:30
Aria Moradi
890e0c8aa3 migrate PagedPager to Mui 5 (#93) 2021-12-03 10:36:36 +03:30
Aria Moradi
1a62bad4a6 migrate VerticalPager to Mui 5 (#94) 2021-12-03 10:35:55 +03:30
Aria Moradi
a8444e5101 migrate SpinnerImage to Mui 5 (#97)
* migrate Page to Mui 5

* migrate SpinnerImage to Mui 5

* match the style
2021-12-01 03:06:06 +03:30
Aria Moradi
c214406546 migrate ReaderNavbar to Mui 5 (#84)
* migrate ReaderNavbar to Mui 5

* cleanup, show loading text when loading.
2021-12-01 03:03:52 +03:30
Aria Moradi
a3fe748c90 add support for MultiSelectListPreference (#108) 2021-11-29 19:08:02 +03:30
Aria Moradi
03d09b2e92 cleanup library (#107)
* refactor library

* handle invalid tab numbers
2021-11-19 16:36:02 +03:30
Aria Moradi
057d284a01 migrate DesktopSideBar to Mui 5 (#87) 2021-11-17 17:00:11 +03:30
Aria Moradi
d35f7c64d3 migrate SourceCard to Mui 5 (#82)
* migrate SourceCard to Mui 5

* give semantic meaning
2021-11-17 15:45:25 +03:30
Aria Moradi
cc1d94545f migrate LoadingPlaceholder to Mui 5 (#96) 2021-11-17 15:42:43 +03:30
Aria Moradi
30dd0fb86f migrate ExtensionCard.tsx to Mui 5 (#81)
* migrate ExtensionCard.tsx to Mui 5

* fix styling
2021-11-17 14:29:47 +03:30
Aria Moradi
045fac7e97 migrate LangSelect to Mui 5 (#86) 2021-11-17 14:28:23 +03:30
abhijeetChawla
0a89d227db Save tabs number in Url to persist tab when go to other paths (#78)
* added an optional  url parameter to the library path to get to a particular tab

* Added Error checking when taking the parameter from the Url

* Now Tabs persist with library options

* FIxed a bug which made the backbutton appear in the Library route when tabs number was presents in the url
2021-11-17 14:10:04 +03:30