- Add ComicRenderer: renders archive page images as a vertical stack with scroll-synced page tracking and thumbnails, matching the PDF renderer model - CBZ unpacked via JSZip (existing dep); CBR/CBT via libarchive.js, whose RAR decoder is libarchive's own BSD implementation — no UnRAR-licensed code - Vendor libarchive.js worker + wasm under public/libarchive/ (served statically) - Register cbz/cbr/cbt in EXT_MAP; add format badge + dropzone tags - Also backfill the Markdown (.md) dropzone tag and file-input accept entry - README: document comic formats and credit libarchive.js Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
25 lines
623 B
JSON
25 lines
623 B
JSON
{
|
|
"name": "preview-js",
|
|
"version": "1.0.0",
|
|
"description": "Universal document viewer: PDF, ODF, RTF, DOCX — powered by pdf.js, WebODF, rtf.js and docx submodules",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"submodules:init": "git submodule update --init --recursive",
|
|
"docs": "jsdoc src -r -d docs"
|
|
},
|
|
"dependencies": {
|
|
"jszip": "^3.10.1",
|
|
"libarchive.js": "^2.0.2",
|
|
"mammoth": "^1.8.0",
|
|
"marked": "^18.0.5",
|
|
"pdfjs-dist": "^4.9.155",
|
|
"rtf.js": "^2.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"vite": "^6.0.7"
|
|
}
|
|
}
|