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: https://github.com/siyuan-note/siyuan/issues/18322
Vanessa5d4ecfab9188
diff --git a/app/appearance/langs/ar.json b/app/appearance/langs/ar.jsonindex 18d26509c6..eb6229bb20 100644--- a/app/appearance/langs/ar.json+++ b/app/appearance/langs/ar.json@@ -1,4 +1,8 @@{+ "applicationZoom": "تكبير/تصغير واجهة التطبيق",+ "increaseEditorFontSize": "زيادة حجم خط المحرر",+ "decreaseEditorFontSize": "تقليل حجم خط المحرر",+ "resetEditorFontSize": "إعادة حجم خط المحرر إلى الافتراضي","monospaceFont": "خط أحادي المسافة","monospaceFontTip": "يُستخدم لكتل التعليمات البرمجية والتعليمات البرمجية المضمنة وأرقام أسطر كتل التعليمات البرمجية؛ عند عدم تحديد أي خط، يُستخدم خط السمة","manageColors": "إدارة الألوان",@@ -1827,8 +1831,6 @@"kernelFault2": "إذا استمرت المشكلة، يرجى البحث عن المساعدة أو الإبلاغ عن الأخطاء <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">هنا</a>","fontSize": "حجم الخط","fontSizeTip": "حجم الخط الافتراضي هو <code class='fn__code'>16</code>، يؤثر هذا الإعداد على المحرر وصادرات حجم خط PDF/HTML",- "fontSizeScrollZoom": "ضبط حجم خط المحرر بسرعة",- "fontSizeScrollZoomTip": "بعد التمكين، اضغط مع الاستمرار على <code class='fn__code'>Ctrl</code> لضبط حجم الخط بسرعة من خلال عجلة الماوس أو إيماءة التكبير/التصغير في لوحة التتبع","font1": "يؤثر هذا الإعداد فقط على عرض الخط في المحرر، وعند عدم تحديد أي خط يُستخدم خط السمة","newNameFile": "اسم المستند الفرعي الجديد هو","newNameSettingFile": "اسم المستند الجديد هو",diff --git a/app/appearance/langs/de.json b/app/appearance/langs/de.jsonindex f358844246..02cac8e46f 100644--- a/app/appearance/langs/de.json+++ b/app/appearance/langs/de.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Anwendungsoberfläche skalieren",+ "increaseEditorFontSize": "Editorschrift vergrößern",+ "decreaseEditorFontSize": "Editorschrift verkleinern",+ "resetEditorFontSize": "Editorschrift auf Standardgröße zurücksetzen","monospaceFont": "Festbreitenschrift","monospaceFontTip": "Wird für Codeblöcke, Inline-Code und Codeblock-Zeilennummern verwendet; wenn keine Schrift ausgewählt ist, wird die Schrift des Themes verwendet","manageColors": "Farben verwalten",@@ -1827,8 +1831,6 @@"kernelFault2": "Wenn das Problem weiterhin besteht, suchen Sie bitte Hilfe oder melden Sie Bugs <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">hier</a>","fontSize": "Schriftgröße","fontSizeTip": "Die Standard-Schriftgröße beträgt <code class='fn__code'>16</code>, diese Einstellung hat Einfluss auf die Schriftgröße im Editor und beim exportierten PDF/HTML.",- "fontSizeScrollZoom": "Editor-Schriftgröße schnell anpassen",- "fontSizeScrollZoomTip": "Nach der Aktivierung halten Sie <code class='fn__code'>Ctrl</code> und nutzen Sie das Mausrad oder die Trackpad-Zoomgeste, um die Schriftgröße schnell anzupassen.","font1": "Diese Einstellung wirkt sich nur auf die Schriftanzeige im Editor aus; wenn keine Schriftart ausgewählt ist, wird die Schriftart des Themes verwendet","newNameFile": "Der Name des neuen Unterdokuments lautet","newNameSettingFile": "Der Name des neuen Dokuments lautet",diff --git a/app/appearance/langs/en.json b/app/appearance/langs/en.jsonindex 4067e1e964..88b9e99e8d 100644--- a/app/appearance/langs/en.json+++ b/app/appearance/langs/en.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Application Zoom",+ "increaseEditorFontSize": "Increase Editor Font Size",+ "decreaseEditorFontSize": "Decrease Editor Font Size",+ "resetEditorFontSize": "Reset Editor Font Size","monospaceFont": "Monospace Font","monospaceFontTip": "Used for code blocks, inline code, and code block line numbers; when no font is selected, the theme's font is used","manageColors": "Manage colors",@@ -1827,8 +1831,6 @@"kernelFault2": "If the problem persists, please look for help or report bugs <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">here</a>","fontSize": "Font Size","fontSizeTip": "The default font size is <code class='fn__code'>16</code>, this setting affects the editor and exported PDF/HTML font size display",- "fontSizeScrollZoom": "Quickly adjust editor font size",- "fontSizeScrollZoomTip": "When enabled, press and hold <code class='fn__code'>Ctrl</code> to quickly adjust the font size through the mouse wheel or trackpad pinch-zoom gesture","font1": "This setting only affects font display in the editor; when no font is selected, the theme's font is used","newNameFile": "The name of the new subdocument is","newNameSettingFile": "The name of the new document is",diff --git a/app/appearance/langs/es.json b/app/appearance/langs/es.jsonindex 7a5f6e867b..86343b4de9 100644--- a/app/appearance/langs/es.json+++ b/app/appearance/langs/es.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Escala de la interfaz de la aplicación",+ "increaseEditorFontSize": "Aumentar el tamaño de fuente del editor",+ "decreaseEditorFontSize": "Reducir el tamaño de fuente del editor",+ "resetEditorFontSize": "Restablecer el tamaño de fuente del editor","monospaceFont": "Fuente monoespaciada","monospaceFontTip": "Se utiliza para bloques de código, código en línea y números de línea de bloques de código; si no se selecciona ninguna fuente, se usa la fuente del tema","manageColors": "Gestionar colores",@@ -1827,8 +1831,6 @@"kernelFault2": "Si el problema persiste, busque ayuda o informe de errores <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">aquí</a>","fontSize": "Tamaño de la fuente","fontSizeTip": "El tamaño de fuente predeterminado es <code class='fn__code'>16</code>, esta configuración afecta el editor y la visualización del tamaño de fuente PDF/HTML exportado",- "fontSizeScrollZoom": "Ajustar rápidamente el tamaño de fuente del editor",- "fontSizeScrollZoomTip": "Después de habilitar, presione y mantenga presionado <code class='fn__code'>Ctrl</code> para ajustar rápidamente el tamaño de fuente a través de la rueda del mouse o el gesto de pellizcar-zoom del trackpad","font1": "Este ajuste solo afecta a la visualización de fuentes en el editor; cuando no se selecciona ninguna fuente, se utiliza la fuente del tema","newNameFile": "El nombre del nuevo subdocumento es","newNameSettingFile": "El nombre del nuevo documento es",diff --git a/app/appearance/langs/fr.json b/app/appearance/langs/fr.jsonindex 734b928ef0..a66a05e90d 100644--- a/app/appearance/langs/fr.json+++ b/app/appearance/langs/fr.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Zoom de l’interface de l’application",+ "increaseEditorFontSize": "Augmenter la taille de police de l’éditeur",+ "decreaseEditorFontSize": "Réduire la taille de police de l’éditeur",+ "resetEditorFontSize": "Réinitialiser la taille de police de l’éditeur","monospaceFont": "Police à chasse fixe","monospaceFontTip": "Utilisée pour les blocs de code, le code en ligne et les numéros de ligne des blocs de code ; si aucune police n’est sélectionnée, la police du thème est utilisée","manageColors": "Gérer les couleurs",@@ -1827,8 +1831,6 @@"kernelFault2": "Si le problème persiste, veuillez rechercher de l'aide ou signaler les bogues <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">ici</a>","fontSize": "Taille de la police","fontSizeTip": "La taille de police par défaut est de <code class='fn__code'>16</code>, ce paramètre affecte l'éditeur et l'affichage de la taille de police PDF/HTML exportée",- "fontSizeScrollZoom": "Ajuster rapidement la taille de la police de l'éditeur",- "fontSizeScrollZoomTip": "Après l'activation, maintenez enfoncée la touche <code class='fn__code'>Ctrl</code> pour ajuster rapidement la taille de la police via la molette de la souris ou le geste de zoom par pincement du trackpad","font1": "Ce paramètre n'affecte que l'affichage des polices dans l'éditeur ; si aucune police n'est sélectionnée, la police du thème est utilisée","newNameFile": "Le nom du nouveau sous-document est","newNameSettingFile": "Le nom du nouveau document est",diff --git a/app/appearance/langs/he.json b/app/appearance/langs/he.jsonindex b615fb47c6..10e1d35c8d 100644--- a/app/appearance/langs/he.json+++ b/app/appearance/langs/he.json@@ -1,4 +1,8 @@{+ "applicationZoom": "שינוי קנה המידה של ממשק היישום",+ "increaseEditorFontSize": "הגדלת גודל הגופן בעורך",+ "decreaseEditorFontSize": "הקטנת גודל הגופן בעורך",+ "resetEditorFontSize": "איפוס גודל הגופן בעורך","monospaceFont": "גופן ברוחב קבוע","monospaceFontTip": "משמש לבלוקי קוד, קוד בתוך שורה ומספרי שורות בבלוקי קוד; כאשר לא נבחר גופן, נעשה שימוש בגופן של ערכת הנושא","manageColors": "ניהול צבעים",@@ -1827,8 +1831,6 @@"kernelFault2": "אם הבעיה נמשכת, אנא חפש עזרה או דווח על באגים <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">כאן</a>","fontSize": "גודל גופן","fontSizeTip": "גודל הגופן ברירת מחדל הוא <code class='fn__code'>16</code>, פעולה זו משפיעה על העורך ותצוגת גודל הגופן בפורמט PDF/HTML המיוצא",- "fontSizeScrollZoom": "כוונן במהירות את גודל גופן העורך",- "fontSizeScrollZoomTip": "לאחר הפעלת אפשרות זו, לחץ והחזק <code class='fn__code'>Ctrl</code> כדי לכוון במהירות את גודל הגופן באמצעות גלגל העכבר או מחוות קירוב במסלול","font1": "הגדרה זו משפיעה רק על תצוגת הגופן בעורך, כאשר לא נבחר גופן נעשה שימוש בגופן של ערכת הנושא","newNameFile": "השם של המסמך המשני החדש הוא","newNameSettingFile": "השם של המסמך החדש הוא",diff --git a/app/appearance/langs/hi.json b/app/appearance/langs/hi.jsonindex 7b4a58bd66..ef0b30b148 100644--- a/app/appearance/langs/hi.json+++ b/app/appearance/langs/hi.json@@ -1,4 +1,8 @@{+ "applicationZoom": "एप्लिकेशन इंटरफ़ेस ज़ूम",+ "increaseEditorFontSize": "संपादक फ़ॉन्ट का आकार बढ़ाएँ",+ "decreaseEditorFontSize": "संपादक फ़ॉन्ट का आकार घटाएँ",+ "resetEditorFontSize": "संपादक फ़ॉन्ट का आकार रीसेट करें","monospaceFont": "मोनोस्पेस फ़ॉन्ट","monospaceFontTip": "कोड ब्लॉक, इनलाइन कोड और कोड ब्लॉक पंक्ति संख्याओं के लिए उपयोग किया जाता है; कोई फ़ॉन्ट चयनित न होने पर थीम का फ़ॉन्ट उपयोग किया जाता है","manageColors": "रंग प्रबंधित करें",@@ -1827,8 +1831,6 @@"kernelFault2": "यदि समस्या बनी रहती है, तो कृपया <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">यहां</a> सहायता खोजें या बग रिपोर्ट करें","fontSize": "फ़ॉन्ट आकार","fontSizeTip": "डिफ़ॉल्ट फ़ॉन्ट आकार <code class='fn__code'>16</code> है, यह सेटिंग संपादक और निर्यात PDF/HTML फ़ॉन्ट आकार प्रदर्शन को प्रभावित करती है",- "fontSizeScrollZoom": "संपादक फ़ॉन्ट आकार त्वरित समायोजित करें",- "fontSizeScrollZoomTip": "सक्षम होने पर, माउस व्हील या ट्रैकपैड पिंच-ज़ूम जेस्चर के माध्यम से फ़ॉन्ट आकार त्वरित समायोजित करने के लिए <code class='fn__code'>Ctrl</code> दबाकर रखें","font1": "यह सेटिंग केवल संपादक में फ़ॉन्ट प्रदर्शन को प्रभावित करती है; कोई फ़ॉन्ट न चुने जाने पर थीम का फ़ॉन्ट उपयोग किया जाता है","newNameFile": "नए उप-दस्तावेज़ का नाम है","newNameSettingFile": "नए दस्तावेज़ का नाम है",diff --git a/app/appearance/langs/id.json b/app/appearance/langs/id.jsonindex 2120bc7051..1c1c6802a2 100644--- a/app/appearance/langs/id.json+++ b/app/appearance/langs/id.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Zoom antarmuka aplikasi",+ "increaseEditorFontSize": "Perbesar ukuran font editor",+ "decreaseEditorFontSize": "Perkecil ukuran font editor",+ "resetEditorFontSize": "Atur ulang ukuran font editor","monospaceFont": "Font monospace","monospaceFontTip": "Digunakan untuk blok kode, kode sebaris, dan nomor baris blok kode; jika tidak ada font yang dipilih, font bawaan tema akan digunakan","manageColors": "Kelola warna",@@ -1827,8 +1831,6 @@"kernelFault2": "Jika masalah berlanjut, silakan cari bantuan atau laporkan bug <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">di sini</a>","fontSize": "Ukuran Font","fontSizeTip": "Ukuran font default adalah <code class='fn__code'>16</code>, pengaturan ini memengaruhi tampilan ukuran font editor dan PDF/HTML yang diekspor",- "fontSizeScrollZoom": "Sesuaikan ukuran font editor dengan cepat",- "fontSizeScrollZoomTip": "Saat diaktifkan, tahan <code class='fn__code'>Ctrl</code> untuk menyesuaikan ukuran font dengan cepat melalui roda mouse atau gerakan cubit-perbesar trackpad","font1": "Pengaturan ini hanya memengaruhi tampilan font di editor; jika tidak ada font yang dipilih, font tema akan digunakan","newNameFile": "Nama sub-dokumen baru adalah","newNameSettingFile": "Nama dokumen baru adalah",diff --git a/app/appearance/langs/it.json b/app/appearance/langs/it.jsonindex 4fe227b38e..cac31ac812 100644--- a/app/appearance/langs/it.json+++ b/app/appearance/langs/it.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Zoom dell’interfaccia dell’applicazione",+ "increaseEditorFontSize": "Aumenta la dimensione del carattere dell’editor",+ "decreaseEditorFontSize": "Riduci la dimensione del carattere dell’editor",+ "resetEditorFontSize": "Ripristina la dimensione del carattere dell’editor","monospaceFont": "Carattere monospaziato","monospaceFontTip": "Utilizzato per blocchi di codice, codice in linea e numeri di riga dei blocchi di codice; se non è selezionato alcun carattere, viene utilizzato quello del tema","manageColors": "Gestisci colori",@@ -1827,8 +1831,6 @@"kernelFault2": "Se il problema persiste, cerca aiuto o segnala bug <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">qui</a>","fontSize": "Dimensione del font","fontSizeTip": "La dimensione predefinita del font è <code class='fn__code'>16</code>, questa impostazione influisce sulla visualizzazione del font nell'editor e nei file PDF/HTML esportati",- "fontSizeScrollZoom": "Regola rapidamente la dimensione del font dell'editor",- "fontSizeScrollZoomTip": "Dopo l'abilitazione, tieni premuto <code class='fn__code'>Ctrl</code> per regolare rapidamente la dimensione del font usando la rotella del mouse o il gesto pinch-zoom sul trackpad","font1": "Questa impostazione influisce solo sulla visualizzazione dei caratteri nell'editor; se non è selezionato alcun carattere, viene utilizzato quello del tema","newNameFile": "Il nome del nuovo sottodocumento è","newNameSettingFile": "Il nome del nuovo documento è",diff --git a/app/appearance/langs/ja.json b/app/appearance/langs/ja.jsonindex bc89073024..7ab6d5afa1 100644--- a/app/appearance/langs/ja.json+++ b/app/appearance/langs/ja.json@@ -1,4 +1,8 @@{+ "applicationZoom": "アプリケーションインターフェースのズーム",+ "increaseEditorFontSize": "エディタのフォントサイズを拡大",+ "decreaseEditorFontSize": "エディタのフォントサイズを縮小",+ "resetEditorFontSize": "エディタのフォントサイズをリセット","monospaceFont": "等幅フォント","monospaceFontTip": "コードブロック、インラインコード、コードブロックの行番号に使用され、フォントが選択されていない場合はテーマのフォントが使用されます","manageColors": "色を管理",@@ -1827,8 +1831,6 @@"kernelFault2": "問題が解決しない場合は<a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">こちら</a>でヘルプやバグレポートを探してください","fontSize": "フォントサイズ","fontSizeTip": "デフォルトのフォントサイズは <code class='fn__code'>16</code> です。この設定はエディタとエクスポートされる PDF/HTML のフォントサイズに影響します",- "fontSizeScrollZoom": "エディターのフォントサイズの素早い調整",- "fontSizeScrollZoomTip": "<code class='fn__code'>Ctrl</code> を押しながらマウスホイールやトラックパッドのピンチズーム操作でフォントサイズを調整します","font1": "この設定はエディタ内のフォント表示にのみ影響します。フォントを選択していない場合はテーマのフォントを使用します","newNameFile": "選択内容をタイトルで参照してサブドキュメントを作成する","newNameSettingFile": "選択内容をタイトルで参照してサブドキュメントを作成する",diff --git a/app/appearance/langs/ko.json b/app/appearance/langs/ko.jsonindex ff5d6eefb8..3a5a2140c2 100644--- a/app/appearance/langs/ko.json+++ b/app/appearance/langs/ko.json@@ -1,4 +1,8 @@{+ "applicationZoom": "애플리케이션 인터페이스 확대/축소",+ "increaseEditorFontSize": "편집기 글꼴 크기 늘리기",+ "decreaseEditorFontSize": "편집기 글꼴 크기 줄이기",+ "resetEditorFontSize": "편집기 글꼴 크기 초기화","monospaceFont": "고정폭 글꼴","monospaceFontTip": "코드 블록, 인라인 코드 및 코드 블록 줄 번호에 사용되며 글꼴을 선택하지 않으면 테마의 글꼴을 사용합니다","manageColors": "색상 관리",@@ -1827,8 +1831,6 @@"kernelFault2": "문제가 지속되면 도움을 요청하거나 <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">여기</a>에서 버그를 신고하세요","fontSize": "글꼴 크기","fontSizeTip": "기본 글꼴 크기는 <code class='fn__code'>16</code>이며, 이 설정은 에디터 및 내보낸 PDF/HTML 글꼴 크기 표시에 영향을 줍니다",- "fontSizeScrollZoom": "편집기 글꼴 크기 빠르게 조정",- "fontSizeScrollZoomTip": "활성화하면 <code class='fn__code'>Ctrl</code>을 누른 상태에서 마우스 휠 또는 트랙패드 핀치 줌 제스처를 통해 글꼴 크기를 빠르게 조정할 수 있습니다","font1": "이 설정은 에디터의 글꼴 표시에만 영향을 줍니다. 선택한 글꼴이 없으면 테마의 글꼴을 사용합니다","newNameFile": "새 하위 문서의 이름은","newNameSettingFile": "새 문서의 이름은",diff --git a/app/appearance/langs/nl.json b/app/appearance/langs/nl.jsonindex 3f99fcf6cf..4b42120ac0 100644--- a/app/appearance/langs/nl.json+++ b/app/appearance/langs/nl.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Zoom van toepassingsinterface",+ "increaseEditorFontSize": "Lettergrootte van editor vergroten",+ "decreaseEditorFontSize": "Lettergrootte van editor verkleinen",+ "resetEditorFontSize": "Lettergrootte van editor herstellen","monospaceFont": "Monospacelettertype","monospaceFontTip": "Wordt gebruikt voor codeblokken, inlinecode en regelnummers van codeblokken; als er geen lettertype is geselecteerd, wordt het lettertype van het thema gebruikt","manageColors": "Kleuren beheren",@@ -1827,8 +1831,6 @@"kernelFault2": "Blijft het probleem aanhouden? Zoek hulp of meld bugs <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">hier</a>","fontSize": "Lettergrootte","fontSizeTip": "Standaard <code class='fn__code'>16</code>; beinvloedt editor en PDF/HTML",- "fontSizeScrollZoom": "Editorlettergrootte snel aanpassen",- "fontSizeScrollZoomTip": "Ingeschakeld: houd <code class='fn__code'>Ctrl</code> ingedrukt en gebruik muiswiel of touchpad-knijpbeweging om lettergrootte snel aan te passen","font1": "Deze instelling heeft alleen invloed op de lettertypeweergave in de editor; als er geen lettertype is geselecteerd, wordt het lettertype van het thema gebruikt","newNameFile": "Naam subdocument","newNameSettingFile": "Naam document",diff --git a/app/appearance/langs/pl.json b/app/appearance/langs/pl.jsonindex efdfb4675b..c21b25a3ba 100644--- a/app/appearance/langs/pl.json+++ b/app/appearance/langs/pl.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Powiększenie interfejsu aplikacji",+ "increaseEditorFontSize": "Zwiększ rozmiar czcionki edytora",+ "decreaseEditorFontSize": "Zmniejsz rozmiar czcionki edytora",+ "resetEditorFontSize": "Przywróć rozmiar czcionki edytora","monospaceFont": "Czcionka o stałej szerokości","monospaceFontTip": "Używana w blokach kodu, kodzie wbudowanym i numerach wierszy bloków kodu; gdy nie wybrano czcionki, używana jest czcionka motywu","manageColors": "Zarządzaj kolorami",@@ -1827,8 +1831,6 @@"kernelFault2": "Jeśli problem będzie się powtarzał, poszukaj pomocy lub zgłoś błąd <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">tutaj</a>","fontSize": "Rozmiar czcionki","fontSizeTip": "Domyślny rozmiar czcionki to <code class='fn__code'>16</code>, to ustawienie wpływa na wyświetlanie rozmiaru czcionki w edytorze i wyeksportowanych plikach PDF/HTML",- "fontSizeScrollZoom": "Szybka regulacja rozmiaru czcionki edytora",- "fontSizeScrollZoomTip": "Po włączeniu, przytrzymaj <code class='fn__code'>Ctrl</code>, aby szybko dostosować rozmiar czcionki za pomocą kółka myszy lub gestu powiększenia gładzika","font1": "To ustawienie wpływa tylko na wyświetlanie czcionek w edytorze; gdy nie wybrano żadnej czcionki, używana jest czcionka motywu","newNameFile": "Nazwa nowego poddokumentu to","newNameSettingFile": "Nazwa nowego dokumentu to",diff --git a/app/appearance/langs/pt-BR.json b/app/appearance/langs/pt-BR.jsonindex 23c587e230..9d1c355141 100644--- a/app/appearance/langs/pt-BR.json+++ b/app/appearance/langs/pt-BR.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Zoom da interface do aplicativo",+ "increaseEditorFontSize": "Aumentar o tamanho da fonte do editor",+ "decreaseEditorFontSize": "Diminuir o tamanho da fonte do editor",+ "resetEditorFontSize": "Redefinir o tamanho da fonte do editor","monospaceFont": "Fonte monoespaçada","monospaceFontTip": "Usada em blocos de código, código em linha e números de linha de blocos de código; quando nenhuma fonte é selecionada, a fonte do tema é usada","manageColors": "Gerenciar cores",@@ -1827,8 +1831,6 @@"kernelFault2": "Se o problema persistir, procure ajuda ou relate bugs <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">aqui</a>","fontSize": "Tamanho da Fonte","fontSizeTip": "O tamanho padrão da fonte é <code class='fn__code'>16</code>, esta configuração afeta o editor e a exibição do tamanho da fonte em PDF/HTML exportados",- "fontSizeScrollZoom": "Ajuste rápido do tamanho da fonte do editor",- "fontSizeScrollZoomTip": "Quando ativado, pressione e segure <code class='fn__code'>Ctrl</code> para ajustar rapidamente o tamanho da fonte através da roda do mouse ou gesto de pinça no trackpad","font1": "Esta configuração afeta apenas a exibição de fontes no editor; quando nenhuma fonte é selecionada, a fonte do tema é usada","newNameFile": "O nome do novo subdocumento é","newNameSettingFile": "O nome do novo documento é",diff --git a/app/appearance/langs/ru.json b/app/appearance/langs/ru.jsonindex 8d2543b106..288f2f8760 100644--- a/app/appearance/langs/ru.json+++ b/app/appearance/langs/ru.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Масштаб интерфейса приложения",+ "increaseEditorFontSize": "Увеличить размер шрифта редактора",+ "decreaseEditorFontSize": "Уменьшить размер шрифта редактора",+ "resetEditorFontSize": "Сбросить размер шрифта редактора","monospaceFont": "Моноширинный шрифт","monospaceFontTip": "Используется для блоков кода, встроенного кода и номеров строк в блоках кода; если шрифт не выбран, используется шрифт темы","manageColors": "Управление цветами",@@ -1827,8 +1831,6 @@"kernelFault2": "Если проблема сохраняется, пожалуйста, обратитесь за помощью или сообщите об ошибках <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">здесь</a>","fontSize": "Размер шрифта","fontSizeTip": "Размер шрифта по умолчанию <code class='fn__code'>16</code>, эта настройка влияет на отображение размера шрифта редактора и экспортированных PDF/HTML",- "fontSizeScrollZoom": "Быстрое изменение размера шрифта редактора",- "fontSizeScrollZoomTip": "После включения удерживайте <code class='fn__code'>Ctrl</code>, чтобы быстро изменять размер шрифта с помощью колесика мыши или жеста увеличения на трекпаде","font1": "Эта настройка влияет только на отображение шрифтов в редакторе; если шрифт не выбран, используется шрифт темы","newNameFile": "Имя нового поддокумента - это","newNameSettingFile": "Имя нового документа - это",diff --git a/app/appearance/langs/sk.json b/app/appearance/langs/sk.jsonindex e443c2a786..7e56be53e1 100644--- a/app/appearance/langs/sk.json+++ b/app/appearance/langs/sk.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Priblíženie rozhrania aplikácie",+ "increaseEditorFontSize": "Zväčšiť písmo editora",+ "decreaseEditorFontSize": "Zmenšiť písmo editora",+ "resetEditorFontSize": "Obnoviť veľkosť písma editora","monospaceFont": "Písmo s pevnou šírkou","monospaceFontTip": "Používa sa pre bloky kódu, riadkový kód a čísla riadkov v blokoch kódu; ak nie je vybrané žiadne písmo, použije sa písmo témy","manageColors": "Spravovať farby",@@ -1827,8 +1831,6 @@"kernelFault2": "Ak problém pretrváva, vyhľadajte pomoc alebo nahláste chyby <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">tu</a>","fontSize": "Veľkosť písma","fontSizeTip": "Predvolená veľkosť písma je <code class='fn__code'>16</code>, toto nastavenie ovplyvňuje editor a veľkosť písma exportovaného PDF/HTML",- "fontSizeScrollZoom": "Rýchla zmena veľkosti písma editora",- "fontSizeScrollZoomTip": "Po zapnutí podržte <code class='fn__code'>Ctrl</code> pre rýchle nastavenie veľkosti písma pomocou kolieska myši alebo gesta pinch-zoom na trackpade","font1": "Toto nastavenie ovplyvňuje iba zobrazenie písiem v editore; ak nie je vybraté žiadne písmo, použije sa písmo témy","newNameFile": "Názov nového poddokumentu","newNameSettingFile": "Názov nového dokumentu",diff --git a/app/appearance/langs/th.json b/app/appearance/langs/th.jsonindex 0e0f5834e7..af0abaa80b 100644--- a/app/appearance/langs/th.json+++ b/app/appearance/langs/th.json@@ -1,4 +1,8 @@{+ "applicationZoom": "ซูมส่วนติดต่อแอปพลิเคชัน",+ "increaseEditorFontSize": "เพิ่มขนาดแบบอักษรของตัวแก้ไข",+ "decreaseEditorFontSize": "ลดขนาดแบบอักษรของตัวแก้ไข",+ "resetEditorFontSize": "รีเซ็ตขนาดแบบอักษรของตัวแก้ไข","monospaceFont": "แบบอักษรความกว้างคงที่","monospaceFontTip": "ใช้สำหรับบล็อกโค้ด โค้ดในบรรทัด และหมายเลขบรรทัดของบล็อกโค้ด หากไม่ได้เลือกแบบอักษร ระบบจะใช้แบบอักษรของธีม","manageColors": "จัดการสี",@@ -1827,8 +1831,6 @@"kernelFault2": "หากปัญหายังคงอยู่ โปรดขอความช่วยเหลือหรือรายงานข้อบกพร่อง<a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">ที่นี่</a>","fontSize": "ขนาดฟอนต์","fontSizeTip": "ขนาดฟอนต์เริ่มต้นคือ <code class='fn__code'>16</code> การตั้งค่านี้มีผลต่อการแสดงขนาดฟอนต์ในตัวแก้ไขและ PDF/HTML ที่ส่งออก",- "fontSizeScrollZoom": "ปรับขนาดฟอนต์ตัวแก้ไขอย่างรวดเร็ว",- "fontSizeScrollZoomTip": "เมื่อเปิดใช้งาน ให้กด <code class='fn__code'>Ctrl</code> ค้างไว้แล้วใช้ล้อเลื่อนเมาส์หรือการบีบนิ้วบนทัชแพดเพื่อปรับขนาดฟอนต์อย่างรวดเร็ว","font1": "การตั้งค่านี้มีผลเฉพาะการแสดงฟอนต์ในตัวแก้ไข เมื่อไม่ได้เลือกฟอนต์ ระบบจะใช้ฟอนต์ของธีม","newNameFile": "ชื่อของเอกสารย่อยใหม่คือ","newNameSettingFile": "ชื่อของเอกสารใหม่คือ",diff --git a/app/appearance/langs/tr.json b/app/appearance/langs/tr.jsonindex 7211f112a1..9ed5d24b45 100644--- a/app/appearance/langs/tr.json+++ b/app/appearance/langs/tr.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Uygulama arayüzü yakınlaştırması",+ "increaseEditorFontSize": "Düzenleyici yazı tipi boyutunu artır",+ "decreaseEditorFontSize": "Düzenleyici yazı tipi boyutunu azalt",+ "resetEditorFontSize": "Düzenleyici yazı tipi boyutunu sıfırla","monospaceFont": "Eş aralıklı yazı tipi","monospaceFontTip": "Kod blokları, satır içi kod ve kod bloğu satır numaraları için kullanılır; hiçbir yazı tipi seçilmediğinde temanın yazı tipi kullanılır","manageColors": "Renkleri yönet",@@ -1827,8 +1831,6 @@"kernelFault2": "Sorun devam ederse <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">buradan</a> yardım al veya hata bildir","fontSize": "Yazı boyutu","fontSizeTip": "Varsayılan yazı boyutu <code class='fn__code'>16</code>. Bu ayar düzenleyici ve dışa aktarılan PDF/HTML yazı boyutunu etkiler",- "fontSizeScrollZoom": "Editör yazı boyutunu hızlı ayarla",- "fontSizeScrollZoomTip": "<code class='fn__code'>Ctrl</code> tuşunu basılı tutarak fare tekerleğiyle veya dokunmatik yüzeyle hızlıca yazı boyutunu ayarlayabilirsin","font1": "Bu ayar yalnızca düzenleyicideki yazı tipi görünümünü etkiler; hiçbir yazı tipi seçilmediğinde tema yazı tipi kullanılır","newNameFile": "Yeni alt belgenin adı","newNameSettingFile": "Yeni belgenin adı",diff --git a/app/appearance/langs/uk.json b/app/appearance/langs/uk.jsonindex 05a901b39a..24b5a56ec3 100644--- a/app/appearance/langs/uk.json+++ b/app/appearance/langs/uk.json@@ -1,4 +1,8 @@{+ "applicationZoom": "Масштаб інтерфейсу застосунку",+ "increaseEditorFontSize": "Збільшити розмір шрифту редактора",+ "decreaseEditorFontSize": "Зменшити розмір шрифту редактора",+ "resetEditorFontSize": "Скинути розмір шрифту редактора","monospaceFont": "Моноширинний шрифт","monospaceFontTip": "Використовується для блоків коду, вбудованого коду та номерів рядків у блоках коду; якщо шрифт не вибрано, використовується шрифт теми","manageColors": "Керування кольорами",@@ -1827,8 +1831,6 @@"kernelFault2": "Якщо проблема не зникає, зверніться по допомогу або повідомте про помилку <a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">тут</a>","fontSize": "Розмір шрифту","fontSizeTip": "Типовий розмір шрифту <code class='fn__code'>16</code>; це налаштування впливає на відображення шрифту в редакторі та при експорті PDF/HTML",- "fontSizeScrollZoom": "Швидке регулювання розміру шрифту редактора",- "fontSizeScrollZoomTip": "Якщо увімкнено, утримуйте <code class='fn__code'>Ctrl</code>, щоб швидко змінювати розмір шрифту коліщатком миші або жестом масштабування на тачпаді","font1": "Це налаштування впливає лише на відображення шрифтів у редакторі; якщо шрифт не вибрано, використовується шрифт теми","newNameFile": "Назва нового піддокумента","newNameSettingFile": "Назва нового документа",diff --git a/app/appearance/langs/zh-CN.json b/app/appearance/langs/zh-CN.jsonindex 853751548d..e4a1f52175 100644--- a/app/appearance/langs/zh-CN.json+++ b/app/appearance/langs/zh-CN.json@@ -1,4 +1,8 @@{+ "applicationZoom": "应用界面缩放",+ "increaseEditorFontSize": "增大编辑器字号",+ "decreaseEditorFontSize": "减小编辑器字号",+ "resetEditorFontSize": "恢复默认编辑器字号","monospaceFont": "等宽字体","monospaceFontTip": "用于代码块、行内代码和代码块行号,不选择任何字体时使用主题自带字体","manageColors": "管理颜色",@@ -1827,8 +1831,6 @@"kernelFault2": "如果仍然出现该问题,请在<a href=\"https://ld246.com/article/1649901726096\" target=\"_blank\">这里</a>寻求帮助或者报告缺陷","fontSize": "字号","fontSizeTip": "字号默认为 <code class='fn__code'>16</code>,该设置影响编辑器和导出 PDF/HTML 字体大小显示",- "fontSizeScrollZoom": "快速调整编辑器字号",- "fontSizeScrollZoomTip": "启用后按住 <code class='fn__code'>Ctrl</code> 通过鼠标滚轮或触摸板双指缩放手势可快速调整字号","font1": "该设置仅影响编辑器内字体显示,不选择任何字体时则使用主题自带字体","newNameFile": "新建子文档名为","newNameSettingFile": "新建文档名为",diff --git a/app/appearance/langs/zh-TW.json b/app/appearance/langs/zh-TW.jsonindex 8b9c02594b..64330403eb 100644--- a/app/appearance/langs/zh-TW.json+++ b/app/appearance/langs/zh-TW.json@@ -1,4 +1,8 @@{+ "applicationZoom": "應用程式介面縮放",+ "increaseEditorFontSize": "增大編輯器字型大小",+ "decreaseEditorFontSize": "減小編輯器字型大小",+ "resetEditorFontSize": "恢復預設編輯器字型大小","monospaceFont": "等寬字型","monospaceFontTip": "用於程式碼區塊、行內程式碼與程式碼區塊行號,未選擇任何字型時使用主題內建字型","manageColors": "管理顏色",@@ -1827,8 +1831,6 @@"kernelFault2": "如果仍然出現該問題,請在<a href=\"https://liuyun.io/article/1686530886208\" target=\"_blank\">這裡</a>尋求幫助或者報告缺陷","fontSize": "字型大小","fontSizeTip": "字號預設為 <code class='fn__code'>16</code>,該設置影響編輯器和導出 PDF/HTML 字體大小顯示",- "fontSizeScrollZoom": "快速調整編輯器字號",- "fontSizeScrollZoomTip": "啟用後按住 <code class='fn__code'>Ctrl</code> 通過鼠標滾輪或觸摸板雙指縮放手勢可快速調整字號","font1": "該設定僅影響編輯器內字體顯示,未選擇任何字體時則使用主題自帶字體","newNameFile": "新建子文件名為","newNameSettingFile": "新建文件名為",diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.syindex 5b0181338f..0340361d21 100644--- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.sy+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.sy@@ -7,7 +7,7 @@"id": "20200924100950-9op5xi1","title": "Shortcuts","type": "doc",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -39,7 +39,7 @@"HeadingLevel": 2,"Properties": {"id": "20201227133532-44ubczo",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -63,7 +63,7 @@"Properties": {"colgroup": "||","id": "20210106154101-qrojg1b",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -2663,6 +2663,60 @@}]},+ {+ "Type": "NodeTableRow",+ "Data": "tr",+ "Children": [+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Increase/decrease/reset editor font size"+ }+ ]+ },+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "-"+ }+ ]+ },+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "Go to "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "Settings"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "Shortcuts"+ },+ {+ "Type": "NodeText",+ "Data": " to configure"+ }+ ]+ }+ ]+ },{"Type": "NodeTableRow","Data": "tr",diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.syindex 7eeada152e..2ad038868a 100644--- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.sy+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.sy@@ -7,7 +7,7 @@"id": "20200813004551-gm0pbn1","title": "快捷键","type": "doc",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -39,7 +39,7 @@"HeadingLevel": 2,"Properties": {"id": "20240112150737-e41yt1y",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -59,7 +59,7 @@"Properties": {"colgroup": "||","id": "20201227133317-ovwnk1y",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -2661,6 +2661,60 @@}]},+ {+ "Type": "NodeTableRow",+ "Data": "tr",+ "Children": [+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "增大/减小/恢复默认编辑器字号"+ }+ ]+ },+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "-"+ }+ ]+ },+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "可前往 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "设置"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "快捷键"+ },+ {+ "Type": "NodeText",+ "Data": " 中配置"+ }+ ]+ }+ ]+ },{"Type": "NodeTableRow","Data": "tr",diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.syindex 3bd269d35a..2a8fed46e0 100644--- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.sy+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.sy@@ -7,7 +7,7 @@"id": "20211226122549-jktxego","title": "快捷鍵","type": "doc",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -39,7 +39,7 @@"HeadingLevel": 2,"Properties": {"id": "20211226122652-0t4c1qf",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -59,7 +59,7 @@"Properties": {"colgroup": "||","id": "20211226122652-4e9hm9i",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -2655,6 +2655,60 @@}]},+ {+ "Type": "NodeTableRow",+ "Data": "tr",+ "Children": [+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "增大/減小/恢復預設編輯器字型大小"+ }+ ]+ },+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "-"+ }+ ]+ },+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "可前往 "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "設定"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "快捷鍵"+ },+ {+ "Type": "NodeText",+ "Data": " 中配置"+ }+ ]+ }+ ]+ },{"Type": "NodeTableRow","Data": "tr",diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xsbxokr.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xsbxokr.syindex b00cf973b0..e1d6dc15da 100644--- a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xsbxokr.sy+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xsbxokr.sy@@ -9,7 +9,7 @@"id": "20240530101000-xsbxokr","title": "ショートカット","type": "doc",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -42,7 +42,7 @@"Properties": {"ID": "20240530101000-0wo4ch4","id": "20240530101000-9imgmgf",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -62,7 +62,7 @@"Properties": {"colgroup": "||","id": "20240530101000-5z0uafx",- "updated": "20260820123010"+ "updated": "20260827000000"},"Children": [{@@ -2662,6 +2662,60 @@}]},+ {+ "Type": "NodeTableRow",+ "Data": "tr",+ "Children": [+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "エディタのフォントサイズを拡大/縮小/リセット"+ }+ ]+ },+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "-"+ }+ ]+ },+ {+ "Type": "NodeTableCell",+ "Data": "td",+ "Children": [+ {+ "Type": "NodeText",+ "Data": "設定場所:"+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "設定"+ },+ {+ "Type": "NodeText",+ "Data": " - "+ },+ {+ "Type": "NodeTextMark",+ "TextMarkType": "kbd",+ "TextMarkTextContent": "ショートカット"+ },+ {+ "Type": "NodeText",+ "Data": " で設定できます"+ }+ ]+ }+ ]+ },{"Type": "NodeTableRow","Data": "tr",diff --git a/app/src/boot/globalEvent/command/global.ts b/app/src/boot/globalEvent/command/global.tsindex f7a7e16eed..6ea6460b7a 100644--- a/app/src/boot/globalEvent/command/global.ts+++ b/app/src/boot/globalEvent/command/global.ts@@ -42,6 +42,7 @@ import {unsplitCurrentWnd, unsplitWnd} from "../../../menus/tab";import {openFile} from "../../../editor/util";import {fetchPost} from "../../../util/fetch";import {sanitizeClosedTabs, setStorageVal} from "../../../protyle/util/compatibility";+import {adjustEditorFontSize} from "../../../util/editorFontSize";export const globalCommand = (command: string, app: App) => {/// #if MOBILE@@ -429,6 +430,15 @@ export const globalCommand = (command: string, app: App) => {/// #endifswitch (command) {+ case "increaseEditorFontSize":+ adjustEditorFontSize("increase");+ return true;+ case "decreaseEditorFontSize":+ adjustEditorFontSize("decrease");+ return true;+ case "resetEditorFontSize":+ adjustEditorFontSize("reset");+ return true;case "dailyNote":newDailyNote(app);return true;diff --git a/app/src/boot/globalEvent/command/panel.ts b/app/src/boot/globalEvent/command/panel.tsindex bb6ce118df..67af4254db 100644--- a/app/src/boot/globalEvent/command/panel.ts+++ b/app/src/boot/globalEvent/command/panel.ts@@ -64,7 +64,8 @@ export const commandPanel = (app: App) => {/// #if MOBILEkeys = ["addToDatabase", "fileTree", "outline", "bookmark", "tag", "dailyNote", "inbox", "backlinks","dataHistory", "editReadonly", "enter", "enterBack", "globalSearch", "lockScreen", "mainMenu", "move",- "newFile", "recentDocs", "replace", "riffCard", "search", "selectOpen1", "syncNow"];+ "newFile", "recentDocs", "replace", "riffCard", "search", "selectOpen1", "syncNow",+ "increaseEditorFontSize", "decreaseEditorFontSize", "resetEditorFontSize"];/// #elsekeys = ["addToDatabase", "fileTree", "outline", "bookmark", "tag", "dailyNote", "inbox", "backlinks","graphView", "globalGraph", "closeAll", "closeLeft", "closeOthers", "closeRight", "closeTab",@@ -73,7 +74,8 @@ export const commandPanel = (app: App) => {"goToTab5", "goToTab6", "goToTab7", "goToTab8", "goToTab9", "goToTabNext", "goToTabPrev", "lockScreen","mainMenu", "move", "newFile", "recentDocs", "replace", "riffCard", "search", "selectOpen1", "syncNow","splitLR", "splitMoveB", "splitMoveR", "splitTB", "switchLeftDock", "switchRightDock", "switchBottomDock",- "tabToWindow", "stickSearch", "toggleDock", "unsplitAll", "unsplit", "recentClosed"];+ "tabToWindow", "stickSearch", "toggleDock", "unsplitAll", "unsplit", "recentClosed",+ "increaseEditorFontSize", "decreaseEditorFontSize", "resetEditorFontSize"];/// #if !BROWSERkeys.push("toggleWin");/// #endifdiff --git a/app/src/boot/globalEvent/keydown.ts b/app/src/boot/globalEvent/keydown.tsindex 69d33f7e13..0fe92cba6d 100644--- a/app/src/boot/globalEvent/keydown.ts+++ b/app/src/boot/globalEvent/keydown.ts@@ -76,6 +76,16 @@ import {onlyProtyleCommand} from "./command/protyle";import {cancelDrag} from "./dragover";import {bindAVPanelKeydown} from "../../protyle/render/av/keydown";import {formatPainter} from "../../protyle/toolbar/FormatPainter";+import {adjustEditorFontSize, type TEditorFontSizeAction} from "../../util/editorFontSize";++const EDITOR_FONT_SIZE_COMMANDS: Array<{+ command: "increaseEditorFontSize" | "decreaseEditorFontSize" | "resetEditorFontSize",+ action: TEditorFontSizeAction,+}> = [+ {command: "increaseEditorFontSize", action: "increase"},+ {command: "decreaseEditorFontSize", action: "decrease"},+ {command: "resetEditorFontSize", action: "reset"},+];const switchDialogEvent = (app: App, event: MouseEvent) => {event.preventDefault();@@ -1435,6 +1445,13 @@ export const windowKeyDown = (app: App, event: KeyboardEvent) => {commandPanel(app);return;}+ const editorFontSizeCommand = EDITOR_FONT_SIZE_COMMANDS.find((item) =>+ matchHotKey(window.siyuan.config.keymap.general[item.command].custom, event));+ if (editorFontSizeCommand) {+ event.preventDefault();+ adjustEditorFontSize(editorFontSizeCommand.action);+ return;+ }if (matchHotKey(window.siyuan.config.keymap.general.editReadonly.custom, event)) {event.preventDefault();editorConfigApi.patch("editor.readOnly", !window.siyuan.config.editor.readOnly);diff --git a/app/src/config/tabs/appearanceTab.ts b/app/src/config/tabs/appearanceTab.tsindex 8b807fe1da..29ff4f28e2 100644--- a/app/src/config/tabs/appearanceTab.ts+++ b/app/src/config/tabs/appearanceTab.ts@@ -26,6 +26,7 @@ import {editorConfigApi} from "./editorRuntime";import {appearanceThemeModeValue, saveThemeMode} from "./appearanceRuntime";import {upDownHint} from "../../util/upDownHint";import {isThemeFrontendSupported} from "../../util/themeCompatibility";+import {setEditorFontSize} from "../../util/editorFontSize";import {ICustomFont,invalidateCustomFonts,@@ -101,18 +102,13 @@ const registerAppearanceContentGroup = (tab: SettingTabBuilder) => {group.range("editor.fontSize", {title: window.siyuan.languages.editorFontSize,desc: window.siyuan.languages.fontSizeTip,- min: 9,- max: 72,+ min: Constants.EDITOR_FONT_SIZE_MIN,+ max: Constants.EDITOR_FONT_SIZE_MAX,step: 1,- save: (value) => editorConfigApi.patch("editor.fontSize", value),- });- /// #if !MOBILE- group.switch("editor.fontSizeScrollZoom", {- title: window.siyuan.languages.fontSizeScrollZoom,- desc: window.siyuan.languages.fontSizeScrollZoomTip,- save: (value) => editorConfigApi.patch("editor.fontSizeScrollZoom", value),+ save: (value) => {+ setEditorFontSize(value as number);+ },});- /// #endifgroup.switch("editor.fullWidth", {title: window.siyuan.languages.fullWidth,desc: window.siyuan.languages.fullWidthTip,diff --git a/app/src/constants.ts b/app/src/constants.tsindex 251ef691fe..b9290033dd 100644--- a/app/src/constants.ts+++ b/app/src/constants.ts@@ -96,6 +96,9 @@ export abstract class Constants {public static readonly SIZE_UNDO = 64;public static readonly SIZE_TITLE = 512;public static readonly SIZE_EDITOR_WIDTH = 760;+ public static readonly EDITOR_FONT_SIZE_DEFAULT = 16;+ public static readonly EDITOR_FONT_SIZE_MIN = 9;+ public static readonly EDITOR_FONT_SIZE_MAX = 72;public static readonly SIZE_ZOOM = [{zoom: 0.67,@@ -469,6 +472,9 @@ export abstract class Constants {general: {mainMenu: {default: "⌥\\", custom: "⌥\\"},commandPanel: {default: "⌥⇧P", custom: "⌥⇧P"},+ increaseEditorFontSize: {default: "", custom: ""},+ decreaseEditorFontSize: {default: "", custom: ""},+ resetEditorFontSize: {default: "", custom: ""},editReadonly: {default: "⇧⌘G", custom: "⇧⌘G"},syncNow: {default: "F9", custom: "F9"},enterBack: {default: "⌥←", custom: "⌥←"},diff --git a/app/src/menus/workspace.ts b/app/src/menus/workspace.tsindex 6a9e9f77ab..0f12e51fcc 100644--- a/app/src/menus/workspace.ts+++ b/app/src/menus/workspace.ts@@ -7,7 +7,14 @@ import {getOpenNotebookCount, originalPath, pathPosix, useShell} from "../util/pimport {fetchNewDailyNote, mountHelp, newDailyNote} from "../util/mount";import {fetchPost} from "../util/fetch";import {Constants} from "../constants";-import {isInAndroid, isInHarmony, isInMobileApp, isIPad, setStorageVal, writeText} from "../protyle/util/compatibility";+import {+ isInAndroid,+ isInHarmony,+ isInMobileApp,+ isIPad,+ setStorageVal,+ writeText,+} from "../protyle/util/compatibility";import {openCard} from "../card/openCard";import {openSetting} from "../config";import {getAllDocks} from "../layout/getAll";@@ -30,6 +37,7 @@ import * as dayjs from "dayjs";import {upDownHint} from "../util/upDownHint";import {openDataMigration} from "./dataMigration";import {openLink} from "../editor/openLink";+import {adjustEditorFontSize} from "../util/editorFontSize";const editLayout = (layoutName?: string) => {const dialog = new Dialog({@@ -140,6 +148,99 @@ const togglePinDock = (id: "switchLeftDock" | "switchRightDock" | "switchBottomD};};+const getApplicationZoomSubMenu = () => {+ const zoom = window.siyuan.storage[Constants.LOCAL_ZOOM];+ const index = Constants.SIZE_ZOOM.findIndex((item) => item.zoom === zoom);+ const setApplicationZoom = (type: "zoomIn" | "zoomOut" | "restore") => {+ void import("../layout/topBar").then(({setZoom}) => setZoom(type));+ };+ return [+ {+ id: "applicationZoomIn",+ label: window.siyuan.languages.zoomIn,+ icon: "iconZoomIn",+ accelerator: "⌘=",+ disabled: index >= Constants.SIZE_ZOOM.length - 1,+ click: () => setApplicationZoom("zoomIn"),+ },+ {+ id: "applicationZoomOut",+ label: window.siyuan.languages.zoomOut,+ icon: "iconZoomOut",+ accelerator: "⌘-",+ disabled: index <= 0,+ click: () => setApplicationZoom("zoomOut"),+ },+ {+ id: "resetApplicationZoom",+ icon: "iconRefresh",+ label: window.siyuan.languages.reset,+ accelerator: "⌘0",+ disabled: zoom === 1,+ click: () => setApplicationZoom("restore"),+ },+ ] as IMenu[];+};++const getEditorFontSizeSubMenu = () => [+ {+ id: "increaseEditorFontSize",+ label: window.siyuan.languages.increaseEditorFontSize,+ icon: "iconZoomIn",+ accelerator: window.siyuan.config.keymap.general.increaseEditorFontSize.custom,+ disabled: window.siyuan.config.editor.fontSize >= Constants.EDITOR_FONT_SIZE_MAX ||+ window.siyuan.config.readonly,+ click: () => {+ adjustEditorFontSize("increase");+ },+ },+ {+ id: "decreaseEditorFontSize",+ label: window.siyuan.languages.decreaseEditorFontSize,+ icon: "iconZoomOut",+ accelerator: window.siyuan.config.keymap.general.decreaseEditorFontSize.custom,+ disabled: window.siyuan.config.editor.fontSize <= Constants.EDITOR_FONT_SIZE_MIN ||+ window.siyuan.config.readonly,+ click: () => {+ adjustEditorFontSize("decrease");+ },+ },+ {+ icon:"iconRefresh",+ id: "resetEditorFontSize",+ label: window.siyuan.languages.resetEditorFontSize,+ accelerator: window.siyuan.config.keymap.general.resetEditorFontSize.custom,+ disabled: window.siyuan.config.editor.fontSize === Constants.EDITOR_FONT_SIZE_DEFAULT ||+ window.siyuan.config.readonly,+ click: () => {+ adjustEditorFontSize("reset");+ },+ },+] as IMenu[];++const getZoomSubMenu = () => {+ const submenu: IMenu[] = [];+ if (!isBrowser()) {+ submenu.push({+ id: "applicationZoom",+ iconHTML: "",+ type: "submenu",+ label: window.siyuan.languages.applicationZoom,+ accelerator: Math.round(window.siyuan.storage[Constants.LOCAL_ZOOM] * 100) + "%",+ submenu: getApplicationZoomSubMenu(),+ });+ }+ submenu.push({+ id: "editorFontSize",+ iconHTML: "",+ type: "submenu",+ label: window.siyuan.languages.editorFontSize,+ accelerator: window.siyuan.config.editor.fontSize + " px",+ submenu: getEditorFontSizeSubMenu(),+ });+ return submenu;+};+export const workspaceMenu = (app: App, rect: DOMRect) => {if (!window.siyuan.menus.menu.element.classList.contains("fn__none") &&window.siyuan.menus.menu.element.getAttribute("data-name") === Constants.MENU_BAR_WORKSPACE) {@@ -454,6 +555,13 @@ export const workspaceMenu = (app: App, rect: DOMRect) => {submenu: layoutSubMenu}).element);}+ window.siyuan.menus.menu.append(new MenuItem({+ id: "zoomControls",+ label: window.siyuan.languages.zoom,+ icon: "iconZoomIn",+ type: "submenu",+ submenu: getZoomSubMenu(),+ }).element);window.siyuan.menus.menu.append(new MenuItem({id: "separator_1", type: "separator"}).element);if (!window.siyuan.config.readonly) {if (getOpenNotebookCount() < 2) {diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.tsindex 9f9dc40d28..003ae3c376 100644--- a/app/src/plugin/API.ts+++ b/app/src/plugin/API.ts@@ -34,6 +34,7 @@ import type {MobileFiles} from "../mobile/dock/MobileFiles";import type {Files} from "../layout/dock/Files";import {ProtyleMethod} from "./ProtyleMethod";import {openEmojiPanel} from "../emoji";+import {adjustEditorFontSize, setEditorFontSize} from "../util/editorFontSize";let openTab;let openWindow;@@ -347,6 +348,8 @@ export const API = {Constants,showMessage,hideMessage,+ adjustEditorFontSize,+ setEditorFontSize,fetchPost,fetchSyncPost,fetchGet,diff --git a/app/src/protyle/ui/initUI.ts b/app/src/protyle/ui/initUI.tsindex a089dfc0f1..c0dd326474 100644--- a/app/src/protyle/ui/initUI.ts+++ b/app/src/protyle/ui/initUI.ts@@ -2,12 +2,6 @@ import {setEditMode} from "../util/setEditMode";import {scrollEvent} from "../scroll/event";import {isMobile} from "../../util/functions";import {Constants} from "../../constants";-import {isMac} from "../util/compatibility";-import {setInlineStyle} from "../../util/assets";-import {fetchPost} from "../../util/fetch";-import {lineNumberRender} from "../render/highlightRender";-import {hideMessage, showMessage} from "../../dialog/message";-import {genUUID} from "../../util/genID";import {getContenteditableElement, getEmbedGutterOperationContext, getLastBlock} from "../wysiwyg/getBlock";import {genEmptyElement, genHeadingElement} from "../../block/util";import {transaction} from "../wysiwyg/transaction";@@ -107,51 +101,6 @@ export const initUI = (protyle: IProtyle) => {setEditMode(protyle, protyle.options.mode);document.execCommand("DefaultParagraphSeparator", false, "p");- let wheelTimeout: number;- const wheelId = genUUID();- const isMacOS = isMac();- protyle.contentElement.addEventListener("mousewheel", (event: WheelEvent) => {- if (!window.siyuan.config.editor.fontSizeScrollZoom || (isMacOS && !event.metaKey) || (!isMacOS && !event.ctrlKey) || event.deltaX !== 0) {- return;- }- event.stopPropagation();- if (event.deltaY < 0) {- if (window.siyuan.config.editor.fontSize < 72) {- window.siyuan.config.editor.fontSize++;- } else {- return;- }- } else if (event.deltaY > 0) {- if (window.siyuan.config.editor.fontSize > 9) {- window.siyuan.config.editor.fontSize--;- } else {- return;- }- }- setInlineStyle();- clearTimeout(wheelTimeout);- showMessage(`${window.siyuan.languages.fontSize} ${window.siyuan.config.editor.fontSize}px<span class="fn__space"></span>-<button class="b3-button b3-button--white">${window.siyuan.languages.reset} 16px</button>`, undefined, undefined, wheelId);- wheelTimeout = window.setTimeout(() => {- fetchPost("/api/setting/setEditor", window.siyuan.config.editor, (response) => {- window.siyuan.config.editor = response.data;- });- protyle.wysiwyg.element.querySelectorAll(".code-block .protyle-linenumber__rows").forEach((block: HTMLElement) => {- lineNumberRender(block.parentElement);- });- document.querySelector(`#message [data-id="${wheelId}"] button`)?.addEventListener("click", () => {- window.siyuan.config.editor.fontSize = 16;- setInlineStyle();- fetchPost("/api/setting/setEditor", window.siyuan.config.editor, (response) => {- window.siyuan.config.editor = response.data;- });- hideMessage(wheelId);- protyle.wysiwyg.element.querySelectorAll(".code-block .protyle-linenumber__rows").forEach((block: HTMLElement) => {- lineNumberRender(block.parentElement);- });- });- }, Constants.TIMEOUT_LOAD);- }, {passive: true});protyle.contentElement.addEventListener("mousedown", (event: MouseEvent & { target: HTMLElement }) => {if (event.button !== 0 || !event.shiftKey) {return;diff --git a/app/src/types/config.d.ts b/app/src/types/config.d.tsindex b70fd7447a..efa8d39605 100644--- a/app/src/types/config.d.ts+++ b/app/src/types/config.d.ts@@ -687,10 +687,6 @@ declare namespace Config {* The font size used in the editor*/fontSize: number;- /**- * Whether to enable the use of the mouse wheel to adjust the font size of the editor- */- fontSizeScrollZoom: boolean;/*** Whether the editor uses maximum width*/@@ -1352,6 +1348,9 @@ declare namespace Config {export interface IKeymapGeneral extends IKeys {mainMenu: IKey;commandPanel: IKey;+ increaseEditorFontSize: IKey;+ decreaseEditorFontSize: IKey;+ resetEditorFontSize: IKey;editReadonly: IKey;syncNow: IKey;enterBack: IKey;diff --git a/app/src/util/editorFontSize.ts b/app/src/util/editorFontSize.tsnew file mode 100644index 0000000000..08202067f4--- /dev/null+++ b/app/src/util/editorFontSize.ts@@ -0,0 +1,85 @@+import {Constants} from "../constants";+import {hideMessage, showMessage} from "../dialog/message";+import {getAllEditor} from "../layout/getAll";+import {lineNumberRender} from "../protyle/render/highlightRender";+import {editorConfigApi} from "../config/tabs/editorRuntime";+import {refreshHeadingNumberMeasurements, setInlineStyle} from "./assets";+import {+ normalizeEditorFontSize,+ resolveEditorFontSize,+ type TEditorFontSizeAction,+} from "./editorFontSizeCore";++export {type TEditorFontSizeAction} from "./editorFontSizeCore";++export interface IEditorFontSizeOptions {+ notify?: boolean;+}++const MESSAGE_ID = "editorFontSize";+let saveTimeout: number;++const syncEditorFontSizeControls = (fontSize: number) => {+ const settingElement = document.getElementById("editor.fontSize") as HTMLInputElement | null;+ if (settingElement) {+ settingElement.value = fontSize.toString();+ settingElement.parentElement?.setAttribute("aria-label", settingElement.value);+ }+ document.querySelectorAll<HTMLElement>("[data-editor-font-size-value]").forEach((element) => {+ element.textContent = fontSize + " px";+ });+ document.querySelectorAll<HTMLButtonElement>("[data-editor-font-size-action]").forEach((element) => {+ const action = element.dataset.editorFontSizeAction;+ element.disabled = (action === "decrease" && fontSize <= Constants.EDITOR_FONT_SIZE_MIN) ||+ (action === "increase" && fontSize >= Constants.EDITOR_FONT_SIZE_MAX) ||+ (action === "reset" && fontSize === Constants.EDITOR_FONT_SIZE_DEFAULT) ||+ window.siyuan.config.readonly;+ });+};++const refreshEditorFontSize = async () => {+ await setInlineStyle();+ refreshHeadingNumberMeasurements();+ getAllEditor().forEach((editor) => {+ editor.protyle.wysiwyg.element.querySelectorAll<HTMLElement>(".code-block .protyle-linenumber__rows")+ .forEach((element) => lineNumberRender(element.parentElement));+ });+};++const showEditorFontSizeMessage = (fontSize: number) => {+ showMessage(window.siyuan.languages.editorFontSize + " " + fontSize + "px<span class=\"fn__space\"></span>" ++ "<button class=\"b3-button b3-button--white\">" + window.siyuan.languages.resetEditorFontSize + "</button>",+ undefined, undefined, MESSAGE_ID);+ document.querySelector<HTMLButtonElement>("#message [data-id=\"" + MESSAGE_ID + "\"] button")+ ?.addEventListener("click", () => {+ setEditorFontSize(Constants.EDITOR_FONT_SIZE_DEFAULT);+ hideMessage(MESSAGE_ID);+ });+};++export const setEditorFontSize = (fontSize: number, options: IEditorFontSizeOptions = {}) => {+ if (window.siyuan.config.readonly || !Number.isFinite(fontSize)) {+ return window.siyuan.config.editor.fontSize;+ }+ const nextFontSize = normalizeEditorFontSize(fontSize);+ if (nextFontSize === window.siyuan.config.editor.fontSize) {+ syncEditorFontSizeControls(nextFontSize);+ return nextFontSize;+ }+ window.siyuan.config.editor.fontSize = nextFontSize;+ syncEditorFontSizeControls(nextFontSize);+ void refreshEditorFontSize();+ window.clearTimeout(saveTimeout);+ saveTimeout = window.setTimeout(() => {+ editorConfigApi.patch("editor.fontSize", window.siyuan.config.editor.fontSize);+ }, Constants.TIMEOUT_LOAD);+ if (options.notify) {+ showEditorFontSizeMessage(nextFontSize);+ }+ return nextFontSize;+};++export const adjustEditorFontSize = (action: TEditorFontSizeAction, options: IEditorFontSizeOptions = {}) =>+ setEditorFontSize(resolveEditorFontSize(window.siyuan.config.editor.fontSize, action), {+ notify: options.notify ?? true,+ });diff --git a/app/src/util/editorFontSizeCore.test.ts b/app/src/util/editorFontSizeCore.test.tsnew file mode 100644index 0000000000..1dd7e0bf65--- /dev/null+++ b/app/src/util/editorFontSizeCore.test.ts@@ -0,0 +1,34 @@+import * as assert from "node:assert/strict";+import test from "node:test";++Object.assign(globalThis, {+ NODE_ENV: "test",+ SIYUAN_VERSION: "test",+});++const loadEditorFontSizeCore = async () => {+ const [{Constants}, core] = await Promise.all([+ import("../constants"),+ import("./editorFontSizeCore"),+ ]);+ return {Constants, ...core};+};++test("normalizes editor font sizes to integer boundaries", async () => {+ const {Constants, normalizeEditorFontSize} = await loadEditorFontSizeCore();+ assert.equal(normalizeEditorFontSize(8), Constants.EDITOR_FONT_SIZE_MIN);+ assert.equal(normalizeEditorFontSize(72.8), Constants.EDITOR_FONT_SIZE_MAX);+ assert.equal(normalizeEditorFontSize(16.4), 16);+ assert.equal(normalizeEditorFontSize(16.5), 17);+});++test("adjusts and resets editor font sizes", async () => {+ const {Constants, resolveEditorFontSize} = await loadEditorFontSizeCore();+ assert.equal(resolveEditorFontSize(16, "increase"), 17);+ assert.equal(resolveEditorFontSize(16, "decrease"), 15);+ assert.equal(resolveEditorFontSize(Constants.EDITOR_FONT_SIZE_MAX, "increase"),+ Constants.EDITOR_FONT_SIZE_MAX);+ assert.equal(resolveEditorFontSize(Constants.EDITOR_FONT_SIZE_MIN, "decrease"),+ Constants.EDITOR_FONT_SIZE_MIN);+ assert.equal(resolveEditorFontSize(42, "reset"), Constants.EDITOR_FONT_SIZE_DEFAULT);+});diff --git a/app/src/util/editorFontSizeCore.ts b/app/src/util/editorFontSizeCore.tsnew file mode 100644index 0000000000..1d719a8883--- /dev/null+++ b/app/src/util/editorFontSizeCore.ts@@ -0,0 +1,18 @@+import {Constants} from "../constants";++export type TEditorFontSizeAction = "increase" | "decrease" | "reset";++export const normalizeEditorFontSize = (fontSize: number) => Math.min(+ Constants.EDITOR_FONT_SIZE_MAX,+ Math.max(Constants.EDITOR_FONT_SIZE_MIN, Math.round(fontSize)),+);++export const resolveEditorFontSize = (fontSize: number, action: TEditorFontSizeAction) => {+ if (action === "increase") {+ return normalizeEditorFontSize(fontSize + 1);+ }+ if (action === "decrease") {+ return normalizeEditorFontSize(fontSize - 1);+ }+ return Constants.EDITOR_FONT_SIZE_DEFAULT;+};diff --git a/kernel/conf/editor.go b/kernel/conf/editor.goindex 8d85aa589b..62cb5ccdf3 100644--- a/kernel/conf/editor.go+++ b/kernel/conf/editor.go@@ -47,7 +47,7 @@ type Editor struct {AllowSVGScript bool `json:"allowSVGScript"` // 允许执行 SVG 内脚本AllowHTMLBLockScript bool `json:"allowHTMLBLockScript"` // 允许执行 HTML 内容中的脚本FontSize int `json:"fontSize"` // 字体大小- FontSizeScrollZoom bool `json:"fontSizeScrollZoom"` // 字体大小是否支持滚轮缩放+ FontSizeScrollZoom bool `json:"fontSizeScrollZoom"` // 保留用于配置兼容,前端不再使用FontFamily string `json:"fontFamily"` // 首选字体(兼容旧版本)FontWeight int `json:"fontWeight"` // 首选字体字重(兼容旧版本)FontFamilyDisplay string `json:"fontFamilyDisplay"` // 设置面板中展示的字体名称(与 FontFamily/FontWeight 对应,可选)