An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: fix https://github.com/siyuan-note/siyuan/issues/5726
Vanessa5003642817ed
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex c2cc580eb6..6a20544f6b 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -1,4 +1,5 @@{+ "log": "Log","copyInsertAsAssets": "Copy as asset and insert","useFileProtoLink": "Use file:// absolute path and link","syncConfGuide1": "Initialize sync key",diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.jsonindex 312c20ec1d..1dcc79a10e 100644--- a/app/appearance/langs/es_ES.json+++ b/app/appearance/langs/es_ES.json@@ -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",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex 38fd026e14..1aaab26d03 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -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",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex 6df08bb48a..2fe965e464 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -1,4 +1,5 @@{+ "log": "日誌","copyInsertAsAssets": "複製為資源文件並插入","useFileProtoLink": "使用 file:// 絕對路徑並鏈接","syncConfGuide1": "初始化同步密鑰",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex c095d70b32..ebdeffbc95 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -1,4 +1,5 @@{+ "log": "日志","copyInsertAsAssets": "复制为资源文件并插入","useFileProtoLink": "使用 file:// 绝对路径并链接","syncConfGuide1": "初始化同步密钥",diff --git a/app/src/config/about.ts b/app/src/config/about.tsindex e16792554e..5ec0a2c888 100644--- a/app/src/config/about.ts+++ b/app/src/config/about.ts@@ -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;