From 328aef53085697861c542ff3b9a7dbd166156c47 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Mon, 7 Apr 2025 20:19:01 +0800 Subject: [PATCH] =?UTF-8?q?Demo:=E6=94=AF=E6=8C=81=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=92=8C=E5=88=A0=E9=99=A4=E8=8A=82=E7=82=B9=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/lang/en_us.js | 17 +++++++- web/src/lang/zh_cn.js | 14 ++++++- web/src/lang/zh_tw.js | 14 ++++++- web/src/pages/Edit/components/Contextmenu.vue | 15 ++++++- .../pages/Edit/components/LinkNodeSelect.vue | 42 ++++++++++++++----- web/src/pages/Edit/components/Structure.vue | 17 +++++++- 6 files changed, 102 insertions(+), 17 deletions(-) diff --git a/web/src/lang/en_us.js b/web/src/lang/en_us.js index 27aaca04..e303ae82 100644 --- a/web/src/lang/en_us.js +++ b/web/src/lang/en_us.js @@ -139,7 +139,10 @@ export default { unExpandNodeChild: 'Un expand all sub nodes', addToDo: 'Add toDo', removeToDo: 'Remove toDo', - aiCreate: 'AI Continuation' + aiCreate: 'AI Continuation', + modifyNodeLink: 'Modify node link', + linkToNode: 'Link to node', + removeNodeLink: 'Remove node link' }, count: { words: 'Words', @@ -172,7 +175,8 @@ export default { addFooterText: 'Add text at the footer', desc: 'Desc', options: 'Options', - isFitBg: 'Whether to display the complete background image (effective when a background image is used)', + isFitBg: + 'Whether to display the complete background image (effective when a background image is used)', format: 'Format' }, fullscreen: { @@ -511,5 +515,14 @@ export default { }, note: { title: 'Note' + }, + nodeLink: { + linkToNode: 'Link to node', + addReturn: 'Weather to add a backlink', + tip1: 'Please select the node to link to', + tip2: 'Cannot link to oneself', + tip3: 'Link successful', + tip4: 'Delete successful', + tip5: 'The link node does not exist. Weather to delete the link?' } } diff --git a/web/src/lang/zh_cn.js b/web/src/lang/zh_cn.js index 7c6a8fa0..5892ef54 100644 --- a/web/src/lang/zh_cn.js +++ b/web/src/lang/zh_cn.js @@ -135,7 +135,10 @@ export default { unExpandNodeChild: '收起所有下级节点', addToDo: '添加待办', removeToDo: '删除待办', - aiCreate: 'AI续写' + aiCreate: 'AI续写', + modifyNodeLink: '修改节点链接', + linkToNode: '链接到指定节点', + removeNodeLink: '删除节点链接' }, count: { words: '字数', @@ -493,5 +496,14 @@ export default { }, note: { title: '备注' + }, + nodeLink: { + linkToNode: '链接到指定节点', + addReturn: '是否添加反向链接', + tip1: '请选择要链接到的节点', + tip2: '不能链接自己', + tip3: '链接成功', + tip4: '删除成功', + tip5: '链接节点不存在,是否删除该链接?' } } diff --git a/web/src/lang/zh_tw.js b/web/src/lang/zh_tw.js index 29be5a15..7e316615 100644 --- a/web/src/lang/zh_tw.js +++ b/web/src/lang/zh_tw.js @@ -136,7 +136,10 @@ export default { unExpandNodeChild: '收起所有下級節點', addToDo: '添加待辦', removeToDo: '刪除待辦', - aiCreate: 'AI續寫' + aiCreate: 'AI續寫', + modifyNodeLink: '修改節點鏈接', + linkToNode: '鏈接到指定節點', + removeNodeLink: '刪除節點鏈接' }, count: { words: '字數', @@ -493,5 +496,14 @@ export default { }, note: { title: '備註' + }, + nodeLink: { + linkToNode: '鏈接到指定節點', + addReturn: '是否添加反向鏈接', + tip1: '請選擇要鏈接到的節點', + tip2: '不能鏈接自己', + tip3: '鏈接成功', + tip4: '刪除成功', + tip5: '鏈接節點不存在,是否刪除該鏈接?' } } diff --git a/web/src/pages/Edit/components/Contextmenu.vue b/web/src/pages/Edit/components/Contextmenu.vue index 484fb6a1..bab20dd7 100644 --- a/web/src/pages/Edit/components/Contextmenu.vue +++ b/web/src/pages/Edit/components/Contextmenu.vue @@ -135,7 +135,14 @@ {{ $t('contextmenu.removeNote') }}