From 2fc418419d36f5d4e751faca7c9a0d41bc770315 Mon Sep 17 00:00:00 2001 From: frostime Date: Tue, 5 Dec 2023 13:27:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20=E5=BE=AE=E8=B0=83?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=8C=E5=8E=BB=E6=8E=89=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/func/dailynote/open-dn.ts | 5 ++--- src/func/dailynote/past-dn.ts | 2 +- src/func/misc.ts | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/func/dailynote/open-dn.ts b/src/func/dailynote/open-dn.ts index b040012..a405330 100644 --- a/src/func/dailynote/open-dn.ts +++ b/src/func/dailynote/open-dn.ts @@ -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'; @@ -46,8 +46,7 @@ export async function openDiary(notebook: Notebook) { } }); } - //设置日记日期的自定义属性 (现在也没啥用, 以后也不一定会用到, 但是加一个也不碍事) - setCustomDNAttr(dailynote.id); // 内核实现 + // setCustomDNAttr(dailynote.id); // 内核会自动添加 } diff --git a/src/func/dailynote/past-dn.ts b/src/func/dailynote/past-dn.ts index 0d37e7c..a137600 100644 --- a/src/func/dailynote/past-dn.ts +++ b/src/func/dailynote/past-dn.ts @@ -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 { if (typeof notebook === 'string') { diff --git a/src/func/misc.ts b/src/func/misc.ts index 6711af1..7215586 100644 --- a/src/func/misc.ts +++ b/src/func/misc.ts @@ -22,7 +22,7 @@ export async function queryNotebooks(): Promise | null> { let result = await serverApi.lsNotebooks(); let all_notebooks: Array = 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);