|
@@ -8,7 +8,7 @@ import {fetchPost} from "../util/fetch";
|
|
import {setAccessAuthCode} from "./util";
|
|
import {setAccessAuthCode} from "./util";
|
|
import {exportLayout} from "../layout/util";
|
|
import {exportLayout} from "../layout/util";
|
|
import {exitSiYuan} from "../dialog/processSystem";
|
|
import {exitSiYuan} from "../dialog/processSystem";
|
|
-import {writeText} from "../protyle/util/compatibility";
|
|
|
|
|
|
+import {openByMobile, writeText} from "../protyle/util/compatibility";
|
|
import {showMessage} from "../dialog/message";
|
|
import {showMessage} from "../dialog/message";
|
|
import {Dialog} from "../dialog";
|
|
import {Dialog} from "../dialog";
|
|
import {confirmDialog} from "../dialog/confirmDialog";
|
|
import {confirmDialog} from "../dialog/confirmDialog";
|
|
@@ -121,6 +121,13 @@ export const about = {
|
|
<div class="fn__space"></div>
|
|
<div class="fn__space"></div>
|
|
<button id="checkUpdateBtn" class="b3-button b3-button--outline fn__size200 fn__flex-center">${window.siyuan.languages.checkUpdate}</button>
|
|
<button id="checkUpdateBtn" class="b3-button b3-button--outline fn__size200 fn__flex-center">${window.siyuan.languages.checkUpdate}</button>
|
|
</div>
|
|
</div>
|
|
|
|
+<div class="fn__flex b3-label">
|
|
|
|
+ <div class="fn__flex-1 fn__flex-center">
|
|
|
|
+ ${window.siyuan.languages.log}
|
|
|
|
+ </div>
|
|
|
|
+ <div class="fn__space"></div>
|
|
|
|
+ <button id="exportLog" class="b3-button b3-button--outline fn__size200 fn__flex-center">${window.siyuan.languages.export}</button>
|
|
|
|
+</div>
|
|
<div class="b3-label fn__flex">
|
|
<div class="b3-label fn__flex">
|
|
<div class="fn__flex-1">
|
|
<div class="fn__flex-1">
|
|
${window.siyuan.languages.about9}
|
|
${window.siyuan.languages.about9}
|
|
@@ -150,6 +157,11 @@ export const about = {
|
|
tokenElement.addEventListener("click", () => {
|
|
tokenElement.addEventListener("click", () => {
|
|
tokenElement.select();
|
|
tokenElement.select();
|
|
});
|
|
});
|
|
|
|
+ about.element.querySelector("#exportLog").addEventListener("click", () => {
|
|
|
|
+ fetchPost("/api/system/exportLog", {}, (response) => {
|
|
|
|
+ openByMobile(response.data.zip);
|
|
|
|
+ })
|
|
|
|
+ });
|
|
const updateElement = about.element.querySelector("#checkUpdateBtn");
|
|
const updateElement = about.element.querySelector("#checkUpdateBtn");
|
|
updateElement.addEventListener("click", () => {
|
|
updateElement.addEventListener("click", () => {
|
|
const svgElement = updateElement.firstElementChild;
|
|
const svgElement = updateElement.firstElementChild;
|