E-books: a section for every poet (tabs, covers), right-to-left PDF reader, page bookmarks, book details #70
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/ebooks-section"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Owner requests (follow-up to #67).
Section
/<poet>/ebookshas tabs پی ڈی ایف (PDF), ای پب (ePUB) and یونیکوڈ متن (Unicode), plus آرکائیو (archive.org) when there are such books, and a grid of cover thumbnails.Covers (the server has no PDF tools, so the browser makes them)
POST /api/mod/ebooks/:id/cover(JPEG, PNG or WebP, up to 5 MB, e-books permission) andGET /api/ebook/:id/cover.PDF reader, right to left (pdf.js)
Page bookmarks
page). The saved pages show as chips in the reader and as کتابوں کے محفوظ صفحات in نشانات; each opens at that page (?page=).Book details (upload and review, through the pipeline)
Also
page. It was being re-added without it.Tested
npm test: 42 pass. The e-books test now also covers:Local setup: apply
db/schema.sql; runnpm installin web for pdfjs-dist.🤖 Generated with Claude Code