Skip to content

Commit

Permalink
⬆️ ci: 更新 changelog 依赖, 并更新了更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Dec 5, 2023
1 parent 2fc4184 commit 0beee52
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"sass": "^1.62.1",
"siyuan": "^0.8.9",
"svelte": "^3.57.0",
"sy-plugin-changelog": "^0.0.6",
"sy-plugin-changelog": "^0.0.7",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"vite": "^4.3.7",
Expand Down
14 changes: 8 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/i18n/CHANGELOG-en_US.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The plugin has made adjustments primarily for this feature:
- Open the plugin settings - Daily Notes
- Click the "Add document attribute to past Daily Notes" button

![](https://cdn.jsdelivr.net/gh/frostime/siyuan-dailynote-today/asset/OldDNAttr.png)
<img src="https://gitlab.com/ypz.open/siyuan/siyuan-dailynote-today/-/raw/main/asset/OldDNAttr.png" alt="">


Afterwards, you can query daily notes using SQL statements similar to the following example. The statement `custom-dailynote-202312%` will match all daily notes from December 2023:
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/CHANGELOG-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- 打开插件设置-日记
- 点击「为过去的 Daily Note 补充文档属性」按钮

![](https://cdn.jsdelivr.net/gh/frostime/siyuan-dailynote-today/asset/OldDNAttr.png)
<img src="https://gitlab.com/ypz.open/siyuan/siyuan-dailynote-today/-/raw/main/asset/OldDNAttr.png" alt="">


此后, 你就可以通过类似的 SQL 语句查询 daily note 了, 如下 `custom-dailynote-202312%` 会匹配 2023 年 12 月份的所有日记
Expand Down
7 changes: 4 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { eventBus } from './event-bus';
import { changelog } from 'sy-plugin-changelog';

import "./index.scss";
import type { TypoDialog } from 'sy-plugin-changelog/dist/utils';


let OnWsMainEvent: EventListener;
Expand Down Expand Up @@ -86,9 +87,9 @@ export default class DailyNoteTodayPlugin extends Plugin {

let ans = await changelog(this, 'i18n/CHANGELOG-${lang}.md');
if (ans?.Dialog) {
let ele: HTMLDivElement = ans.Dialog.element.querySelector('.b3-dialog__container');
ele.style.height = '25rem';
ele.style.width = '40rem';
let dialog: TypoDialog = ans.Dialog;
dialog.setSize({ width: '50rem', height: '42rem' });
dialog.setFont('1.2rem');
}
}

Expand Down

0 comments on commit 0beee52

Please sign in to comment.