feat(site-builder): "Download site (.zip)" command
Registers site.download-zip (WHP mode only; shows in the ⋯ menu and the palette) via ExportCommand, mounted in CanvasOverlays. useSiteExport POSTs ?action=export_zip with the CSRF header: a zip answer is saved through a Blob + anchor click, anything else (JSON error, older backend, network failure, a stream cut short) becomes an error notice. Refs #42 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d39e1ecc31
commit
97469dbabf
4 files changed
+277
No files matched your search
@@ -6,6 +6,7 @@ import { RichTextToolbar } from './RichTextToolbar';
|
||||
import { CommandPalette } from '../panels/command-palette/CommandPalette';
|
||||
import { HistoryHost } from '../panels/history/HistoryModal';
|
||||
import { SpacingHandles } from './SpacingHandles';
|
||||
import { ExportCommand } from '../panels/topbar/ExportCommand';
|
||||
|
||||
/**
|
||||
* Single mount point for editor-wide overlays rendered next to the shell.
|
||||
@@ -21,5 +22,6 @@ export const CanvasOverlays: React.FC = () => (
|
||||
<CommandPalette />
|
||||
<HistoryHost />
|
||||
<SpacingHandles />
|
||||
<ExportCommand />
|
||||
</>
|
||||
);
|
||||
Reference in new issue
Block a user