From 5c126d07036caeafe0bcf31a4ec7fd24480f066d Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 7 Nov 2024 22:46:13 +0900 Subject: [PATCH] wip --- locales/index.d.ts | 4 + locales/ja-JP.yml | 1 + .../page-editor/els/page-editor.el.image.vue | 8 +- .../page-editor/els/page-editor.el.note.vue | 9 +- .../els/page-editor.el.section.vue | 8 +- .../page-editor/els/page-editor.el.text.vue | 72 ++++++++++-- .../pages/page-editor/page-editor.blocks.vue | 110 +++++++++++++++++- .../page-editor/page-editor.container.vue | 81 ++++++++++--- .../src/pages/page-editor/page-editor.vue | 59 ++++++++-- packages/frontend/src/types/page.ts | 18 +++ 10 files changed, 325 insertions(+), 45 deletions(-) create mode 100644 packages/frontend/src/types/page.ts diff --git a/locales/index.d.ts b/locales/index.d.ts index e80e40bcea..fa9ede1755 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -9284,6 +9284,10 @@ export interface Locale extends ILocale { * ここに移動 */ "moveToHere": string; + /** + * このブロックを削除しますか? + */ + "blockDeleteAreYouSure": string; "blocks": { /** * テキスト diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 3a14d73c0e..9c97d99290 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2448,6 +2448,7 @@ _pages: specialBlocks: "特殊" inputTitleHere: "タイトルを入力" moveToHere: "ここに移動" + blockDeleteAreYouSure: "このブロックを削除しますか?" blocks: text: "テキスト" textarea: "テキストエリア" diff --git a/packages/frontend/src/pages/page-editor/els/page-editor.el.image.vue b/packages/frontend/src/pages/page-editor/els/page-editor.el.image.vue index a17a532edd..7492ff4986 100644 --- a/packages/frontend/src/pages/page-editor/els/page-editor.el.image.vue +++ b/packages/frontend/src/pages/page-editor/els/page-editor.el.image.vue @@ -5,7 +5,12 @@ SPDX-License-Identifier: AGPL-3.0-only