瀏覽代碼

:art: https://github.com/siyuan-note/siyuan/issues/11250

Vanessa 1 年之前
父節點
當前提交
37a604c56b

+ 2 - 2
app/appearance/langs/en_US.json

@@ -1056,8 +1056,8 @@
   "graphConfig2": "Reference Count filter",
   "selectOpen": "Always Select Opened Doc",
   "selectOpen1": "Select Opened Doc",
-  "closeAll": "Close All",
-  "closeOthers": "Close Others",
+  "closeAll": "Close All Tabs",
+  "closeOthers": "Close Others Tabs",
   "closeLeft": "Close Tabs to the Left",
   "closeRight": "Close Tabs to the Right",
   "closeUnmodified": "Close Unmodified Tabs",

+ 2 - 2
app/appearance/langs/es_ES.json

@@ -1056,8 +1056,8 @@
   "graphConfig2": "Filtro de recuento de referencias",
   "selectOpen": "Seleccionar siempre el documento abierto",
   "selectOpen1": "Seleccionar documento abierto",
-  "closeAll": "Cerrar todo",
-  "closeOthers": "Cerrar Otros",
+  "closeAll": "Cierra todas las pestañas",
+  "closeOthers": "Cerrar otras pestañas",
   "closeLeft": "Cerrar pestañas a la izquierda",
   "closeRight": "Cerrar pestañas a la derecha",
   "closeUnmodified": "Cerrar pestañas sin modificar",

+ 2 - 2
app/appearance/langs/fr_FR.json

@@ -1056,8 +1056,8 @@
   "graphConfig2": "Filtre de compte de blocs de référence",
   "selectOpen": "Localisez toujours les documents ouverts",
   "selectOpen1": "Localiser les documents ouverts",
-  "closeAll": "Fermer tout",
-  "closeOthers": "Fermer d'autres",
+  "closeAll": "Fermer tous les onglets",
+  "closeOthers": "Fermer les autres onglets",
   "closeLeft": "Fermer les onglets à gauche",
   "closeRight": "Fermer les onglets à droite",
   "closeUnmodified": "Fermer les onglets non modifiés",

+ 2 - 2
app/appearance/langs/ja_JP.json

@@ -1056,8 +1056,8 @@
   "graphConfig2": "参照カウントフィルタ",
   "selectOpen": "常に開いているドキュメントを選択",
   "selectOpen1": "開いているドキュメントを選択",
-  "closeAll": "すべて閉じる",
-  "closeOthers": "他を閉じる",
+  "closeAll": "すべてのタブを閉じる",
+  "closeOthers": "そののタブを閉じる",
   "closeLeft": "左側を閉じる",
   "closeRight": "右側を閉じる",
   "closeUnmodified": "未変更を閉じる",

+ 2 - 2
app/appearance/langs/zh_CHT.json

@@ -1056,8 +1056,8 @@
   "graphConfig2": "引用塊次數過濾",
   "selectOpen": "定位打開的文檔",
   "selectOpen1": "定位打開的文檔",
-  "closeAll": "關閉全部",
-  "closeOthers": "關閉其他",
+  "closeAll": "關閉全部分頁",
+  "closeOthers": "關閉其他分頁",
   "closeLeft": "關閉左側分頁",
   "closeRight": "關閉右側分頁",
   "closeUnmodified": "關閉未修改的分頁",

+ 2 - 2
app/appearance/langs/zh_CN.json

@@ -1056,8 +1056,8 @@
   "graphConfig2": "引用块次数过滤",
   "selectOpen": "始终定位打开的文档",
   "selectOpen1": "定位打开的文档",
-  "closeAll": "关闭全部",
-  "closeOthers": "关闭其他",
+  "closeAll": "关闭全部页签",
+  "closeOthers": "关闭其他页签",
   "closeLeft": "关闭左侧页签",
   "closeRight": "关闭右侧页签",
   "closeUnmodified": "关闭未修改的页签",

+ 10 - 1
app/src/boot/globalEvent/commandPanel.ts

@@ -41,7 +41,16 @@ export const commandPanel = (app: App) => {
     const listElement = dialog.element.querySelector("#commands");
     let html = "";
     Object.keys(window.siyuan.config.keymap.general).forEach((key) => {
-        if (["addToDatabase", "fileTree", "outline", "bookmark", "tag", "dailyNote", "inbox", "backlinks", "graphView", "globalGraph"].includes(key)) {
+        let keys;
+        /// #if MOBILE
+        keys = ["addToDatabase", "fileTree", "outline", "bookmark", "tag", "dailyNote", "inbox", "backlinks",
+            "graphView", "globalGraph", "config", "dataHistory"];
+        /// #else
+        keys = ["addToDatabase", "fileTree", "outline", "bookmark", "tag", "dailyNote", "inbox", "backlinks",
+            "graphView", "globalGraph", "closeAll", "closeLeft", "closeOthers", "closeRight", "closeTab",
+            "closeUnmodified", "config", "dataHistory"];
+        /// #endif
+        if (keys.includes(key)) {
             html += `<li class="b3-list-item" data-command="${key}">
     <span class="b3-list-item__text">${window.siyuan.languages[key]}</span>
     <span class="b3-list-item__meta${isMobile() ? " fn__none" : ""}">${updateHotkeyTip(window.siyuan.config.keymap.general[key].custom)}</span>

+ 1 - 1
app/src/protyle/render/av/relation.ts

@@ -149,7 +149,7 @@ export const updateRelation = (options: {
         avID: options.avID,
         keyID: colId,
         id: newAVId || colData.relation.avID,
-        backRelationKeyID: colData.relation.avID === newAVId ? colData.relation.backKeyID : Lute.NewNodeID(),
+        backRelationKeyID: colData.relation.avID === newAVId ? (colData.relation.backKeyID || Lute.NewNodeID()) : Lute.NewNodeID(),
         isTwoWay: (options.avElement.querySelector(".b3-switch") as HTMLInputElement).checked,
         name: inputElement.value,
         format: colNewName