Commit Graph
89 Commits
Author SHA1 Message Date
James Ward 84b00de628 chore(deps): drop unused frontend dev dependencies (#1149) 2026-05-05 22:43:36 -04:00
James Ward 3dae0e0122 build(ui): drop ngx-extended-pdf-viewer angular asset config (#1143) 2026-05-05 21:42:48 -04:00
James Ward 0485bce5c6 chore(deps): bump @stomp/rx-stomp from 2.3.0 to 2.4.0 (#1144) 2026-05-05 21:42:31 -04:00
James Ward 2fcbb5c708 fix(pwa): swap PWA icons to light theme (#1122) 2026-05-05 00:21:17 -04:00
James Ward efc7be6be5 build: add gradle lockfile (#1119) 2026-05-04 22:41:49 -04:00
James Ward cdb67680c1 test: drop redundant mockito-inline dependency (#1120) 2026-05-04 19:50:49 -04:00
James Ward d355f73228 fix(metadata): truncate review data before storage (#1086) 2026-05-04 16:52:18 -04:00
James Ward de96fd89c9 fix(ui): revert to UI-based filtering & sorting (#935) 2026-05-04 13:37:07 -04:00
James Ward 25bcc0966c fix(metadata): ignore non-results when parsing audble (#1081) 2026-05-04 09:33:20 -04:00
James Ward 108cd1954a build: ensure gradle version does not have v prefix (#1080) 2026-05-04 11:19:04 +02:00
James Ward de932000e2 fix(kobo): add endpoints for devices to run with proxy off (#1052) 2026-05-03 21:57:16 -04:00
James Ward 0edb544316 refactor(api): avoid polynomial regex issue in CustomFontService (#1042) 2026-05-03 21:56:12 -04:00
James Ward 12e721fa0f fix(cbx): drain NightCompress InputStream before closing (#1004) 2026-05-01 00:52:58 -04:00
James Ward f44661318b ci: skip discord notification on release when no token (#1020) 2026-04-30 22:40:28 -04:00
James Ward 54340628c1 ci: get OpenAPI json export operating on nightly (#1022) 2026-05-01 01:50:25 +00:00
James Ward 620002b3e3 test: disable flakey BookRuleEval test (#1023) 2026-04-30 21:27:54 -04:00
James Ward aa82cd2463 ci: support building images in forks (#1002) 2026-04-30 03:25:14 -04:00
James Ward 0fad5c11e4 fix(ui): prevent directory picker folder clicks selecting (#986) 2026-04-29 12:32:13 +02:00
James Ward 2936d28582 fix(ui): add back the dashboard scroller scrollbar (#983) 2026-04-29 10:54:21 +02:00
James Ward b0a5394b52 build: use picomatch 4.0.4 to avoid CVE-2026-33672 (#978) 2026-04-28 22:43:47 +02:00
James Ward 781bab8967 build: use vite 7.3.2 to avoid CVE-2026-39364 (#975) 2026-04-28 16:22:36 -04:00
James Ward dce13b121e refactor(metadata): avoid polynomial regexes in ComicvineBookParser (#930) 2026-04-28 15:41:17 -04:00
James Ward f359e49a6b fix(ui): prevent console error when leaving reader (#956) 2026-04-28 09:40:24 -04:00
James Ward 4001b042b3 fix(ui): use signals to unfreeze library loading component (#964) 2026-04-28 08:50:13 -04:00
James Ward 5242fe1dc9 build(backend): inject app version in jar manifest (#957) 2026-04-28 05:57:44 -04:00
James Ward bf7c2d8dd4 refactor(metadata): avoid regex for AmazonBookParser (#926) 2026-04-27 16:44:31 -04:00
James Ward 986cd49960 test: add tests for ComicvineBookParser (#949) 2026-04-27 16:02:58 -04:00
James Ward 7da337754b fix(ui): fall back the book sorting service to primary file (#944) 2026-04-27 15:10:48 +00:00
James Ward 95cd73d0bb chore(deps): bump postcss from 8.5.8 to 8.5.12 in /frontend (#918) 2026-04-27 04:03:31 -04:00
James Ward 1c447e6ade refactor(api): use package imports in tests where possible (#915) 2026-04-26 21:06:58 -04:00
James Ward ed35da2f22 fix(ui): allow self frame-src for pdf doc mode (#901) 2026-04-26 13:11:34 -04:00
James Ward df40f845bd refactor(api): use package imports in more situations (#899) 2026-04-26 11:34:02 -04:00
James Ward 92c9035887 fix(ui): add 'self' to worker-src for our angular worker (#894) 2026-04-25 22:04:00 -04:00
James Ward b0c85724cc fix(ui): disable critical-inlining to prevent CSP failure (#893) 2026-04-25 21:54:06 -04:00
James Ward 79455ff762 fix(metadata): read proper description field for LubimyCzytac (#877) 2026-04-25 18:37:49 -04:00
James Ward 30434e4dcd fix(reader): use CSP for protecting foliate instead of iframe sandbox (#848) 2026-04-25 18:00:20 -04:00
James Ward 254765f4aa chore(dev): support accessing the dev server from non-localhost (#887) 2026-04-25 17:34:30 -04:00
James Ward cb3e4af5a2 fix(ui): drop hard coded author/cover image upload limits (#782) 2026-04-24 21:56:58 +02:00
James Ward 0590fc8b68 fix(api): improve sort feature parity of AppBookService (#828) 2026-04-24 14:38:27 -04:00
James Ward 8765a3e63c fix(api): use configurable upload limit for author photo / book cover (#783) 2026-04-24 03:04:48 -04:00
James Ward 8aa32c00e0 chore(deps): drop deprecated npm package @types/dompurify (#827) 2026-04-24 02:02:34 -04:00
James Ward 03389d7e2f chore: drop CHANGELOG.md (#798) 2026-04-23 15:04:48 -04:00
James Ward bfca35b03c fix(api): use correct field for lastReadTime (#779) 2026-04-23 00:28:33 -04:00
James Ward 10afe3c826 ci: match release automation to desired behavioral workflow (#739) 2026-04-22 17:27:47 -04:00
James Ward 1d32e5f4f5 ci: temp disable dependabot typescript updates (#761) 2026-04-22 17:27:46 -04:00
James Ward ff73eea697 ci: split release from build (#749) 2026-04-22 17:27:46 -04:00
James Ward 1a664dda14 chore: rename springboot app folder to backend (#752) 2026-04-22 17:27:44 -04:00
James Ward 9c92f54f16 chore: drop booklore-ui symlink (#753) 2026-04-22 17:27:44 -04:00
James Ward 2dbfe821a9 ci: use env vars for input to scripts (#733) 2026-04-22 17:27:44 -04:00
James Ward f05feaea08 ci: drop publish-test-results.yml workflow (#737) 2026-04-22 17:27:43 -04:00
James Ward a03ae72378 fix(ui): use signals for duplicate merger (#732) 2026-04-22 17:27:43 -04:00
James Ward 8047f87700 fix(ui): handle RFC5987 content-disposition headers (#730) 2026-04-22 17:27:43 -04:00
James Ward 11caa916cf refactor(api): move detect deleted/new books to LibraryFileHelper (#555) 2026-04-22 17:27:42 -04:00
James Ward bd7e57891b refactor(kobo): create endpoints for non-catchall (#507) 2026-04-22 17:27:41 -04:00
James Ward 41e113294e fix(ui): parse magic shelf date values as local midnight (#489) 2026-04-22 17:27:41 -04:00
James Ward 64b7a5c75e chore(ui): drop unused favicon pngs (#675) 2026-04-22 17:27:41 -04:00
James Ward d5b497e477 chore(ui): update PWA icons for new branding (#679) 2026-04-22 17:27:40 -04:00
James Ward a32cd54163 fix(kobo): default kobo store proxy to "on" (#515) 2026-04-22 17:27:37 -04:00
James Ward ba6eb4f64c fix(kobo): proxy the /v1/auth/device endpoint (#511)
without this it's impossible to set up a kobo device since we won't have
a userkey yet
2026-04-22 17:27:35 -04:00
James Ward 27db18ae80 fix(ui): enable all OIDC permissions when admin is granted (#517)
* fix(ui): enable all OIDC permissions when admin is granted

* fix(ui): only turn on all permissions when admin is on
2026-04-22 17:27:14 -04:00
James Ward 39de8e31ac fix(ui): add missing OIDC group permissions (#487)
* fix(ui): support all permissions for oidc groups

* fix(i18n): use users permissions translations

* chore(i18n): drop unused `settingsAuth.perms` keys

* fix(i18n): use settingsUsers prefix for all permissions
2026-04-22 17:27:14 -04:00
James Ward 6541d41bf7 fix(ui): use RFC3330 format for date picker (#491) 2026-04-22 17:27:14 -04:00
James Ward 6a52a1a248 fix(bookdrop): clean bookdrop metadata before persisting (#462)
* fix(api): clean bookdrop metadata before persisting

* test: add tests for behaviors

* fix(api): add missing ratings + IDs

* fix(api): use `toBuilder()` to reduce risk of dropping fields
2026-04-22 17:27:13 -04:00
James Ward a63328b9c7 fix(ui): improve audible metadata provider detection (#456)
audible metadata also has an ASIN so it kept getting detected
as amazon metadata, then showing up incorrectly in the UI
2026-04-22 17:27:13 -04:00
James Ward 28dd303e54 fix(kobo): handle missing book when pulling kobo metadata (#473)
instead of an uncaught error, missing books should be treated as
a 404 not-found in the kobo metadata endpoint
2026-04-22 17:27:13 -04:00
James Ward d4bc8407d8 fix(api): use correct field lengths for file processors (#459) 2026-04-22 17:27:13 -04:00
James Ward 26379606df refactor(api): use spring content disposition helper for BookDownloadService (#449) 2026-04-22 17:27:11 -04:00
James Ward 6a9f4cd112 fix(api): invert kobo book type check for downloads (#432)
* fix(api): invert kobo book type check for downloads

with the previous organization of code paths this leads to an
exception being raised in the logs even though the response message
is fine

* style: drop extra newline
2026-04-22 17:27:09 -04:00
James Ward 907ad09d5b chore(api): drop unused book download proxy (#428)
the book download proxy code path should never be called.  this is
because the book download URL received as part of the kobo proxy points
at the Rakuten Kobo CDN rather than at grimmory.  further, even if this
code could download the file from the CDN (it doesn't), it would be
pointless as we don't return it.  instead of fixing the return this
drops the proxy from that code path
2026-04-22 17:27:09 -04:00
James Ward 5318e10677 fix(api): use CBX Extractor in the CBX processor (#409)
* fix(api): use CBX Extractor in the CBX processor

instead of implementing a separate cover detection algorithm in CBX
processor, this uses the CBXMetadataExtractor to fetch the cover image.
this means we now will take into account expected file names,
`ComicInfo.xml` definitions, and fall back to correctly sorted files

* style(api): drop unused imports

* fix(api): drop placeholder for cbx

this brings the CBX metadata extractor in line
with the other metadata extractors that return
null when no cover can be found

* fix: handle no cover
2026-04-22 17:27:05 -04:00
James Ward 91c19739dc feat(api): allow disable of kobo store proxy (#337)
* chore(api): fix typing for kobo sync service

* feat(api): add more paths for grimmory/kobo API

* fix(api): disable kobo features if kobo is unavailable

* feat(api): add proxy flag to kobo setting

* feat(api): adhere to kobo proxy enabled flag

* feat(ui): add forward requests toggle

* fix(ui): load setting

* style: use assertNotNull

* fix: reduce advertised routes

this cuts down the advertised routes - in particular to reduce the
number of auth-related requests we will be taking on.  we may eventually
want to do this but I want to reduce the amount of change in this PR

* fix: undo disable of kobo features

This reverts commit 1b242fa6614084b05c58ff3b24e142adb1bcf729.
2026-04-22 17:27:05 -04:00
James Ward 34042be1c9 fix(api): use ASIN instead of search if available (#369) 2026-04-22 17:27:04 -04:00
James Ward 7e796ec491 chore(api): fix typo on openapi doc for healthcheck (#380)
s/healch/health/
2026-04-22 17:27:02 -04:00
James Ward 4d2b803905 ci: apt update before installing libarchive (#375)
For whatever reason, libarchive is not in the apt cache correctly.  This works around the issue.
2026-04-22 17:27:02 -04:00
James Ward b05d76d594 chore(api): drop unused code in AmazonBookParser and AudibleParser (#368) 2026-04-22 17:27:01 -04:00
James Ward 0c87e371e3 fix(api): stop using dropped streamEntryFromArchive (#315)
the `streamEntryFromArchive` helper was replaced with
`ArchiveService.transferEntryTo` and during the merge of #113
we had a conflict that was automatically resolved incorrectly

this replaces the erroneous call with the expected
to fix the build
2026-04-22 17:26:59 -04:00
James Ward 1e0b4d0fd5 refactor(api): use NightCompress library for reading CBX (#113)
* build: drop unrar from dockerfile

* build: add libarchive to dockerfile

* ci: add libarchive for tests

* build: try adding to the gradle build

* refactor: use nightcompress for reading CBX

* test: disable tests using nightcompress when unavailable

* ci: drop showing java information

* build: add libarchive to dev compose

* build: fix libarchive link in alpine

seems alpine doesn't create libarchive.so and this seems to be the
easiest approach to fix that

* build: use expected order for allowing java to use native libs

* fix: ensure we initialize NightCompress before using it

* fix: properly find input stream

* fix: return amount of data copied

* test: add helper to turn off tests in ArchiveService

* test: rewrite CbxMetadataExtractorTest to mock archiveService

* refactor: expose `Path` to make `CbxMetadataExtractor` easier to test

* test: drop now useless test

* test: add archiveservice to rar5 integration

* test: mock out archiveservice in cbxreader test

* test: use real archiveservice in cbxconverstionintegration

* file: the cbxconversionservicetest also seems to be integration

* test: remove unused imports from cbxmetadataextractortest

* test: cbxcomicinfocompliance is also an integration

* test: cbxmetadatawriter is also integration

* chore: drop unused properties

* test: make cbxmetadataextractortest do something for covers

before it was basically useless because of fallback

* fix: invert check

* chore: better comment

* test: fix more cbxmetadataextractor tests that never worked

* test: we only ever raise ioexception

* fix: handle `null` comicinfo when parsing

* test: properly test for no files comicinfo

* build: manual link of dev docker compose

* test: if you use any matchers, all must be

* build: drop unrar from dev compose

* test: if you use any matchers, all must be

* test: always get a fresh stream

* test: drop more toFile
2026-04-22 17:26:59 -04:00
James Ward d7867bafc4 fix(api): handle kobo proxy errors during kobo sync (#217)
* fix(api): handle kobo proxy sync failures

when the kobo proxy fails, we no longer fail the sync entirely and
instead just skip the kobo request

* fix(api): always `Accept` application/json

* fix(api): handle edge case for an exception being impossibly raised

* fix(api): update try/catch to be just proxy
2026-04-22 17:26:54 -04:00
James Ward c4107a9ff8 feat(api): use redirect for kobo sync book images (#198)
* refactor(api): simplify routes for kobo thumbnails

the versioned thumbnails are not seemingly called by kobo
and are not in other implementations of kobo sync

* feat(api): use redirect for kobo book images

* chore(api): add documentation for thumbnail redirect
2026-04-22 17:26:54 -04:00
James Ward 66de45c4be refactor: drop unused standalone comicinfo.xml parser (#218) 2026-04-22 17:26:54 -04:00
James Ward 97411fa51d refactor(api): use Path for FileUtils.getBookFullPath (#209)
* refactor(api): use `Path` for FileUtils.getBookFullPath

* test: update tests for new behavior
2026-04-22 17:26:53 -04:00
James Ward 5f06ab92e9 refactor(api): switch to Spring logging filter (#195)
* refactor(api): switch to Spring logging filter

instead of making our own logging filter via a OncePerRequest,
we can instead use the more fully featured CommonsRequestLoggingFilter
with a bit of customization sprinkled on to ignore websocket requests
and health check requests

* fix(api): check sensitive headers & move up path

* fix: invert path check
2026-04-22 17:26:53 -04:00
James Ward 5d84097f28 fix(api): check legacy tools path for binaries (#146)
the kepubify / ffprobe binaries may be on disk but they're
in the "data" directory under `tools` rather than under the
current directory
2026-04-22 17:26:33 -04:00
James Ward 1c15629a10 refactor: pull kepubify & ffprobe during build (#50)
* build: pull kepubify & ffprobe during build

* refactor: use local ffprobe / kepubify
2026-03-20 17:20:18 -05:00
James Ward 4d82cb7188 fix: drop telemetry from app (#52) 2026-03-20 17:20:18 -05:00
James Ward 62be6b152c chore(ui): drop financial support dialog (#21)
* chore(ui): drop support animation preferences

* chore(ui): drop unused github support dialog

* chore(ui): drop github support dialog
2026-03-20 17:20:18 -05:00
James Ward cc3d79407c fix(cron): proper return type for isTelemetryEnabled() (#3315) 2026-03-13 19:11:18 -06:00
James Ward cac557b74e fix(cron): prevent telemetry ping when telemetry is disabled (#3313)
this updates the cron to avoid running the telemetry ping when
telemetry is disabled so that personally identifiable information
is not sent off to other parties (an IP address, an installation ID)
2026-03-12 20:43:28 -06:00
James Ward ffae8dfce3 fix(ui): use local asset for page background (#2445)
this avoids a remote call to github's raw download
so the application is less reliant on public internet
access.  further this prevents unknown failures
when the bg.png is removed or changed in the external repo
2026-01-23 20:56:05 -07:00