Commit Graph
5 Commits
Author SHA1 Message Date
adminandClaude Opus 4.8 d05d1fe17d feat: add DjVu (.djvu/.djv) support via DejaView
Pure-JS, MIT-licensed DjVu decoder (DejaView) running in a Web Worker.
Pages render lazily to canvas (window around the current page plus an
IntersectionObserver for scroll), fit-to-height by default, with sidebar
thumbnails.

- New DjVuRenderer (src/renderers/djvu-renderer.js)
- Register djvu/djv in EXT_MAP + renderers (src/main.js)
- DJVU dropzone pill, accept list, Powered-by footer link (index.html)
- .djvu-page / badge / tag styles (src/style.css)
- dejaview submodule (pinned 5a4ef8a), README format table + credits

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 14:34:54 +02:00
adminandClaude Sonnet 4.6 fe2548190d feat: add EPUB / MOBI / AZW3 support via foliate-js
- Add foliate-js (MIT) as a git submodule, pinned at 78914ae
- Add EPUBRenderer wrapping foliate's <foliate-view> paginator: drives the
  existing toolbar (prev/next/jump via relocate's location.current/total) and
  maps zoom to font-size reflow; reflowable books use content-based locations
- Register epub/mobi/azw3/azw/kf8 in EXT_MAP; thread file name through for
  foliate's format hinting; add format badge + dropzone tags
- Stub foliate's pdf.js (we use our own PDFRenderer) via a Vite resolveId
  plugin — it bundles pdf.mjs through a `new URL` glob that breaks vite build
- README + index.html: document EPUB/MOBI and credit foliate-js

Verified: vite build succeeds (modules code-split); EPUB renders, paginates,
navigates and zooms in the dev preview.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 09:01:41 +02:00
adminandClaude Sonnet 4.6 45aa3b4426 feat: add Markdown (.md) support via marked
- Add markedjs/marked as a submodule
- Install marked npm package for runtime rendering
- Add MDRenderer that parses .md/.markdown files with marked and renders into doc-page
- Register md/markdown extensions in EXT_MAP

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 08:24:11 +02:00
adminandClaude Sonnet 4.6 3becdd8db3 fix: align page number input vertically with adjacent text, update submodules
- Set input height to 21px and offset top by 2px to align '1' visually with '/1'
- Update JSDoc submodule (build scripts, doc/text conversion improvements)
- Update pdf.js submodule (annotation layer, presentation mode fixes)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 08:17:08 +02:00
adminandClaude Sonnet 4.6 1fc48723e3 feat: universal document viewer with PDF.js-like UI
Supports PDF, ODT/ODS/ODP (WebODF), RTF (rtf.js), and DOCX (mammoth)
in a PDF.js-inspired dark-theme viewer with print support.

Submodules:
- submodules/pdf.js  → mozilla/pdf.js
- submodules/JSDoc   → Alpaq92/JSDoc
- submodules/docx    → dolanmiu/docx
- submodules/WebODF  → webodf/WebODF
- submodules/rtf.js  → tbluemel/rtf.js

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 17:18:22 +02:00