mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 00:20:12 +01:00
❤️ 完整开源界面和内核 https://github.com/siyuan-note/siyuan/issues/5013
This commit is contained in:
parent
e650b8100c
commit
f40ed985e1
1214 changed files with 345766 additions and 9 deletions
19
app/src/protyle/export/util.ts
Normal file
19
app/src/protyle/export/util.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import {hideMessage, showMessage} from "../../dialog/message";
|
||||
/// #if !BROWSER
|
||||
import {escapeHtml} from "../../util/escape";
|
||||
import {shell} from "electron";
|
||||
import * as path from "path";
|
||||
|
||||
export const afterExport = (exportPath: string) => {
|
||||
showMessage(`<div class="fn__flex">
|
||||
<div class="fn__flex-center">${window.siyuan.languages.exported}${escapeHtml(exportPath)}</div>
|
||||
<div class="fn__space"></div>
|
||||
<div class="fn__space"></div>
|
||||
<button class="b3-button b3-button--white">${window.siyuan.languages.showInFolder}</button>
|
||||
</div>`, 6000);
|
||||
document.querySelector("#message button").addEventListener("click", () => {
|
||||
shell.showItemInFolder(path.join(exportPath));
|
||||
hideMessage();
|
||||
});
|
||||
};
|
||||
/// #endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue