Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: Refactor av data structure

Daniel6a392c0e721f
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json
index 7f7942b19f..be125f44b6 100644
--- a/app/appearance/langs/en_US.json
+++ b/app/appearance/langs/en_US.json
@@ -138,7 +138,7 @@
"aiBrainStorm": "Brainstorm",
"aiFixGrammarSpell": "Fix grammar, spelling and typos",
"aiCustomAction": "Custom action...",
- "attributeView": "Attribute View",
+ "database": "Database",
"manage": "Manage",
"spaceRepetition": "Spaced Repetition",
"space": "Space",
diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json
index 7212f623ef..313073e806 100644
--- a/app/appearance/langs/es_ES.json
+++ b/app/appearance/langs/es_ES.json
@@ -138,7 +138,7 @@
"aiBrainStorm": "Lluvia de ideas",
"aiFixGrammarSpell": "Corregir gramática, ortografía y errores tipográficos.",
"aiCustomAction": "Acción personalizada...",
- "attributeView": "Vista de atributos",
+ "database": "Base de datos",
"manage": "Administrar",
"spaceRepetition": "Repetición Espaciada",
"space": "Espacio",
diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json
index 342669c6dc..e4720e3fa4 100644
--- a/app/appearance/langs/fr_FR.json
+++ b/app/appearance/langs/fr_FR.json
@@ -138,7 +138,7 @@
"aiBrainStorm": "Remue-méninges",
"aiFixGrammarSpell": "Correction de la grammaire, de l'orthographe et des fautes de frappe",
"aiCustomAction": "Action personnalisée...",
- "attributeView": "Vista de atributos",
+ "database": "Base de données",
"manage": "Gérer",
"spaceRepetition": "Répétition espacée",
"space": "Espace",
diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json
index 09da9647e4..6ca815c6d9 100644
--- a/app/appearance/langs/zh_CHT.json
+++ b/app/appearance/langs/zh_CHT.json
@@ -138,7 +138,7 @@
"aiBrainStorm": "頭腦風暴",
"aiFixGrammarSpell": "修正語法、拼寫和錯別字",
"aiCustomAction": "自定義操作...",
- "attributeView": "屬性視圖",
+ "database": "數據庫",
"manage": "管理",
"spaceRepetition": "間隔重複",
"space": "空格",
diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json
index 00c89d2d41..763bc1b343 100644
--- a/app/appearance/langs/zh_CN.json
+++ b/app/appearance/langs/zh_CN.json
@@ -138,7 +138,7 @@
"aiBrainStorm": "头脑风暴",
"aiFixGrammarSpell": "修正语法、拼写和错别字",
"aiCustomAction": "自定义操作...",
- "attributeView": "属性视图",
+ "database": "数据库",
"manage": "管理",
"spaceRepetition": "间隔重复",
"space": "空格",
diff --git a/app/src/protyle/hint/extend.ts b/app/src/protyle/hint/extend.ts
index 55de22126b..c71cd8761a 100644
--- a/app/src/protyle/hint/extend.ts
+++ b/app/src/protyle/hint/extend.ts
@@ -46,11 +46,11 @@ export const hintSlash = (key: string, protyle: IProtyle) => {
filter: ["ai chat"],
value: Constants.ZWSP + 5,
html: '<div class="b3-list-item__first"><svg class="b3-list-item__graphic"><use xlink:href="#iconSparkles"></use></svg><span class="b3-list-item__text">AI Chat</span></div>',
- },/* {
- filter: ["属性视图", "shuxingshitu", "sxst", "attribute view"],
+ }, {
+ filter: ["数据库", "属性视图", "shujuku", "shuxingshitu", "sjk", "sxst", "database", "attribute view"],
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.attributeView}</span></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", "ziwendang", "zwd", "xjwd"],
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>`,