From 820e1f943db826d9601bb7b7debcb4eb6c97d2b9 Mon Sep 17 00:00:00 2001 From: Jaybe Date: Sat, 13 Dec 2025 00:29:23 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/editor/page.tsx | 23 +- src/features/editor/state/editorStore.ts | 327 +++++++++++++++++- src/features/i18n/messages/editorTemplates.ts | 3 +- tests/api/export.spec.ts | 3 +- tests/e2e/editor.spec.ts | 16 +- tests/e2e/form-submission-flow.spec.ts | 4 +- tests/e2e/preview.spec.ts | 36 +- tests/e2e/template-i18n.spec.ts | 117 +++++++ 8 files changed, 496 insertions(+), 33 deletions(-) create mode 100644 tests/e2e/template-i18n.spec.ts diff --git a/src/app/editor/page.tsx b/src/app/editor/page.tsx index 52b55db..5c4428d 100644 --- a/src/app/editor/page.tsx +++ b/src/app/editor/page.tsx @@ -438,6 +438,9 @@ function EditorPageInner() { }; const handleClearCanvas = () => { + const ok = window.confirm(m.confirmClearCanvas); + if (!ok) return; + replaceBlocks([]); setExportJson(""); setImportJson(""); @@ -1173,6 +1176,19 @@ function EditorPageInner() { {m.menuJsonImportExport} + -