mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-11-03 17:48:00 +00:00
SAN-157 removed the html2pdf client library. The PDF export code added in the original PR commit referenced the deleted library and would fail at runtime. Replace the html2pdf-based _downloadSelectedEmailPdf with a browser Print / save PDF workflow using a sandboxed iframe and window.print(), matching the established pattern in document.js and compare/index.js. Changes: - Replace _loadEmailHtml2Pdf and _downloadSelectedEmailPdf with _printSelectedEmails using a sandboxed iframe + contentWindow.print() - Update menu label from 'PDF' to 'Print / save PDF' - Add 512 MiB total size cap to /messages-download-bulk to prevent unbounded memory growth when exporting many large messages - Update test assertions to verify the browser print pattern and confirm html2pdf is not referenced - Add regression tests for size cap, selection count validation, non-numeric UID rejection, and partial batch failure accounting |
||
|---|---|---|
| .. | ||
| css | ||
| fonts | ||
| icons | ||
| js | ||
| lib | ||
| test-fixtures | ||
| app.js | ||
| icon.ico | ||
| index.html | ||
| login.html | ||
| manifest.json | ||
| modal-control-variants.html | ||
| research-ascii-variants.html | ||
| research-ascii-variants.js | ||
| sw.js | ||
| wave-variants.html | ||
| whirlpool-variants.html | ||