Commit Graph

221 Commits

Author SHA1 Message Date
schroda
8ff67a38f0 Combine manga and category migration 2024-08-05 16:07:18 +02:00
schroda
4a01b1873c Change order of update manga migration
This prevents issues of manga having a specific library state while they are incorrectly in or not in categories.

E.g. a manga was removed from the library but the category update mutation failed, which now causes it to still be in the set categories while not being in the library anymore
2024-08-05 16:07:17 +02:00
schroda
a29c113b5f Migrate manga only after "copy" succeeded
In case the manga should not only be copied but actually migrated, the "migration" actions should only be executed in case the copy actions have succeeded.
2024-08-05 16:07:16 +02:00
schroda
17c5780203 Await track migration mutation request 2024-08-05 16:07:16 +02:00
schroda
b17fcd30af Replace deprecated gql sort inputs
Was missed in e1e2cbc679 and caused unexpected behaviour due to the response data being incorrectly sorted
2024-07-29 14:10:37 +02:00
schroda
e99ed3eec5 Add "has duplicate chapters" library filter
closes #777
2024-07-28 23:15:11 +02:00
schroda
792bbe4563 Add new FlareSolverr "response fallback" setting 2024-07-28 22:50:27 +02:00
schroda
3065e80b36 Properly sort chapters of same manga in updates
In case chapters of the same manga had been fetched at the same time, they were sorted by their source order ascending instead of descending, which caused the newest chapter of that manga to be farther down instead of being the first
2024-07-28 22:29:01 +02:00
schroda
e1e2cbc679 Use new gql sort options 2024-07-28 22:21:11 +02:00
schroda
cdcf69a3a2 Fetch manga chapter infos on chapter list refresh
In case an uninitialized manga was opened from the library, the manga and its chapter list got refreshed.
However, the chapter infos (e.g. unread, downloaded count, etc.) were not requested with the chapter list mutation, which resulted in this information to be missing
2024-07-26 13:45:17 +02:00
schroda
31837392b5 Remove default props usage 2024-07-11 18:13:51 +02:00
schroda
35ee359754 Remove "clientMutationId" 2024-07-11 18:09:47 +02:00
schroda
2f60b94a64 Get rid of some casts 2024-07-11 18:01:41 +02:00
schroda
bc01a945db Fix download queue related TypeErrors
With the changes from df006bb348, the requested download queue data changed not matching the previously used type.
The unnecessary cast then hid the tsc issues during compilation
2024-07-11 18:01:39 +02:00
schroda
205c833b19 Add missing chapter fields to update subscription 2024-07-09 01:19:05 +02:00
schroda
b70c404fb1 Move "Fragments" file into "fragments" folder 2024-07-09 00:41:14 +02:00
schroda
c1e92b3256 Extract info gql fragments 2024-07-09 00:39:41 +02:00
schroda
50aae95700 Extract server settings gql fragments 2024-07-09 00:38:08 +02:00
schroda
3d21266f92 Reduce requested manga data in queries 2024-07-09 00:30:15 +02:00
schroda
4b30e9bc48 Reduce requested extension data in queries 2024-07-09 00:21:51 +02:00
schroda
df006bb348 Reduce requested downloader data in queries 2024-07-09 00:21:51 +02:00
schroda
cb978d9a0e Reduce requested updater data in queries 2024-07-09 00:21:50 +02:00
schroda
83be995fb8 Reduce requested tracker data in queries 2024-07-09 00:21:49 +02:00
schroda
7556ea9b38 Reduce requested source data in queries 2024-07-09 00:21:49 +02:00
schroda
2fa1de578c Reduce requested chapter data in queries 2024-07-09 00:21:46 +02:00
schroda
9b8ace003d Reduce requested category data in queries 2024-07-03 23:24:50 +02:00
schroda
faf2bd2572 Uses correct extension gql key 2024-07-03 23:24:49 +02:00
schroda
c337ec09ea Optionally remove migrated manga from categories
In case the setting is enabled, the manga should be removed from all categories on migration
2024-06-26 14:18:38 +02:00
schroda
6224ad4596 Prevent empty chapter updates on migration
In case there were no chapters to migrate the read or bookmark status, a request with an empty list was sent to the server.
This caused an exception on the server which resulted in a request failure which at the end caused the migration to fail
2024-06-26 13:59:14 +02:00
schroda
3206944052 Optionally trigger update for specific category 2024-06-26 12:42:03 +02:00
schroda
17e2d7585d Handle unsupported dayjs locales
DayJs doesn't support all the locales returned by "navigator.language"
2024-06-25 17:21:50 +02:00
schroda
fdf78145f0 [VersionMapping] Update to latest server gql schema changes
Server now supports partial mutation responses.
2024-06-03 03:09:58 +02:00
schroda
cf996d67bb Add "isMobileWidth" util function 2024-05-23 02:37:40 +02:00
schroda
297ec2580b Copy manga title on long press 2024-05-23 02:28:43 +02:00
schroda
ea6eac5066 Consider tracker logged out if token is expired
Server returns logged in state for a tracker even while the token has expired
2024-05-22 23:24:05 +02:00
schroda
e9ee43b9b4 Use "DayJs" instead of "Date" 2024-05-21 22:22:12 +02:00
schroda
09ee5e6862 Extract dayjs setup into file 2024-05-21 20:45:13 +02:00
schroda
d889be558e Remove unnecessary "??" operator usage 2024-05-20 17:44:27 +02:00
schroda
a65ca228fe Keep initial opened chapter as duplicate reference
In case "skip duplicated chapters" is enabled and the next chapter is from a different scanlator, the initial opened chapter should still be used to remove duplicated chapters.

