This commit is contained in:
parent
23a30f0649
commit
5003642817
6 changed files with 18 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"log": "Log",
|
||||
"copyInsertAsAssets": "Copy as asset and insert",
|
||||
"useFileProtoLink": "Use file:// absolute path and link",
|
||||
"syncConfGuide1": "Initialize sync key",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"log": "Registro",
|
||||
"copyInsertAsAssets": "Copiar como archivo de activos e insertar",
|
||||
"useFileProtoLink": "Usar archivo:// ruta absoluta y enlace",
|
||||
"syncConfGuide1": "Inicializar clave de sincronización",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"log": "Journal",
|
||||
"copyInsertAsAssets": "Copier en tant que fichier d'actif et insérer",
|
||||
"useFileProtoLink": "Utiliser file:// chemin absolu et lien",
|
||||
"syncConfGuide1": "Initialiser la clé de synchronisation",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"log": "日誌",
|
||||
"copyInsertAsAssets": "複製為資源文件並插入",
|
||||
"useFileProtoLink": "使用 file:// 絕對路徑並鏈接",
|
||||
"syncConfGuide1": "初始化同步密鑰",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"log": "日志",
|
||||
"copyInsertAsAssets": "复制为资源文件并插入",
|
||||
"useFileProtoLink": "使用 file:// 绝对路径并链接",
|
||||
"syncConfGuide1": "初始化同步密钥",
|
||||
|
|
|
@ -8,7 +8,7 @@ import {fetchPost} from "../util/fetch";
|
|||
import {setAccessAuthCode} from "./util";
|
||||
import {exportLayout} from "../layout/util";
|
||||
import {exitSiYuan} from "../dialog/processSystem";
|
||||
import {writeText} from "../protyle/util/compatibility";
|
||||
import {openByMobile, writeText} from "../protyle/util/compatibility";
|
||||
import {showMessage} from "../dialog/message";
|
||||
import {Dialog} from "../dialog";
|
||||
import {confirmDialog} from "../dialog/confirmDialog";
|
||||
|
@ -121,6 +121,13 @@ export const about = {
|
|||
<div class="fn__space"></div>
|
||||
<button id="checkUpdateBtn" class="b3-button b3-button--outline fn__size200 fn__flex-center">${window.siyuan.languages.checkUpdate}</button>
|
||||
</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="fn__flex-1">
|
||||
${window.siyuan.languages.about9}
|
||||
|
@ -150,6 +157,11 @@ export const about = {
|
|||
tokenElement.addEventListener("click", () => {
|
||||
tokenElement.select();
|
||||
});
|
||||
about.element.querySelector("#exportLog").addEventListener("click", () => {
|
||||
fetchPost("/api/system/exportLog", {}, (response) => {
|
||||
openByMobile(response.data.zip);
|
||||
})
|
||||
});
|
||||
const updateElement = about.element.querySelector("#checkUpdateBtn");
|
||||
updateElement.addEventListener("click", () => {
|
||||
const svgElement = updateElement.firstElementChild;
|
||||
|
|
Loading…
Add table
Reference in a new issue