feat: add share links, folder zip download, and Delen sidebar button
Tim Falken authored 6 months ago
- Add share_tokens table to DB schema (expires_at indexed)
- New server/routes/share.js: POST /api/share/create, GET /api/share/info/:token,
GET /api/share/preview/:token, GET /api/share/download/:token
- Zip cache in zip-cache/ with 1-day max age and automatic pruning (buildZip, pruneZipCache)
- Authenticated GET /api/files/download-zip for folder zip download
- Public share page at /share/:token (public/share.html) with live HH:MM:SS timer,
inline file preview, and download button
- Sidebar: Delen button on all items, Download als zip button on folders
- Share modal: read-only URL field with copy button and OK dismiss
- Tests: tests/share.routes.test.js (22 tests), download-zip tests in files.routes.test.js
- Updated technical-reference.md and tests.md