Otherwise, the original scanlator would get lost and the scanlator of the next chapter would get used, which was only a fallback chapter, because the initial chapters scanlator did not have a next chapter.
2024-05-13 04:04:41 +02:00
schroda
760de9e791 Fetch "chapters with state" sorted by asc "source order"
It was possible that the chapters were out of order which e.g. could cause issues with selecting the next chapters to download
2024-05-13 01:24:13 +02:00
schroda
5cb541b684 Add functionality to save source browse searches 2024-05-08 13:45:56 +02:00
schroda
93f76d6b7e Reduce active apollo queries 2024-05-08 13:45:42 +02:00
schroda
f2be29ea3a Show search tips for MyAnimeList 2024-05-07 14:42:02 +02:00
schroda
86ec83a2ef Handle missing trackers in backup validation result 2024-05-07 02:28:08 +02:00
schroda
63543a48e3 Add option to disable server update checks 2024-05-07 01:08:08 +02:00
schroda
51a0173927 Add option to disable webUI update checks 2024-05-07 01:06:33 +02:00
schroda
4d04b9cecd Only abort pending image requests
In case images are requested of a slow source, aborting image requests that are already in progress will cause the server to take forever for new source image requests because it's still processing the aborted image requests.
Thus, aborting ongoing image request might cause more harm than good, since the server will basically become "unresponsive" for new images requests of this source.

By only aborting pending requests, that have not been sent to the server yet, new image requests will only be handled once the active requests are done, preventing the server from getting spammed with image requests that potentially are just getting aborted immediately again (e.g. due to scrolling quickly in the source browse page), but still will be handled by the server, blocking new requests
2024-05-06 02:37:00 +02:00
schroda
f66051d398 Check for duplicated library manga on add to library 2024-05-04 14:43:41 +02:00
schroda
5ab921aba7 Fix TypeError in Mangas::downloadChapters
In case a manga was completely downloaded, the grouped chapters did not contain a list for the specific manga id, resulting in an TypeError due to trying to use the array as if it was not undefined
2024-04-30 00:39:47 +02:00
schroda
7866fdb9f1 Never use cache for manga chapters with state query
Changed with 0c4ce2c9c5, but it does not work because the chapters state could have changed in the meantime, changing the chapters included in the query response, which is not represented by the cached query
2024-04-29 14:54:18 +02:00