From af7dd454c584a29a25978694b2f3697ffc924845 Mon Sep 17 00:00:00 2001 From: frostime Date: Wed, 24 Jan 2024 12:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E5=BE=AE=E8=B0=83=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/setting-gui.svelte | 8 ++++---- src/i18n/en_US.json | 7 ++++--- src/i18n/zh_CN.json | 4 ++-- src/index.ts | 12 ++++++------ 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/components/setting-gui.svelte b/src/components/setting-gui.svelte index b934395..f130508 100644 --- a/src/components/setting-gui.svelte +++ b/src/components/setting-gui.svelte @@ -41,10 +41,6 @@ }, ], dailynote: [ - { - name: "AutoOpenAfterSync", - type: "checkbox" - }, { name: "DefaultNotebook", type: "input", @@ -60,6 +56,10 @@ { name: "SetPastDailyNoteAttr", type: "button" + }, + { + name: "AutoOpenAfterSync", + type: "checkbox" } ], reservation: [ diff --git a/src/i18n/en_US.json b/src/i18n/en_US.json index ff4272f..54ba547 100644 --- a/src/i18n/en_US.json +++ b/src/i18n/en_US.json @@ -8,8 +8,8 @@ "text": "Open Today's Diary automatically when the plugin is loaded" }, "AutoOpenAfterSync": { - "title": "Auto create DN only after synchronization 🏷️Experimental Features", - "text": "To solve the document conflict problem caused by synchronization + automatic opening of DN, try opening DN automatically after synchronization. This feature is experimental and lacks sufficient testing, so please use it at your discretion." + "title": "Auto create DN only after synchronization 🧪Experimental Features", + "text": "To solve the document conflict problem caused by synchronization + automatic opening of DN, try opening DN automatically after synchronization.
This feature is experimental and lacks sufficient testing, so please use it at your discretion.
Practical tests shown it not very useful, not recommended " }, "DefaultNotebook": { "title": "Default Notebook ID", @@ -85,7 +85,8 @@ }, "SetPastDailyNoteAttr": { "title": "Add document attribute to past daily notes", - "text": "✨ Adding the custom-dailynote attribute to past daily notes for compatibility with SiYuan versions prior to 2.11.1.
If you don't understand what this button is for, it is recommended that you press it, and it won't bring you any extra trouble!
Note: Clicking this button once is enough." + "text": "✨ Adding the custom-dailynote attribute to past daily notes for compatibility with SiYuan versions prior to 2.11.1.
If you don't understand what this button is for, it is recommended that you press it, and it won't bring you any extra trouble!
Note: Clicking this button once is enough.", + "button": "GO!" } }, "SettingGroups": { diff --git a/src/i18n/zh_CN.json b/src/i18n/zh_CN.json index bcb818f..a90f947 100644 --- a/src/i18n/zh_CN.json +++ b/src/i18n/zh_CN.json @@ -8,8 +8,8 @@ "text": "插件启动后自动打开今日的 Daily Note" }, "AutoOpenAfterSync": { - "title": "同步后再创建日记 🏷️实验性功能", - "text": "为了解决同步+自动打开日记造成的文件冲突问题,尝试在同步之后在自动打开日记。
本功能为实验性功能,缺少足够的测试,请斟酌使用。" + "title": "同步后再创建日记 🧪实验性功能", + "text": "为了解决同步+自动打开日记造成的文件冲突问题,尝试在同步之后在自动打开日记。
本功能为实验性功能缺少足够的测试,请斟酌使用
实际测试作用不大,不推荐。" }, "DefaultNotebook": { "title": "设置默认笔记本 ID", diff --git a/src/index.ts b/src/index.ts index e0005af..6e821f0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -76,12 +76,12 @@ export default class DailyNoteTodayPlugin extends Plugin { let end = performance.now(); debug(`启动耗时: ${end - start} ms`); - let ans = await changelog(this, 'i18n/CHANGELOG-${lang}.md'); - if (ans?.Dialog) { - let dialog: TypoDialog = ans.Dialog; - dialog.setSize({ width: '50rem', height: '42rem' }); - dialog.setFont('1.2rem'); - } + // let ans = await changelog(this, 'i18n/CHANGELOG-${lang}.md'); + // if (ans?.Dialog) { + // let dialog: TypoDialog = ans.Dialog; + // dialog.setSize({ width: '50rem', height: '42rem' }); + // dialog.setFont('1.2rem'); + // } } private initPluginUI() {