Skip to content

Commit

Permalink
🎨 微调设置
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Jan 24, 2024
1 parent 5249577 commit af7dd45
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/components/setting-gui.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
},
],
dailynote: [
{
name: "AutoOpenAfterSync",
type: "checkbox"
},
{
name: "DefaultNotebook",
type: "input",
Expand All @@ -60,6 +56,10 @@
{
name: "SetPastDailyNoteAttr",
type: "button"
},
{
name: "AutoOpenAfterSync",
type: "checkbox"
}
],
reservation: [
Expand Down
7 changes: 4 additions & 3 deletions src/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"text": "Open Today's Diary automatically when the plugin is loaded"
},
"AutoOpenAfterSync": {
"title": "Auto create DN only after synchronization <span style=\"font-weight: bold; color: color: var(--b3-theme-primary)\">🏷️Experimental Features</span>",
"text": "To solve the document conflict problem caused by synchronization + automatic opening of DN, try opening DN automatically after synchronization. This feature is <b>experimental</b> and lacks sufficient testing, so please use it at your discretion."
"title": "Auto create DN only after synchronization <span style=\"font-weight: bold; color: color: var(--b3-theme-primary)\">🧪Experimental Features</span>",
"text": "To solve the document conflict problem caused by synchronization + automatic opening of DN, try opening DN automatically after synchronization.<br/>This feature is <b>experimental</b> and <del>lacks sufficient testing, so please use it at your discretion.</del><br/><b>Practical tests shown it not very useful, not recommended </b>"
},
"DefaultNotebook": {
"title": "Default Notebook ID",
Expand Down Expand Up @@ -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 <span style=\"color: var(--b3-theme-primary)\">SiYuan versions prior to 2.11.1</span>.<br/>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!<br/> Note: Clicking this button once is enough."
"text": "✨ Adding the custom-dailynote attribute to past daily notes for compatibility with <span style=\"color: var(--b3-theme-primary)\">SiYuan versions prior to 2.11.1</span>.<br/>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!<br/> Note: Clicking this button once is enough.",
"button": "GO!"
}
},
"SettingGroups": {
Expand Down
4 changes: 2 additions & 2 deletions src/i18n/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"text": "插件启动后自动打开今日的 Daily Note"
},
"AutoOpenAfterSync": {
"title": "同步后再创建日记 <span style=\"font-weight: bold; color: var(--b3-theme-primary)\">🏷️实验性功能</span>",
"text": "为了解决同步+自动打开日记造成的文件冲突问题,尝试在同步之后在自动打开日记。<br/>本功能为<b>实验性功能</b>,缺少足够的测试,请斟酌使用。"
"title": "同步后再创建日记 <span style=\"font-weight: bold; color: var(--b3-theme-primary)\">🧪实验性功能</span>",
"text": "为了解决同步+自动打开日记造成的文件冲突问题,尝试在同步之后在自动打开日记。<br/>本功能为<b>实验性功能</b>,<del>缺少足够的测试,请斟酌使用</del> <br/><b>实际测试作用不大,不推荐</b>"
},
"DefaultNotebook": {
"title": "设置默认笔记本 ID",
Expand Down
12 changes: 6 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit af7dd45

Please sign in to comment.