Skip to content

Commit

Permalink
🎨 style: 微调代码,去掉无用的部分
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Dec 5, 2023
1 parent 6a61576 commit 2fc4184
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/func/dailynote/open-dn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author : frostime
* @Date : 2023-11-12 19:53:10
* @FilePath : /src/func/dailynote/open-dn.ts
* @LastEditTime : 2023-12-04 18:17:26
* @LastEditTime : 2023-12-04 20:30:15
* @Description :
*/
import { showMessage, confirm, openTab, openMobileFileById } from 'siyuan';
Expand Down Expand Up @@ -46,8 +46,7 @@ export async function openDiary(notebook: Notebook) {
}
});
}
//设置日记日期的自定义属性 (现在也没啥用, 以后也不一定会用到, 但是加一个也不碍事)
setCustomDNAttr(dailynote.id); // 内核实现
// setCustomDNAttr(dailynote.id); // 内核会自动添加
}


Expand Down
2 changes: 1 addition & 1 deletion src/func/dailynote/past-dn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as api from "@/serverApi";
import { formatDate } from './basic';
import { getDocsByHpath } from '@/func/misc';
import { setCustomDNAttr } from "./dn-attr";
import { debug, info } from "@/utils";
import { info } from "@/utils";

export async function getPastDNHPath(notebook: NotebookId | Notebook, date: Date): Promise<string> {
if (typeof notebook === 'string') {
Expand Down
2 changes: 1 addition & 1 deletion src/func/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function queryNotebooks(): Promise<Array<Notebook> | null> {
let result = await serverApi.lsNotebooks();
let all_notebooks: Array<Notebook> = result.notebooks;
//delete notebook with name "思源笔记用户指南"
const blacklist = settings.get("NotebookBlacklist");
// const blacklist = settings.get("NotebookBlacklist");
all_notebooks = all_notebooks.filter(
notebook => {
return !notebook.closed && !hiddenNotebook.has(notebook.name);
Expand Down

0 comments on commit 2fc4184

Please sign in to comment.