🎨 新建文档名模板 改为 新建文档存放位置 并支持设置路径 https://github.com/siyuan-note/siyuan/issues/4494

This commit is contained in:
Liang Ding 2023-02-03 20:47:43 +08:00
parent f3aa37f21c
commit 551cbb8c18
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
14 changed files with 38 additions and 41 deletions

View file

@ -10,7 +10,7 @@ export const onGetnotebookconf = (data: {
box: string,
conf: {
refCreateSavePath: string
createDocNameTemplate: string
docCreateSavePath: string
dailyNoteSavePath: string
dailyNoteTemplatePath: string
}
@ -24,7 +24,7 @@ export const onGetnotebookconf = (data: {
<div class="fn__hr"></div>
<div class="b3-label__text">${window.siyuan.languages.fileTree13}</div>
<div class="fn__hr"></div>
<input class="b3-text-field fn__flex-center fn__block" id="createDocNameTemplate" value="">
<input class="b3-text-field fn__flex-center fn__block" id="docCreateSavePath" value="">
</div>
<div class="b3-label">
${window.siyuan.languages.fileTree5}
@ -65,8 +65,8 @@ export const onGetnotebookconf = (data: {
});
const dailyNoteSavePathElement = contentElement.querySelector("#dailyNoteSavePath") as HTMLInputElement;
dailyNoteSavePathElement.value = data.conf.dailyNoteSavePath;
const createDocNameTemplateElement = contentElement.querySelector("#createDocNameTemplate") as HTMLInputElement;
createDocNameTemplateElement.value = data.conf.createDocNameTemplate;
const docCreateSavePathElement = contentElement.querySelector("#docCreateSavePath") as HTMLInputElement;
docCreateSavePathElement.value = data.conf.docCreateSavePath;
const refCreateSavePathElement = contentElement.querySelector("#refCreateSavePath") as HTMLInputElement;
refCreateSavePathElement.value = data.conf.refCreateSavePath;
const dailyNoteTemplatePathElement = contentElement.querySelector("#dailyNoteTemplatePath") as HTMLInputElement;
@ -77,7 +77,7 @@ export const onGetnotebookconf = (data: {
notebook: data.box,
conf: {
refCreateSavePath: refCreateSavePathElement.value,
createDocNameTemplate: createDocNameTemplateElement.value,
docCreateSavePath: docCreateSavePathElement.value,
dailyNoteSavePath: dailyNoteSavePathElement.value,
dailyNoteTemplatePath: dailyNoteTemplatePathElement.value,
}