Skip to content

Commit

Permalink
📝 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Apr 19, 2024
1 parent 644b8a7 commit bc3133e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2024-04-20] v1.5.2: 自动处理重复日记,优化交互

- 稍微优化了一下自动处理重复日记时候的交互
- 消息提醒
- 自动打开主日记


## [2024-04-16] v1.5.1: 自动处理重复日记

- 增加了自动处理重复日记的方案,开启之后将不会再弹出重复日记处理的对话框,而是自动按照预先选择的方案处理重复的日记
Expand Down
16 changes: 4 additions & 12 deletions src/i18n/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
## V1.5.1 自动处理重复日记 | Auto-handle duplicate daily notes
## [2024-04-20] v1.5.2: 自动处理重复日记,优化交互

- 增加了自动处理重复日记的方案,开启之后将不会再弹出重复日记处理的对话框,而是自动按照预先选择的方案处理重复的日记
- 请在插件设置的「日记-自动处理重复日记方案」中进行配置

> ****: 插件可能会在后续某次更新中<span style="color: var(--b3-theme-primary); font-weight: bold;">移除 「同步后再创建日记」 的功能(因为实测下来发现没什么用)</span>,如果你有什么建议或者想要保留这个功能,请在 issue 中提出。
---

- Added an auto-handle duplicates' method, which, when enabled, will no longer prompt a dialog for handling duplicate notes. Instead, it will automatically process duplicate notes according to the pre-selected method.
- Please configure it in the "Diary - Auto-handle duplicates' method" section inside the plugin settings.

> **Note**: The plugin may <span style="color: var(--b3-theme-primary); font-weight: bold;">remove the "Auto create DN only after synchronization" feature in the future update (because it is found to be useless in practice)</span>. If you have any suggestions or want to keep this feature, please raise an issue.
- 稍微优化了一下自动处理重复日记时候的交互
- 消息提醒
- 自动打开主日记
14 changes: 7 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import notebooks from './global-notebooks';

import { eventBus } from './event-bus';

import { changelog } from 'sy-plugin-changelog';
// import { changelog } from 'sy-plugin-changelog';

import "./index.scss";

Expand Down Expand Up @@ -71,12 +71,12 @@ export default class DailyNoteTodayPlugin extends Plugin {
let end = performance.now();
console.debug(`启动耗时: ${end - start} ms`);

let ans = await changelog(this, 'i18n/CHANGELOG.md');
if (ans?.Dialog) {
let dialog = ans.Dialog;
dialog.setSize({ width: '50rem', height: '42rem' });
dialog.setFont('1.2rem');
}
// let ans = await changelog(this, 'i18n/CHANGELOG.md');
// if (ans?.Dialog) {
// let dialog = ans.Dialog;
// dialog.setSize({ width: '50rem', height: '42rem' });
// dialog.setFont('1.2rem');
// }
}

private initPluginUI() {
Expand Down

0 comments on commit bc3133e

Please sign in to comment.