v1.0.7-beta.004 - feat(reader): add offline caching, bookmarks, auto-crop, and fix pathing
This commit introduces several major enhancements to the reading experience and resolves a critical path-resolution bug for Windows environments.
Features:
- PWA Offline Reading: Implemented IndexedDB caching using localforage to allow users to download full issues for offline reading. Added manifest.json to support PWA installation.
- Bookmarks & Highlights: Added a bookmarking system to save specific pages. Includes a new UI ribbon in the reader and a supporting backend API route (/api/progress/bookmark).
- Auto-Margin Cropping: Integrated sharp().trim() into the image API pipeline to dynamically crop solid white/black borders from comic pages, optimizing screen space on mobile. Added a toggle in Reader Settings.
Bug Fixes:
- fix(api): Resolved a 403 Unauthorized path access error on Windows by stripping path.sep and normalizing all library roots and target paths to use forward slashes (/) prior to validation.