Commit Graph
116 Commits
Author SHA1 Message Date
Balázs Szücs ab96eee5bc refactor(types): replace most usages of 'any' with 'unknown' and improve type safety across services and components (#2050)
* refactor(types): replace most usages of 'any' with 'unknown' and improve type safety across services and components

- Update method signatures, variables, and interfaces to use 'unknown' instead of 'any'
- Refine event and observable typings for better type inference
- Add or adjust explicit types for function parameters and return values
- Update Chart.js tooltip and context typings for chart services
- Improve type safety in Book, BookState, and related models
- Adjust template bindings and method calls to match stricter typings
- Add SecureSrcDirective for secure image loading with fallback and error handling

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* chore(angular): remove proxy configuration from development build settings

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(book-browser): streamline entity and book state management with reactive streams

- Refactor entity type and entity fetching logic to use observables and combine route params
- Simplify book state handling by consolidating filtering and fetching into a single reactive pipeline
- Remove redundant applySortOption logic and related subscriptions
- Fix book card index binding in template for improved rendering performance
- Ensure proper cleanup of epub rendition in epub-reader component

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* fix(book-browser, book-uploader): improve permission checks and enhance file upload handling

- Use optional chaining for user permission checks in book-browser.component.html to prevent runtime errors when user data is undefined
- Refactor book-uploader.component.ts to pass destination and IDs explicitly to uploadBatch, reconstruct files for strict type handling, and ensure proper upload flow and UI feedback

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(charts, services): improve type safety for book state validation and update form field checks

- Refactor isValidBookState methods across chart components and services to use type predicates and stricter type checks for BookState
- Update metadata-picker.component to simplify array field checks for authors, categories, moods, and tags
- Adjust magic-shelf-utils to remove unnecessary fallback in object spread
- Update notification-event.service to use correct timeout type for highlightTimeout

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* fix(theme): ensure safe merging of theme properties and improve type definition for themesMap

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

* refactor(epub-reader): streamline book and rendition initialization logic

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>

---------

Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
2026-01-02 18:22:54 -07:00
ACXandacx10 01446c2537 Refactor book service in BE and FE (#2013)
* Refactor book service in BE and FE

* Add missing method

---------

Co-authored-by: acx10 <acx10@users.noreply.github.com>
2025-12-28 19:37:35 -07:00
ACXandacx10 b8fb843b7a Introduce more granular permission controls and update the user management UI (#1965)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
2025-12-22 11:24:54 -07:00
Muppetteer 0b4bccb462 fix(ui): Force page reload on logout (#1870) 2025-12-14 19:22:06 -07:00
Aditya Chandel 42d2e83599 Add loader for long running operations (#1790) 2025-12-07 20:23:47 -07:00
Chris Debenham 2f6ae855dd Re-enable ForwardAuth and have ForwardAuth work using email address (#1426)
* Fallback to using email for auth if user not defined by forwardauth

* Re-enable RemoteAuth

* Update build env
2025-10-23 21:57:08 -06:00
Aditya Chandel e70e7f89db Add reference link to OIDC documentation (#1376) 2025-10-17 13:23:13 -06:00
Aditya Chandel 814650bed9 Restrict access to Bookdrop and Metadata Manager pages for unauthorized users (#1363) 2025-10-16 10:22:03 -06:00
aditya.chandel a7622f1df1 Organize code some more 2025-10-12 02:13:10 -06:00
aditya.chandel 4453115149 Organize code 2025-10-12 02:09:57 -06:00
Aditya Chandel 7c9bd56f63 Improve Angular project structure and code organization (#1328) 2025-10-12 02:01:59 -06:00
Aditya Chandel 879d147e84 Improve notifications to display live progress for ongoing batch metadata fetches (#1242) 2025-09-30 14:31:14 -06:00
Aditya Chandel 131b19f49f Introduce per-library settings for metadata fetching (#1239) 2025-09-30 00:07:59 -06:00
Aditya Chandel 2a57d0babd Add more primary and surface colors (#1223) 2025-09-26 17:36:26 -06:00
Aditya Chandel 06523d4c24 Add setting/toggle to automatically download reviews (#1221) 2025-09-26 14:39:52 -06:00
Aditya Chandel 5278a2af32 Remove metadata backup process (#1205) 2025-09-25 10:05:42 -06:00
Aditya Chandel 1df21551f6 Rollback background blur and transparency due to high CPU/GPU usage (#1160) 2025-09-15 11:03:34 -06:00
Aditya Chandel 6ea2eb58bc Add auto-move option on metadata update and simplify file monitoring (#1137)
- Introduce option to automatically move books when their metadata is updated
- Simplify the file monitoring workflow for improved reliability and clarity
2025-09-12 11:59:36 -06:00
Aditya Chandel 1008a9476b Support configurable background image and transparency (#1126) 2025-09-09 22:18:52 -06:00
Ruben GMandCopilot 2e537bb2a1 feat: ComicInfo.xml support for CBX files (#1073)
* write, read ComicInfo.xml for CBZ files

* updated with recommendations from previous PR https://github.com/booklore-app/booklore/pull/1069

* read ComicInfo.xml on CBR, extract first image for CBZ/CBR files, save CBR metadata in ComicInfo.xml as CBZ

* Delete CBR file after CBZ conversion. Update DB

* Backs up file before updating. Restores back up if errored

* Test classes

* Update booklore-api/src/main/java/com/adityachandel/booklore/service/metadata/BookMetadataUpdater.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update booklore-api/src/main/java/com/adityachandel/booklore/service/metadata/writer/CbxMetadataWriter.java

Updating RAR binary availability check

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update booklore-api/src/main/java/com/adityachandel/booklore/service/metadata/extractor/CbxMetadataExtractor.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update booklore-api/src/main/java/com/adityachandel/booklore/service/metadata/extractor/CbxMetadataExtractor.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Code updates from PR suggestions

* Support to extract ComicInfo.xml for .cb7 files

* Writer extension for .cb7 files

* Adding com.github.junrar to build.gradle (forgot in previous commit)

* Settings toggle to control CBR/CB7 to CBZ conversion

* indentation complains

* removed duplicated junrar inport

* Restore comicinfo.xml metadata in edit view

* retrieve ComicInfo.xml metadata for new files in library scan

* private class definition was missed after merge

* Delete 

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-09 08:16:29 -06:00
Aditya Chandel 074d8d6e69 Fix database lockout caused by duplicate files in library (#1102) 2025-09-06 21:22:59 -06:00
aditya.chandel 47e24e2241 Add "OPDS Server Enabled" button to OPDS v2 settings 2025-09-01 15:44:20 -06:00
aditya.chandel 13df6a79b6 Revamp styling and layout of settings pages 2025-08-30 23:47:34 -06:00
aditya.chandel 443dcad59a Implement OPDS v2 to return user-specific book feeds 2025-08-30 17:02:35 -06:00
Yonghao ZouandAditya Chandel 342039ea4b feat: support Douban as a metadata provider (#1000)
* feat: support Douban as metadata provider.
Douban.com is a platform of sharing films, music and books in China.

* format code

* support douban reviews

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-29 10:32:55 -06:00
Aditya Chandel 09bc2f6e9e Feature/999 add high resolution cover support upload storage and search (#1006)
* Add high-resolution cover support: upload, storage, and search

* Disable tests until fixed
2025-08-27 21:47:27 -06:00
Aditya Chandel fe8925f65e feat(kobo): add optional EPUB → KEpub conversion for Kobo downloads (#969) 2025-08-23 20:51:04 -06:00
aditya.chandel 6e6861b329 Kobo Phase 1: Enable Book Transfer/Sync 2025-08-22 22:57:03 -06:00
aditya.chandel c75c4dce5b OIDC Authentication Revamp: Smarter Init, Error Handling, and Fallback 2025-08-15 21:02:33 -06:00
aditya.chandel 44541849ff Enhance OIDC flow for better error handling and misconfiguration recovery 2025-08-15 15:44:24 -06:00
aditya.chandel 7cea853756 Expose safe public app settings via dedicated endpoint 2025-08-14 18:19:49 -06:00
Alexander PuzyniaandAditya Chandel 60f8442514 Upgrade primeng to 20.0.1 (#903)
* build(npm): add missed packages

* build(npm): upgrade primeng to 20.0.1

* feat(ui): upgrade ui to support 20 primeng

https://primeng.org/migration/v19#compatible

* fix(ui): p-input value max requires value

* refactor(ui): remove unused component imports

* build(npm): allow common js dependencies

* style(ui): fix some warnings

* fix(ui): replace chips with autoComplete

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-14 12:10:45 -06:00
aditya.chandel 800cc4054f Support adding private, user-specific notes to books 2025-08-13 15:54:45 -06:00
aditya.chandel b8284b2e1c Introduce State & Gray surface colors 2025-08-13 13:07:38 -06:00
aditya.chandel c660497e0b Implement public review fetching from metadata providers 2025-08-13 13:02:53 -06:00
aditya.chandel 22b2c013bd Fix OIDC auto-login not triggering in new browser tabs 2025-08-12 22:42:14 -06:00
aditya.chandel dd7453fae1 Implement file moving based on library naming rules, falling back to app defaults 2025-08-11 16:59:42 -06:00
aditya.chandel ec5157464a Implement clean logout to fully clear app state and tokens 2025-08-11 13:30:37 -06:00
aditya.chandel ea84a9dc6a Fix: Navigating Booklore on a new device requires refreshes 2025-08-10 01:33:18 -06:00
aditya.chandel b1508493cf Implement live progress tracking for bulk metadata refresh (remaining books, status, cancel support) 2025-08-10 00:28:20 -06:00
Aditya Chandel 9ae1c6e2dc Add koreader sync support for book progress tracking 2025-08-08 09:38:20 -06:00
Rprasad2400andAditya Chandel 46f86deb24 Feature: Add Comicvine to metadata providers. (#804)
* added comcivine
* updated comicvine schema
* added comic vine support
* changed SQL changes
* fixed init provider bug
* updated changes for Flyway migration.

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
2025-08-06 11:29:12 -06:00
aditya.chandel 49c4519cf7 Persist cover scale preference per device using LocalStorage
- Store cover scale preference locally to allow different settings per device (desktop, mobile)
- Disabled backend saving for cover scale but kept code commented for future reference
- Load scale preference from LocalStorage on init for faster and device-specific UX
2025-07-21 17:27:32 -06:00
aditya.chandel 06e58233b1 Progressive UI Refinements for Mobile and Desktop Layouts 2025-07-19 15:43:49 -06:00
aditya.chandel fe2d307d2a Use 100dvh to fix layout issue in mobile devices 2025-07-19 14:37:45 -06:00
aditya.chandel 177528e640 Implement Bookdrop: Watch folder for file drops and auto-process uploads 2025-07-19 11:05:59 -06:00
aditya.chandel 084509a974 Fix correct color rendering issue in Firefox light mode 2025-07-14 11:34:05 -06:00
aditya.chandel 116f0c950e Implement interactive metadata review for batch updates, with progress tracking and a unified notification system 2025-07-13 23:32:08 -06:00
aditya.chandel d0edf800c7 Improve UI compatibility for mobile devices 2025-07-07 14:52:11 -06:00
aditya.chandel c8b994ed82 Remove lock icon from the book card 2025-07-06 18:09:56 -06:00