Commit Graph

249 Commits

Author SHA1 Message Date
schroda
2e4d2fccca Fix primary, secondary dynamic theme colors for inactive theme mode
When the DARK mode is active, the primary and secondary colors still need to be correctly selected for the dynamic theme light mode.
Otherwise, in case the dynamic color theme gets saved, the inactive theme mode has incorrect primary and secondary colors
2026-01-02 23:08:38 +01:00
schroda
3ef4e92114 Fix save "dynamic color theme" dialog title 2026-01-02 22:50:12 +01:00
schroda
ce4eb98cbc Increase max length of custom themes to 32 2026-01-02 22:40:03 +01:00
schroda
4eaa701851 Add option to save dynamic manga color theme 2026-01-02 22:38:26 +01:00
schroda
bc06d88db0 Use AwaitableComponent for "CreateThemeDialog" 2026-01-02 22:38:04 +01:00
schroda
fd856c5cbd Increase threshold of large thumbnails for dynamic theme colors algo 2026-01-02 22:38:03 +01:00
schroda
b8fa4478f7 Always use Dark-/LightVibrant color as primary color dynamic theme 2026-01-02 22:38:03 +01:00
schroda
a317d55320 Improve theme auto background color
Should keep more of the original color, which previously got "washed out" because it was darkened/lightened too much
2026-01-02 22:38:02 +01:00
schroda
1d54a24adf Set "secondaryColor" for dynamic themes 2026-01-02 21:18:42 +01:00
schroda
f9973e0ef3 Improve image processing settings url target adding search parameters 2025-12-28 02:42:52 +01:00
schroda
cf24b388ba Fix extension info meta and action button styling
Ensure all components have the same width. Otherwise, the divider is not centered properly, which makes it look weird
2025-12-23 04:06:44 +01:00
schroda
04cdfafe31 Show uninstall button for updatable extension
fixes #1042
2025-12-23 04:06:44 +01:00
schroda
8da12f7a6e Simplify disabling image processing for mime-type 2025-12-23 02:35:01 +01:00
schroda
5def0ea818 Add new image processing settings on serve 2025-12-23 02:10:06 +01:00
schroda
d20ca69dc0 Extract "image processing" components 2025-12-23 02:08:24 +01:00
schroda
4c18348890 Move "clear cache" to "images" settings page 2025-12-23 02:08:15 +01:00
schroda
cedb865a42 Add "images" settings page 2025-12-23 02:08:14 +01:00
schroda
1b0d907708 Add new "external image processing" settings for downloaded images 2025-12-23 02:07:56 +01:00
schroda
083586c567 Update graphql files structure 2025-12-22 14:00:44 +01:00
schroda
14a881f17f Consider "empty" download conversion as unchanged 2025-12-22 12:56:18 +01:00
schroda
30856f996d Always revalidate first page for local source browse requests
fixes #1041
2025-12-22 12:35:08 +01:00
schroda
43d994f843 Keep unchanged metadata stable for memoization
Everytime the metadata got updated, unchanged values could cause rerenders because their reference changed.
This happened e.g., for the "customThemes" which caused the MUI theme to get recreated resulting in all components to rerender due to the theme context change.
2025-12-22 12:32:48 +01:00
schroda
bded64b0b1 Convert "download conversions" setting to a page 2025-12-22 12:31:54 +01:00
schroda
162b477032 Add "auto backup flags" settings 2025-12-22 12:31:48 +01:00
schroda
3ff6f2ec5f Add "opds cbz mime-type" setting 2025-12-13 17:50:29 +01:00
schroda
064dc9041b Add "hikari connection pool" setting 2025-12-06 20:01:31 +01:00
schroda
e914c04c88 Fix force page reload decision after a webui update 2025-12-06 20:01:09 +01:00
Zeedif
84cfa6bea5 Update KOReader Sync settings (#1030)
* feat(settings): refactor and implement KOReader Sync settings page

Refactors the KOReader Sync settings section into its own dedicated page and implements the full connection and configuration flow.

The previous implementation in the main server settings was outdated and incomplete. This change aligns the frontend with the latest backend logic and provides a complete user experience.

Key changes include:
- Separated the UI into two states: a login form for initial connection and a configuration panel for existing connections.
- Implemented `connectKoSyncAccount` and `logoutKoSyncAccount` mutations to handle authentication with the KOReader Sync server.
- Updated the `SERVER_SETTINGS` GraphQL fragment to use the new `koreaderSyncStrategyForward` and `koreaderSyncStrategyBackward` fields, removing the deprecated `koreaderSyncStrategy`.
- Moved all KOReader Sync settings from the generic Server Settings page to a dedicated route at `/settings/koreader-sync`.
- Restructured and improved i18n keys for better clarity and consistency.

Ran `yarn gql:codegen` to regenerate GraphQL types and helpers.

* Extract credentials login into component

* Update to server changes and cleanup

---------

Co-authored-by: schroda <50052685+schroda@users.noreply.github.com>
2025-12-06 19:59:39 +01:00
schroda
36248e17f0 Change add to library "show duplicate entry" button to be a link 2025-12-02 22:12:49 +01:00
schroda
17390b4ed9 Fix manga page "in library" button after click on "show duplicate entry" 2025-12-02 22:11:56 +01:00
schroda
13d6d1e525 Revert "Reduce rerenders on current page changes"
This reverts commit 3e9078420a.

Fixes #1040
2025-12-02 21:51:51 +01:00
schroda
9646aa2caf Fix reader progress bar size setting slider max value 2025-11-30 18:44:23 +01:00
schroda
3e9078420a Reduce rerenders on current page changes
The chapters state always created a new array reference which caused potential unnecessary rerenders.
2025-11-29 16:23:45 +01:00
schroda
3d8a81bc5d Reduce rerenders of reader desktop nav bar 2025-11-29 15:26:57 +01:00
schroda
b5d71adeae Prevent reader progressbar tooltips on mobile 2025-11-28 23:30:10 +01:00
schroda
860b00a0b5 Prevent reader progressbar tap highlighting on mobile 2025-11-28 23:29:51 +01:00
schroda
3dcdca7166 Reduce image rerenders in continuous reading modes on page change
In continuous reading modes the pages are always rendered regardless of if they are visible or not. This is the case to prevent layout shifts when prepending pages while scrolling up.

However, this means that a pages "load priority" and its "should load" flag changes everytime the current page changes, which causes unnecessary rerenders.
The "load priority" and "should load" flag do not matter once a page has been loaded and therefore should stay consistent once loaded.
2025-11-28 23:09:36 +01:00
schroda
d0735365ff Fix first visible page detection
50a6b72716 did not properly fix the detection and broke it for other reader settings.
2025-11-27 02:38:09 +01:00
schroda
e42fde5232 Fix incorrect error message when closing backup restore dialog 2025-11-26 18:18:31 +01:00
schroda
fe4bfd922e Queue image requests per source
If http protocol is h2 or newer, allow:
 - 5 requests per source
 - unlimited local source requests
2025-11-23 00:08:23 +01:00
schroda
890b304b4a Ignore source/extension, tracker icon and thumbnails requests from image queue
The server is not requesting these images through an extension; thus, it is not a problem to send them directly to the server since there is no problem of getting the server "stuck" due to extension rate limits.
2025-11-22 23:50:05 +01:00
schroda
9ed05f3fc0 Cache images via service worker
Improves the image request logic by making it possible to check if an image is cached.
In case an image is cached, it does not need to be put into the image queue because it won't be sent to the server.
2025-11-22 23:50:03 +01:00
schroda
704d3b191f Flag event listeners as passive 2025-11-22 19:14:43 +01:00
schroda
48b57c4a74 Simplify reader visible page detection 2025-11-17 02:19:36 +01:00
schroda
36477d1c95 Simplify scroll page into view inline alignment determination 2025-11-17 01:37:32 +01:00
schroda
50a6b72716 Fix first visible page detection in RTL + continuous horizontal mode 2025-11-17 01:24:58 +01:00
schroda
d093fe0281 Prevent default action on hotkey by default 2025-11-16 22:32:18 +01:00
schroda
64d5f3b8e1 Fix preserving current page on "reader width" change
Preservation triggered on every setting change because the object instance changed
2025-11-16 22:26:06 +01:00
schroda
bab55bafdb Preserve reader current page on "reader width" change 2025-11-13 01:35:46 +01:00
schroda
7b89fa10c5 Fix reader current page preservation on window resize 2025-11-13 01:35:46 +01:00