Commit Graph

229 Commits

Author SHA1 Message Date
schroda
bf8aecfc42 Properly update chapter list window scroll
Once the window scroller was set, resizing the window to increase the width did not remove the window scroller again
2024-08-31 23:43:06 +02:00
schroda
08866ace3d Terminate gql subscription on server address change
Otherwise, the subscription is still active for the old server instead of connecting to the new server
2024-08-26 00:25:58 +02:00
schroda
5bbde0edc6 Include artist, author and source name in library search 2024-08-14 22:58:22 +02:00
schroda
66e2bd47ea Include description in library search 2024-08-14 15:21:19 +02:00
schroda
49af42e1bc Improve string cleanup function
Replace special character with a space and reduce multiple spaces to one
2024-08-14 15:14:49 +02:00
schroda
782148a10e Handle target manga without chapters on migration
The server throws an error in case the source returns an empty chapter list.
However, this is not an error and should not break/stop the migration
2024-08-14 14:49:53 +02:00
schroda
af44421838 Improve library search
Simplify searching by making matching logic less strict.

- do not require full match
- additionally compare by removing all non letter and number chars
2024-08-14 14:15:19 +02:00
schroda
986d071bc8 Properly update existing global meta after mutation
"existingMetas" was incorrectly iterated over which caused an error in case the mutated meta did not exist prior to the mutation
2024-08-05 16:07:19 +02:00
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