Commit Graph

302 Commits

Author SHA1 Message Date
schroda
ffd6c5867f Fix "coerceIn" for calls with max < min
Previously the min value was ignored in case the max value was less than the min value.
E.g. coerceIn(5, 0, -1) would be -1 instead of 0
2025-02-12 19:55:46 +01:00
schroda
c79ccf3523 Improve memoization of "ReaderTransitionPage"
- use chapter properties instead of chapter object
- only pass "handleBack" in case the transition page is for the first or last chapter
2025-02-03 17:17:35 +01:00
schroda
3698c19aba Properly enable cors for images by default 2025-01-26 17:18:27 +01:00
schroda
25e3fc7808 Load images with cors allowed
Without allowing cors it is e.g. not possible to extract colors from an image
2025-01-26 04:20:59 +01:00
schroda
a56fd08bf6 Include http status on rest fetch failure 2025-01-26 03:30:35 +01:00
schroda
c42e51b6f9 Infer server port only in dev env 2025-01-23 13:15:08 +01:00
schroda
a22a4bf546 Switch to "colorSchemes" from "palette" API in mui theme
"colorSchemes" is the preferred api starting from mui v6
2025-01-17 01:25:55 +01:00
schroda
63a6cfcfb3 Add merge function for "DownloadStatus" "queue" field 2025-01-12 20:55:08 +01:00
schroda
e25aa98365 Do not update "download status" on "download updates"
For large download queues this makes the app unusable.

At the moment this is not needed anyway and once it is, it needs to be improved and only be done in the "download queue" page since the queue is only use there
2025-01-12 20:47:16 +01:00
schroda
10a77722cc Remove outdated "download types" from apollo cache 2025-01-12 20:28:20 +01:00
schroda
57f73636a0 Read chapter download status from cache
Instead of getting the whole download status, which contains all queued/active downloads, the download status should be read from the cache for only the required chapters
2025-01-12 14:09:10 +01:00
schroda
530ae1578f Prevent invalid values for "auto scroll speed"
The min/max limit was only acknowledged when the value was changed via MUIs step logic.
In case the number got inputted via keystrokes the limits did not get applied
2024-12-29 23:41:26 +01:00
schroda
33e184ba18 Add "auto webtoon mode" option to reader 2024-12-27 02:51:35 +01:00
schroda
5dbf1aa8e0 Adjust ReaderChapterTransition text color
Text color was never adjusted based on the selected "reader background color"
2024-12-25 02:36:53 +01:00
schroda
94b0e25df2 Update "apollo-upload-client" to v18.x
- apollo-upload-client v18.0.1
- @types/apollo-upload-client v18
2024-12-24 14:19:40 +01:00
schroda
89cab26f73 Fix typing after "apollo-client" update to v3.12.4 2024-12-24 00:36:26 +01:00
schroda
3949363474 Include actual error in snackbar 2024-12-20 17:24:40 +01:00
schroda
916abd3bb1 Resume chapter at specific page
- open from outside reader
 - is read
  - yes: 1st page
  - no : last read page
- inside reader via
 - chapter selection: first page
 - previous chapter : last page
 - next chapter     : first page
2024-12-09 02:38:37 +01:00
schroda
a607f7f368 Reader settings 2024-12-09 02:38:37 +01:00
schroda
7434ed0152 Reader progress bars 2024-12-09 02:38:37 +01:00
schroda
12e8939267 Prevent duplicated downloads in download queue
The mutation to add chapters to the download queue returns the current download queue.

Thus, the local queue already includes the new downloads and adding them blindly in the download subscription will cause them to be in the local queue twice.
2024-12-09 02:38:37 +01:00
schroda
1e109e7d32 Remove deprecated "gqlDebugLogsEnabled" setting 2024-11-28 12:22:17 +01:00
schroda
0c02de5b92 Correctly get total library size
The total size was the sum of all categories, which could include duplicates, since manga can be in multiple categories.

This still will show an incorrect number, because server side there is the same issue with the "mangas" query including duplicates in the total count, however, once this is fixed, the correct count will be displayed
2024-11-28 12:20:36 +01:00
schroda
a819d45489 Update to server download subscription changes 2024-11-28 12:17:55 +01:00
schroda
87ee1330d4 Prevent blinking on reader page switch on firefox
on firefox images are decoded async which causes a "flicker/blinking" when they're getting visible for the first time
this is an issue especially in the reader because pages that should not be shown are rendered but
not displayed, which then causes this issue once they get displayed
2024-11-13 15:47:03 +01:00
schroda
f9938edb75 Extract aborting image requests into function 2024-11-13 14:41:26 +01:00
schroda
e90d705610 Add option to update all updatable extensions 2024-11-04 01:30:09 +01:00
schroda
e71c4b7ef1 Cleanup deprecated metadata after migration
- delete deprecated metadata
- save applied migration id per metadata holder
2024-11-04 00:11:01 +01:00
schroda
c477911e25 Properly set virtuoso item keys 2024-10-16 19:44:03 +02:00
schroda
f704e5bc33 Move "Mangas.ts" types and constants to new files 2024-10-07 13:45:07 +02:00
schroda
6e9fdee0bb Handle source browse error 2024-10-06 16:15:01 +02:00
schroda
84b9f8361d Fix RequestManager location
Was changed unintentionally
2024-10-06 13:45:22 +02:00
schroda
e7e1fbbc4e Move more core logic to new folder 2024-10-06 00:16:41 +02:00
schroda
babda1ea57 Move metadata files into new folder 2024-10-06 00:16:34 +02:00
schroda
a16fef0aab Move setting files into new folder 2024-10-06 00:16:31 +02:00
schroda
3244a6e3df Move device files into new folder 2024-10-06 00:01:51 +02:00
schroda
e466842c77 Move theme files into new folder 2024-10-05 23:35:25 +02:00
schroda
946c852828 Move category files into new folder 2024-10-05 23:35:23 +02:00
schroda
17e42ae012 Move migration files into new folder 2024-10-05 23:35:22 +02:00
schroda
7cf3849911 Move tracker files into new folder 2024-10-05 23:35:21 +02:00
schroda
64629fd979 Move source files into new folder 2024-10-05 23:35:18 +02:00
schroda
79341b7817 Move reader files into new folder 2024-10-05 23:35:17 +02:00
schroda
91e1f01de5 Move library files into new folder 2024-10-05 23:35:16 +02:00
schroda
18fc225d6c Move manga files into new folder 2024-10-05 23:35:13 +02:00
schroda
cb731cefc0 Move chapter files into new folder 2024-10-05 23:35:11 +02:00
schroda
23a86a77f0 Move core files into new folder 2024-10-05 22:55:08 +02:00
schroda
6ca16b9449 Add sort options to migration list 2024-09-30 05:03:28 +02:00
schroda
ff9f6b6207 Add hook to get value based on themes "direction"
In case the component didn't rerender on a language change, the used value was never updated based on the new "direction"
2024-09-30 02:55:34 +02:00
schroda
df420710ae Add "shouldForwardProp" util function 2024-09-30 02:55:32 +02:00
schroda
8f4da52d1f Add optimistic response to server settings mutation 2024-09-26 15:34:00 +02:00