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: Improve text (#12112)
Jeffrey Chen96d2dcc09ef4
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex 6b3bd4eff6..a01c94f6e7 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -525,6 +525,7 @@"tagSnapshotTip": "Do not include symbols \\ / : * ? " ' < > |","dataRepo": "Data repo","newSubDoc": "Create sub doc",+ "newSubDocRef": "Create sub Doc with reference","newDocBelow": "Create doc below","newDocAbove": "Create doc above","fullWidth": "Adaptive Width",@@ -1108,6 +1109,7 @@"paragraphBeginningSpace": "Two empty spaces at the beginning of the paragraph","outline": "Outline","newFile": "New Doc",+ "newFileRef": "Create new Doc with reference","close": "Close","delete": "Delete","rename": "Rename",diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.jsonindex 20d3cadf09..42dae827a4 100644--- a/app/appearance/langs/es_ES.json+++ b/app/appearance/langs/es_ES.json@@ -525,6 +525,7 @@"tagSnapshotTip": "No incluir símbolos \\ / : * ? " ' < > |","dataRepo": "Repositorio de datos","newSubDoc": "Crear subdocumento",+ "newSubDocRef": "Crear subdocumento y hacer referencia","newDocBelow": "Crear documento a continuación","newDocAbove": "Crear documento arriba","fullWidth": "Ancho adaptable",@@ -1108,6 +1109,7 @@"paragraphBeginningSpace": "Dos espacios vacíos al principio del párrafo","outline": "Esquema","newFile": "Nuevo documento",+ "newFileRef": "Crear un nuevo documento y hacer referencia","close": "Cerrar","delete": "Borrar","rename": "Cambiar nombre",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex 17f8512d02..91889e2d40 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -525,6 +525,7 @@"tagSnapshotTip": "Ne pas inclure les symboles \\ / : * ? " ' < > |","dataRepo": "Dépôt de données","newSubDoc": "Créer un sous-doc",+ "newSubDocRef": "Créer un sous-doc et le référencer","newDocBelow": "Créer un document ci-dessous","newDocAbove": "Créer un document ci-dessus","fullWidth": "Largeur adaptative",@@ -1108,6 +1109,7 @@"paragraphBeginningSpace": "Deux espaces vides au début du paragraphe","outline": "Outline","newFile": "Nouveau Doc",+ "newFileRef": "Créer un nouveau document et le citer","close": "Fermer","delete": "Supprimer","rename": "Renommer",diff --git a/app/appearance/langs/ja_JP.json b/app/appearance/langs/ja_JP.jsonindex 8d0ee6c9ee..eff6c49010 100644--- a/app/appearance/langs/ja_JP.json+++ b/app/appearance/langs/ja_JP.json@@ -525,6 +525,7 @@"tagSnapshotTip": "次の記号を含めないでください \\ / : * ? " ' < > |","dataRepo": "データリポジトリ","newSubDoc": "サブドキュメントを作成",+ "newSubDocRef": "サブドキュメントを作成して参照する","newDocBelow": "下にドキュメントを作成","newDocAbove": "上にドキュメントを作成","fullWidth": "幅に合わせる",@@ -1108,6 +1109,7 @@"paragraphBeginningSpace": "段落の先頭にスペースを2つ挿入","outline": "アウトライン","newFile": "新規ドキュメント",+ "newFileRef": "新規ドキュメントを作成して引用する","close": "閉じる","delete": "削除","rename": "名前の変更",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex 3d1b10eb40..f4d42ec392 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -525,6 +525,7 @@"tagSnapshotTip": "請勿包含符號 \\ / : * ? " ' < > |","dataRepo": "資料倉庫","newSubDoc": "新建子文檔",+ "newSubDocRef": "新建子文檔並引用","newDocBelow": "在下方新建文檔","newDocAbove": "在上方新建文檔","fullWidth": "自適應寬度",@@ -1108,6 +1109,7 @@"paragraphBeginningSpace": "段落開頭空兩格","outline": "大綱","newFile": "新建文檔",+ "newFileRef": "新建文檔並引用","close": "關閉","delete": "刪除","rename": "重命名",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex fa75f35281..37a3c26ebf 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -525,6 +525,7 @@"tagSnapshotTip": "请勿包含符号 \\ / : * ? " ' < > |","dataRepo": "数据仓库","newSubDoc": "新建子文档",+ "newSubDocRef": "新建子文档并引用","newDocBelow": "在下方新建文档","newDocAbove": "在上方新建文档","fullWidth": "自适应宽度",@@ -1108,6 +1109,7 @@"paragraphBeginningSpace": "段落开头空两格","outline": "大纲","newFile": "新建文档",+ "newFileRef": "新建文档并引用","close": "关闭","delete": "删除","rename": "重命名",diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.tsindex 14e2ac6d50..11dce3ef90 100644--- a/app/src/mobile/util/keyboardToolbar.ts+++ b/app/src/mobile/util/keyboardToolbar.ts@@ -215,7 +215,7 @@ const renderSlashMenu = (protyle: IProtyle, toolbarElement: Element) => {${getSlashItem("{{", "iconSQL", window.siyuan.languages.blockEmbed, "true")}${getSlashItem(Constants.ZWSP + 5, "iconSparkles", "AI Chat")}${getSlashItem('<div data-type="NodeAttributeView" data-av-type="table"></div>', "iconDatabase", window.siyuan.languages.database, "true")}- ${getSlashItem(Constants.ZWSP + 4, "iconFile", window.siyuan.languages.newSubDoc)}+ ${getSlashItem(Constants.ZWSP + 4, "iconFile", window.siyuan.languages.newSubDocRef)}</div><div class="keyboard__slash-title"></div><div class="keyboard__slash-block">diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.tsindex 085bb1b126..18d63549e2 100644--- a/app/src/protyle/hint/extend.ts+++ b/app/src/protyle/hint/extend.ts@@ -23,7 +23,7 @@ import {avRender} from "../render/av/render";export const hintSlash = (key: string, protyle: IProtyle) => {const allList: IHintData[] = [{- filter: ["模版", "moban", "mb", "template"],+ filter: ["模版", "moban", "muban", "mb", "template"],value: Constants.ZWSP,html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconMarkdown"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.template}</span></div>`,}, {@@ -35,7 +35,7 @@ export const hintSlash = (key: string, protyle: IProtyle) => {value: Constants.ZWSP + 2,html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconImage"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.assets}</span></div>`,}, {- filter: ["块引用", "yinyong", "yy", "block reference"],+ filter: ["块引用", "kuaiyinyong", "kyy", "block reference"],value: "((",html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconRef"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.ref}</span><span class="b3-list-item__meta">((</span></div>`,}, {@@ -51,13 +51,13 @@ export const hintSlash = (key: string, protyle: IProtyle) => {value: '<div data-type="NodeAttributeView" data-av-type="table"></div>',html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconDatabase"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.database}</span></div>`,}, {- filter: ["文档", "wendang", "wd", "xjwd", "new doc"],+ filter: ["新建文档并引用", "xinjianwendangbingyinyong","xjwdbyy", "new doc"],value: Constants.ZWSP + 4,- html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newFile}</span><span class="b3-menu__accelerator">${updateHotkeyTip(window.siyuan.config.keymap.general.newFile.custom)}</span></div>`,+ html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newFileRef}</span></div>`,}, {- filter: ["子文档", "ziwendang", "zwd", "xjzwd", "create sub doc"],+ filter: ["新建子文档并引用", "xinjianziwendangbingyinyong", "xjzwdbyy", "create sub doc"],value: Constants.ZWSP + 6,- html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newSubDoc}</span></div>`,+ html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconFile"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.newSubDocRef}</span></div>`,}, {value: "",html: "separator",@@ -165,11 +165,11 @@ export const hintSlash = (key: string, protyle: IProtyle) => {value: "tag",html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconTags"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.tag}</span><span class="b3-menu__accelerator">${updateHotkeyTip((window.siyuan.config.keymap.editor.insert.tag.custom))}</span></div>`,}, {- filter: ["行内代码", "hangneidaima", "hndm", "inline code"],+ filter: ["行级代码", "hangjidaima", "hjdm", "行内代码", "hangneidaima", "hndm", "inline code"],value: "code",html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconInlineCode"></use></svg><span class="b3-list-item__text">${window.siyuan.languages["inline-code"]}</span><span class="b3-menu__accelerator">${updateHotkeyTip((window.siyuan.config.keymap.editor.insert["inline-code"].custom))}</span></div>`,}, {- filter: ["行内数学公式", "hangneishuxuegongshi", "hnsxgs", "inline math"],+ filter: ["行级公式", "hangjigongshi", "hjgs", "行级数学公式", "hangjishuxuegongshi", "hjsxgs", "行内数学公式", "hangneishuxuegongshi", "hnsxgs", "inline math"],value: "inline-math",html: `<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconMath"></use></svg><span class="b3-list-item__text">${window.siyuan.languages["inline-math"]}</span><span class="b3-menu__accelerator">${updateHotkeyTip((window.siyuan.config.keymap.editor.insert["inline-math"].custom))}</span></div>`,}, {