import {Dialog} from "../dialog"; import {fetchPost} from "../util/fetch"; import {isMobile} from "../util/functions"; import {escapeHtml} from "../util/escape"; import {writeText} from "../protyle/util/compatibility"; import {showMessage} from "../dialog/message"; import {openModel} from "../mobile/menu/model"; import {Constants} from "../constants"; declare interface INotebookConf { name: string, box: string, conf: { refCreateSavePath: string docCreateSavePath: string dailyNoteSavePath: string refCreateSaveBox: string; docCreateSaveBox: string; dailyNoteTemplatePath: string } } export const genNotebookOption = (id: string, notebookId?: string) => { let html = ``; const helpIds: string[] = []; Object.keys(Constants.HELP_PATH).forEach((key: "zh_CN") => { helpIds.push(Constants.HELP_PATH[key]); }); window.siyuan.notebooks.forEach((item) => { if (helpIds.includes(item.id) || item.id === notebookId) { return; } html += ``; }); return html; }; export const onGetnotebookconf = (data: INotebookConf) => { const titleHTML = `