Commit Graph

3 Commits

Author SHA1 Message Date
wuzf
c0b8369a81 feat(backup): add unified export endpoint with format preference
Add a dedicated /api/secrets/export route (api/secrets/export.js)
that streams the unified backup format (JSON/CSV/HTML/TXT) with size
and auth guards. Settings persist the preferred export format per
user; backup runs pick it up so generated files match the chosen
schema. The UI settings label/toast reads "导出偏好格式" to clarify
the preference applies to batch export and backup export. The
Service Worker passes through offline responses, utils/backup-format.js
is slimmed down after route consolidation, and unused createdAt is
dropped from the unified format and validation.
2026-04-12 01:36:28 +08:00
wuzf
4bcb933640 feat(import): support more JSON import formats 2026-03-29 23:54:19 +08:00
wuzf
51a8b3d79a test(import): cover generated FreeOTP runtime 2026-03-29 22:22:56 +08:00