3 Commits
Author SHA1 Message Date
adminandClaude Opus 4.8 fddc552d49 chore(deps): update to latest — pdf.js 6, rtf.js 3, vite 8, dejaview
- pdfjs-dist 4.10 -> 6.0.227. v6 removed PDFDocumentProxy.destroy(); destroy the
  loading task instead (load / extractText / destroy). render() API is unchanged.
- rtf.js 2.3 -> 3.0.9 (npm) and refreshed public/rtfjs/*.bundle.min.js — the
  bundles the renderer loads at runtime (window.RTFJS), not the npm import.
- vite 6.4 -> 8.1 (now Rolldown-based); build config unchanged.
- dejaview pinned to the latest commit (worker open/render/text protocol intact).
- foliate-js, xlsx (SheetJS 0.20.3) and every other dep were already at latest.

Verified: app + embed build; PDF compare (pdf.js 6 text layer), RTF render
(rtf.js 3 bundles), and markdown compare all work. PDF/DjVu *canvas* rendering
can't be exercised in the headless preview — confirm document viewing in a real
browser.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 23:54:13 +02:00
adminandClaude Sonnet 4.6 013ebe15e9 feat: add DOC/RTF renderers, GitHub Pages CI/CD, README and MIT license
- Replace mammoth.js .doc handler with JSDoc (Alpaq92/JSDoc submodule)
- Fix RTF.js rendering via jQuery append instead of appendChild
- Use import.meta.env.BASE_URL for asset paths to support /PreviewJS/ base
- Add GitHub Actions: deploy.yml (push-triggered Pages deploy) and
  update-submodules.yml (monthly cron with release creation)
- Add .gitignore, README.md with Credits, MIT LICENSE

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-20 18:27:23 +02:00
adminandClaude Sonnet 4.6 c31827b623 fix: load rtf.js bundles as static scripts instead of broken npm import
The rtf.js npm package index.js uses ESM imports without .js extensions
(broken on Node ESM) and its UMD bundles require jQuery — not importable
via Vite's module pipeline.

Fix: copy EMFJS/WMFJS/RTFJS bundle min files to public/rtfjs/, load them
sequentially via dynamic <script> injection (jQuery from CDN, then the
three bundles in dependency order). Scripts are cached so they only load
once per session. Removes rtf.js from Vite optimizeDeps.

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