fix(web): minor bug fixes (#9696)

Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
Oleg
2025-01-27 06:21:41 +01:00
committed by GitHub
parent 73b4437081
commit e3fac97b9b
6 changed files with 47 additions and 6 deletions

View File

@@ -30,11 +30,6 @@ export const BRACKET_PAIRS: BracketPair[] = [
left: '"',
right: '"',
},
{
name: 'angle bracket',
left: '<',
right: '>',
},
{
name: 'fullwidth single quote',
left: '',

View File

@@ -26,7 +26,7 @@ async function exportDocs(collection: Workspace, docs: Store[]) {
snapshots
.filter((snapshot): snapshot is DocSnapshot => !!snapshot)
.map(async snapshot => {
const snapshotName = `${snapshot.meta.id}.snapshot.json`;
const snapshotName = `${snapshot.meta.title || 'untitled'}.snapshot.json`;
await zip.file(snapshotName, JSON.stringify(snapshot, null, 2));
})
);