feat(library): backup to and restore from a zip file (#3571)

This commit is contained in:
Huang Xin
2026-03-21 01:27:52 +08:00
committed by GitHub
parent e8f70b896e
commit 91bc4ddec7
51 changed files with 1580 additions and 138 deletions
@@ -881,7 +881,9 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => {
}, 100);
const filename = `${makeSafeFilename(book.title)}.md`;
const saved = await appService?.saveFile(filename, markdownContent, 'text/markdown');
const saved = await appService?.saveFile(filename, markdownContent, {
mimeType: 'text/markdown',
});
eventDispatcher.dispatch('toast', {
type: 'info',
message: saved ? _('Exported successfully') : _('Copied to clipboard'),