Skip to content

Commit

Permalink
✨ feat: 和=适应思源 v2.11.1 的更新
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Dec 4, 2023
1 parent 78d3d47 commit b68f1ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"url": "https://github.com/frostime/siyuan-dailynote-today",
"version": "1.3.0",
"minAppVersion": "2.11.0",
"minAppVersion": "2.11.1",
"description": {
"zh_CN": "自动创建日记 + 快速打开日记 + 日程 TODO 管理 + 移动块功能",
"en_US": "Automatically open today's notes + Quickly open today's notes + TODO mangagement for today + Move blocks"
Expand Down
3 changes: 2 additions & 1 deletion src/func/dailynote/dn-attr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author : frostime
* @Date : 2023-12-03 11:38:29
* @FilePath : /src/func/dailynote/dn-attr.ts
* @LastEditTime : 2023-12-03 13:29:27
* @LastEditTime : 2023-12-04 18:03:28
* @Description : To distinguish the daily note from other plain notes, we set a custom attribute for it.
* The attribute is like: custom-dailynote-yyyyMMdd: yyyyMMdd
*/
Expand All @@ -12,6 +12,7 @@ import { formatDate } from './basic';

/**
* 对 DailyNote 的自定义属性进行设置, custom-dailynote-yyyyMMdd: yyyyMMdd
* https://github.com/siyuan-note/siyuan/issues/9807
* @param doc_id 日记的 id
*/
export function setCustomDNAttr(doc_id: string, date?: Date) {
Expand Down
2 changes: 1 addition & 1 deletion src/func/dailynote/open-dn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function openDiary(notebook: Notebook) {
});
}
//设置日记日期的自定义属性 (现在也没啥用, 以后也不一定会用到, 但是加一个也不碍事)
setCustomDNAttr(dailynote.id);
// setCustomDNAttr(dailynote.id); // 内核实现
}


Expand Down

0 comments on commit b68f1ef

Please sign in to comment.