/// #if !BROWSER import {escapeHtml} from "../../util/escape"; import {shell} from "electron"; import * as path from "path"; /// #endif import {hideMessage, showMessage} from "../../dialog/message"; import {fetchPost} from "../../util/fetch"; import {Dialog} from "../../dialog"; import {addScript} from "../util/addScript"; import {isMobile} from "../../util/functions"; import {Constants} from "../../constants"; import {highlightRender} from "../markdown/highlightRender"; import {processRender} from "../util/processCode"; import {openByMobile, setStorageVal} from "../util/compatibility"; export const afterExport = (exportPath: string, msgId: string) => { /// #if !BROWSER showMessage(`${window.siyuan.languages.exported} ${escapeHtml(exportPath)}
`, 6000, "info", msgId); document.querySelector(`#message [data-id="${msgId}"] button`).addEventListener("click", () => { shell.showItemInFolder(path.join(exportPath)); hideMessage(msgId); }); /// #endif }; export const exportImage = (id: string) => { const exportDialog = new Dialog({ title: `