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/9148
Vanessa3a20ed1559fc
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex 4c927c3e5a..22511dd53f 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -1,4 +1,6 @@{+ "lockEdit": "Make doc read-only",+ "unlockEdit": "Make doc writable","enable": "Enable","disable": "Disable","removeWorkspacePhysically": "Do you want to physically delete the data in workspace ${x}? (Physical deletion cannot be recovered)",diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.jsonindex df8ff22d85..83f293c784 100644--- a/app/appearance/langs/es_ES.json+++ b/app/appearance/langs/es_ES.json@@ -1,4 +1,6 @@{+ "lockEdit": "Hacer que el documento sea de sólo lectura",+ "unlockEdit": "Hacer que el documento sea escribible","enable": "Habilitar","disable": "Desactivar","removeWorkspacePhysically": "¿Quieres eliminar físicamente los datos en el espacio de trabajo ${x}? (La eliminación física no se puede recuperar)",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex 156f4ddc70..686046624c 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -1,4 +1,6 @@{+ "lockEdit": "Rendre le document en lecture seule",+ "unlockEdit": "Rendre le document accessible en écriture","enable": "Activer","disable": "Désactiver","removeWorkspacePhysically": "Voulez-vous supprimer physiquement les données de l'espace de travail ${x} ? (La suppression physique ne peut pas être récupérée)",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex f2379d4427..b84abd1928 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -1,4 +1,6 @@{+ "lockEdit": "鎖定編輯",+ "unlockEdit": "解除鎖定","enable": "啟用","disable": "禁用","removeWorkspacePhysically": "是否物理刪除工作空間 ${x} 的數據?(物理刪除無法恢復)",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex 23f7cea8ed..35fc190722 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -1,4 +1,6 @@{+ "lockEdit": "锁定编辑",+ "unlockEdit": "解除锁定","enable": "启用","disable": "禁用","removeWorkspacePhysically": "是否物理删除工作空间 ${x} 的数据?(物理删除无法恢复)",diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.tsindex b00e7ecb7a..c42304f670 100644--- a/app/src/protyle/breadcrumb/index.ts+++ b/app/src/protyle/breadcrumb/index.ts@@ -46,7 +46,7 @@ export class Breadcrumb {'<div class="protyle-breadcrumb__bar"></div>'}<span class="protyle-breadcrumb__space"></span><button class="protyle-breadcrumb__icon fn__none" data-type="exit-focus">${window.siyuan.languages.exitFocus}</button>-<button class="block__icon block__icon--show fn__flex-center ariaLabel" aria-label="${window.siyuan.languages.editReadonly}" data-type="readonly"><svg><use xlink:href="#iconUnlock"></use></svg></button>+<button class="block__icon block__icon--show fn__flex-center ariaLabel" aria-label="${window.siyuan.languages.lockEdit}" data-type="readonly"><svg><use xlink:href="#iconUnlock"></use></svg></button><span class="fn__space"></span><button class="block__icon block__icon--show fn__flex-center ariaLabel" data-type="doc" aria-label="${window.siyuan.languages.gutterTip2}"><svg><use xlink:href="#iconFile"></use></svg></button><span class="fn__space"></span>diff --git a/app/src/protyle/util/onGet.ts b/app/src/protyle/util/onGet.tsindex a6f53450ac..b4971587fe 100644--- a/app/src/protyle/util/onGet.ts+++ b/app/src/protyle/util/onGet.ts@@ -17,6 +17,7 @@ import {isMobile} from "../../util/functions";import {foldPassiveType} from "../wysiwyg/renderBacklink";import {showMessage} from "../../dialog/message";import {avRender} from "../render/av/render";+import {hideTooltip} from "../../dialog/tooltip";export const onGet = (options: {data: IWebSocketData,@@ -328,6 +329,8 @@ export const disabledProtyle = (protyle: IProtyle) => {item.setAttribute("contenteditable", "false");});protyle.breadcrumb.element.parentElement.querySelector('[data-type="readonly"] use').setAttribute("xlink:href", "#iconLock");+ protyle.breadcrumb.element.parentElement.querySelector('[data-type="readonly"]').setAttribute("aria-label", window.siyuan.languages.unlockEdit);+ hideTooltip();};/** 解除编辑器禁用 */@@ -358,6 +361,8 @@ export const enableProtyle = (protyle: IProtyle) => {}});protyle.breadcrumb.element.parentElement.querySelector('[data-type="readonly"] use').setAttribute("xlink:href", "#iconUnlock");+ protyle.breadcrumb.element.parentElement.querySelector('[data-type="readonly"]').setAttribute("aria-label", window.siyuan.languages.lockEdit);+ hideTooltip();};