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: 桌面端拖入文件时可选择 `使用 file:// 绝对路径并链接` 或 `复制为资源文件并插入` https://github.com/siyuan-note/siyuan/issues/5369
Liang Dingc5661c3f558e
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex e21ebcf837..c2cc580eb6 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -1,4 +1,6 @@{+ "copyInsertAsAssets": "Copy as asset and insert",+ "useFileProtoLink": "Use file:// absolute path and link","syncConfGuide1": "Initialize sync key","syncConfGuide2": "This key is used for data sync end-to-end encryption<br>The key is generated based on the password you enter, please remember the password","syncConfGuide3": "The cloud sync directory is used to store the encrypted data corresponding to the current workspace. The default name is <code>main</code>. If you only have one workspace to sync, use <code>main</code> directly",diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.jsonindex fb77ea4174..312c20ec1d 100644--- a/app/appearance/langs/es_ES.json+++ b/app/appearance/langs/es_ES.json@@ -1,4 +1,6 @@{+ "copyInsertAsAssets": "Copiar como archivo de activos e insertar",+ "useFileProtoLink": "Usar archivo:// ruta absoluta y enlace","syncConfGuide1": "Inicializar clave de sincronización","syncConfGuide2": "Esta clave se utiliza para el cifrado de extremo a extremo de sincronización de datos<br>La clave se genera en función de la contraseña que ingresa, recuerde la contraseña","syncConfGuide3": "El directorio de sincronización en la nube se utiliza para almacenar los datos cifrados correspondientes al espacio de trabajo actual. El nombre predeterminado es <code>main</code>. Si solo tiene un espacio de trabajo para sincronizar, agregue y use <code>main</code> directamente.",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex fb54adeab8..38fd026e14 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -1,4 +1,6 @@{+ "copyInsertAsAssets": "Copier en tant que fichier d'actif et insérer",+ "useFileProtoLink": "Utiliser file:// chemin absolu et lien","syncConfGuide1": "Initialiser la clé de synchronisation","syncConfGuide2": "Cette clé est utilisée pour le chiffrement de bout en bout de la synchronisation des données<br> La clé est générée en fonction du mot de passe que vous saisissez, veuillez vous souvenir du mot de passe","syncConfGuide3": "Le répertoire de synchronisation cloud est utilisé pour stocker les données chiffrées correspondant à l'espace de travail actuel. Le nom par défaut est <code>main</code>. Si vous n'avez qu'un seul espace de travail à synchroniser, ajoutez et utilisez <code>main</code> directement",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex 853547c55c..6df08bb48a 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -1,4 +1,6 @@{+ "copyInsertAsAssets": "複製為資源文件並插入",+ "useFileProtoLink": "使用 file:// 絕對路徑並鏈接","syncConfGuide1": "初始化同步密鑰","syncConfGuide2": "該密鑰用於數據同步端到端加密<br>密鑰基於你輸入的密碼生成,請務必牢記密碼","syncConfGuide3": "雲端同步目錄用於存放當前工作空間對應的加密數據,默認名稱為 <code>main</code>。如果你只有一個工作空間需要同步,直接使用 <code>main</code> 即可",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex f3275a19a9..c095d70b32 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -1,4 +1,6 @@{+ "copyInsertAsAssets": "复制为资源文件并插入",+ "useFileProtoLink": "使用 file:// 绝对路径并链接","syncConfGuide1": "初始化同步密钥","syncConfGuide2": "该密钥用于数据同步端到端加密<br>密钥基于你输入的密码生成,请务必牢记密码","syncConfGuide3": "云端同步目录用于存放当前工作空间对应的加密数据,默认名称为 <code>main</code>。如果你只有一个工作空间需要同步,直接使用 <code>main</code> 即可",diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 28e7bea476..f7693a1c3f 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -706,19 +706,19 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {if (isAllFile) {window.siyuan.menus.menu.remove();window.siyuan.menus.menu.append(new MenuItem({- label:window.siyuan.languages.upload,+ label:window.siyuan.languages.copyInsertAsAssets,icon:"iconUpload",click() {uploadLocalFiles(files, protyle);}}).element);window.siyuan.menus.menu.append(new MenuItem({- label:window.siyuan.languages.link,+ label:window.siyuan.languages.useFileProtoLink,icon:"iconLink",click() {let fileText = "";files.forEach((item) => {- fileText = `[${pathPosix().basename(item)}](${item})\n`;+ fileText = `[${pathPosix().basename(item)}](file://${item})\n`;});insertHTML(protyle.lute.SpinBlockDOM(fileText), protyle);}