Add images as a record field (drop, paste, import)

Images are downscaled, re-encoded and stored inside the encrypted document.

Closes #10

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 16:01:24 -05:00
parent 7a81637819
commit f5f05a3e26
11 changed files with 357 additions and 7 deletions

View File

@@ -18,6 +18,8 @@ The passphrase is prompted for (hidden) or read from `FW_PASSPHRASE`.
- `src/crypto.js` passphrase encryption (PBKDF2 -> AES-256-GCM)
- `src/model.js` document schema and validation (sections, records, and the
optional print `header`); `src/ops.js` edit helpers
- `src/images.js` image-field helpers and the import pipeline (PNG/JPEG only,
downscaled and re-encoded in the browser)
- `src/print.js` print helpers (secret masking, header layout)
- `src/app.js` + `src/style.css` the UI, including the Print header panel
- `src/template.js` the HTML skeleton shared by `build.js` and in-page Save