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/10479
Vanessace5a6c4cb114
diff --git a/app/appearance/icons/ant/icon.js b/app/appearance/icons/ant/icon.jsindex e8d9caa909..741ca5d65a 100644--- a/app/appearance/icons/ant/icon.js+++ b/app/appearance/icons/ant/icon.js@@ -1,7 +1,10 @@document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg"><defs>+ <symbol id="iconCamera" viewBox="0 0 32 32">+ <path d="M28.070 7.359h-4.663l-1.111-3.114c-0.157-0.428-0.561-0.727-1.035-0.727-0 0-0.001 0-0.001 0h-10.52c-0.463 0-0.878 0.291-1.032 0.727l-1.114 3.114h-4.663c-1.516 0-2.743 1.228-2.743 2.743v15.636c0 1.516 1.228 2.743 2.743 2.743h24.14c1.516 0 2.743-1.228 2.743-2.743v-15.636c0-1.516-1.228-2.743-2.743-2.743zM28.344 25.738c0 0.151-0.123 0.274-0.274 0.274h-24.14c-0.151 0-0.274-0.123-0.274-0.274v-15.636c0-0.151 0.123-0.274 0.274-0.274h6.402l0.586-1.639 0.785-2.201h8.59l0.785 2.201 0.586 1.639h6.405c0.151 0 0.274 0.123 0.274 0.274v15.636zM16 12.022c-3.031 0-5.486 2.455-5.486 5.486s2.455 5.486 5.486 5.486 5.486-2.455 5.486-5.486-2.455-5.486-5.486-5.486zM16 20.801c-1.817 0-3.292-1.474-3.292-3.292s1.474-3.292 3.292-3.292 3.292 1.474 3.292 3.292-1.474 3.292-3.292 3.292z"></path>+ </symbol><symbol id="iconLinkOff" viewBox="0 0 32 32">- <path d="M25.667 21.933l-2-2.067q1.333-0.367 2.167-1.417t0.833-2.45q0-1.667-1.167-2.833t-2.833-1.167h-5.333v-2.667h5.333q2.767 0 4.717 1.95t1.95 4.717q0 1.9-0.983 3.5t-2.683 2.433zM21.133 17.333l-2.667-2.667h2.867v2.667h-0.2zM26.4 30.133l-24.533-24.533 1.867-1.867 24.533 24.533-1.867 1.867zM14.667 22.667h-5.333q-2.767 0-4.717-1.95t-1.95-4.717q0-2.3 1.4-4.1t3.6-2.367l2.467 2.467h-0.8q-1.667 0-2.833 1.167t-1.167 2.833 1.167 2.833 2.833 1.167h5.333v2.667zM10.667 17.333v-2.667h2.167l2.633 2.667h-4.8z"></path>+ <path d="M26.966 21.446l-2.179-2.251q1.452-0.399 2.36-1.543t0.908-2.669q0-1.816-1.271-3.086t-3.086-1.271h-5.81v-2.905h5.81q3.014 0 5.138 2.124t2.124 5.138q0 2.070-1.071 3.813t-2.923 2.651zM22.027 16.436l-2.905-2.905h3.123v2.905h-0.218zM27.764 30.379l-26.724-26.724 2.033-2.033 26.724 26.724-2.033 2.033zM14.983 22.245h-5.81q-3.014 0-5.138-2.124t-2.124-5.138q0-2.505 1.525-4.466t3.921-2.578l2.687 2.687h-0.871q-1.816 0-3.086 1.271t-1.271 3.086 1.271 3.086 3.086 1.271h5.81v2.905zM10.626 16.436v-2.905h2.36l2.868 2.905h-5.229z"></path></symbol><symbol id="iconSoftWrap" viewBox="0 0 32 32"><path d="M19.861 29.776l-6.493-6.493 6.493-6.493 2.457 2.545-2.194 2.194h4.212q1.272 0 2.172-0.899t0.899-2.172-0.899-2.172-2.172-0.899h-23.253v-3.51h23.253q2.764 0 4.673 1.909t1.909 4.673-1.909 4.673-4.673 1.909h-4.212l2.194 2.194-2.457 2.545zM1.083 25.038v-3.51h8.775v3.51h-8.775zM1.083 5.733v-3.51h28.079v3.51h-28.079z"></path>diff --git a/app/appearance/icons/ant/icon.json b/app/appearance/icons/ant/icon.jsonindex 2b3753c343..69add5d541 100644--- a/app/appearance/icons/ant/icon.json+++ b/app/appearance/icons/ant/icon.json@@ -2,5 +2,5 @@"name": "ant","author": "Vanessa","url": "https://github.com/Vanessa219",- "version": "1.30.0"+ "version": "1.31.0"}diff --git a/app/appearance/icons/index.html b/app/appearance/icons/index.htmlindex 115c39a7aa..ad69905054 100644--- a/app/appearance/icons/index.html+++ b/app/appearance/icons/index.html@@ -28,6 +28,12 @@<body><h2>SiYuan</h2><div class="fn__clear">+ <div>+ <svg>+ <use xlink:href="#iconCamera"></use>+ </svg>+ iconCamera+ </div><div><svg><use xlink:href="#iconSoftWrap"></use>diff --git a/app/appearance/icons/material/icon.js b/app/appearance/icons/material/icon.jsindex ec8d9995d0..1de198f089 100644--- a/app/appearance/icons/material/icon.js+++ b/app/appearance/icons/material/icon.js@@ -1,7 +1,10 @@document.body.insertAdjacentHTML('afterbegin', `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg"><defs>+ <symbol id="iconCamera" viewBox="0 0 32 32">+ <path d="M16 24.189q2.792 0 4.746-1.954t1.954-4.746-1.954-4.746-4.746-1.954-4.746 1.954-1.954 4.746 1.954 4.746 4.746 1.954zM16 21.211q-1.563 0-2.643-1.079t-1.079-2.643 1.079-2.643 2.643-1.079 2.643 1.079 1.079 2.643-1.079 2.643-2.643 1.079zM4.089 29.4q-1.228 0-2.103-0.875t-0.875-2.103v-17.867q0-1.228 0.875-2.103t2.103-0.875h4.69l2.754-2.978h8.933l2.754 2.978h4.69q1.228 0 2.103 0.875t0.875 2.103v17.867q0 1.228-0.875 2.103t-2.103 0.875h-23.822zM4.089 26.422h23.822v-17.867h-6.030l-2.717-2.978h-6.328l-2.717 2.978h-6.030v17.867z"></path>+ </symbol><symbol id="iconLinkOff" viewBox="0 0 32 32">- <path d="M25.667 21.933l-2-2.067q1.333-0.367 2.167-1.417t0.833-2.45q0-1.667-1.167-2.833t-2.833-1.167h-5.333v-2.667h5.333q2.767 0 4.717 1.95t1.95 4.717q0 1.9-0.983 3.5t-2.683 2.433zM21.133 17.333l-2.667-2.667h2.867v2.667h-0.2zM26.4 30.133l-24.533-24.533 1.867-1.867 24.533 24.533-1.867 1.867zM14.667 22.667h-5.333q-2.767 0-4.717-1.95t-1.95-4.717q0-2.3 1.4-4.1t3.6-2.367l2.467 2.467h-0.8q-1.667 0-2.833 1.167t-1.167 2.833 1.167 2.833 2.833 1.167h5.333v2.667zM10.667 17.333v-2.667h2.167l2.633 2.667h-4.8z"></path>+ <path d="M26.966 21.446l-2.179-2.251q1.452-0.399 2.36-1.543t0.908-2.669q0-1.816-1.271-3.086t-3.086-1.271h-5.81v-2.905h5.81q3.014 0 5.138 2.124t2.124 5.138q0 2.070-1.071 3.813t-2.923 2.651zM22.027 16.436l-2.905-2.905h3.123v2.905h-0.218zM27.764 30.379l-26.724-26.724 2.033-2.033 26.724 26.724-2.033 2.033zM14.983 22.245h-5.81q-3.014 0-5.138-2.124t-2.124-5.138q0-2.505 1.525-4.466t3.921-2.578l2.687 2.687h-0.871q-1.816 0-3.086 1.271t-1.271 3.086 1.271 3.086 3.086 1.271h5.81v2.905zM10.626 16.436v-2.905h2.36l2.868 2.905h-5.229z"></path></symbol><symbol id="iconSoftWrap" viewBox="0 0 32 32"><path d="M19.861 29.776l-6.493-6.493 6.493-6.493 2.457 2.545-2.194 2.194h4.212q1.272 0 2.172-0.899t0.899-2.172-0.899-2.172-2.172-0.899h-23.253v-3.51h23.253q2.764 0 4.673 1.909t1.909 4.673-1.909 4.673-4.673 1.909h-4.212l2.194 2.194-2.457 2.545zM1.083 25.038v-3.51h8.775v3.51h-8.775zM1.083 5.733v-3.51h28.079v3.51h-28.079z"></path>diff --git a/app/appearance/icons/material/icon.json b/app/appearance/icons/material/icon.jsonindex 65945dddcb..4f08936211 100644--- a/app/appearance/icons/material/icon.json+++ b/app/appearance/icons/material/icon.json@@ -2,5 +2,5 @@"name": "material","author": "Vanessa","url": "https://github.com/Vanessa219",- "version": "1.30.0"+ "version": "1.31.0"}diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex 07d1cd1409..7d2759d6f4 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -1,4 +1,5 @@{+ "insertPhoto": "Take a photo and insert it","relativeToToday": "Relative to today","current": "This","week": "week",diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.jsonindex 0666e1f395..e9c8fce4c8 100644--- a/app/appearance/langs/es_ES.json+++ b/app/appearance/langs/es_ES.json@@ -1,4 +1,5 @@{+ "insertPhoto": "Toma una foto e insértala","relativeToToday": "Relativa a hoy","current": "Esto","week": "semana",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex fbd446788a..283d0a0334 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -1,4 +1,5 @@{+ "insertPhoto": "Prendre une photo et l'insérer","relativeToToday": "Par rapport à aujourd'hui","current": "Ceci","week": "semaine",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex 8f22385b51..1867b2a5a0 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -1,4 +1,5 @@{+ "insertPhoto": "拍照並插入","relativeToToday": "相對於今天","current": "當前","week": "週",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex aa108c4fdc..02014ce2c2 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -1,4 +1,5 @@{+ "insertPhoto": "拍照并插入","relativeToToday": "相对于今天","current": "当前","week": "周",diff --git a/app/src/mobile/util/keyboardToolbar.ts b/app/src/mobile/util/keyboardToolbar.tsindex 6719fbf35c..ea05339aea 100644--- a/app/src/mobile/util/keyboardToolbar.ts+++ b/app/src/mobile/util/keyboardToolbar.ts@@ -12,6 +12,7 @@ import {getCurrentEditor} from "../editor";import {fontEvent, getFontNodeElements} from "../../protyle/toolbar/Font";import {hideElements} from "../../protyle/ui/hideElements";import {softEnter} from "../../protyle/wysiwyg/enter";+import {isInAndroid} from "../../protyle/util/compatibility";let renderKeyboardToolbarTimeout: number;let showUtil = false;@@ -209,6 +210,7 @@ const renderSlashMenu = (protyle: IProtyle, toolbarElement: Element) => {<div class="keyboard__slash-title"></div><div class="keyboard__slash-block">${getSlashItem(Constants.ZWSP + 3, "iconDownload", window.siyuan.languages.insertAsset + '<input class="b3-form__upload" type="file"' + (protyle.options.upload.accept ? (' multiple="' + protyle.options.upload.accept + '"') : "") + "/>", "true")}+ ${isInAndroid() ? getSlashItem(Constants.ZWSP + 3, "iconCamera", window.siyuan.languages.insertPhoto + '<input class="b3-form__upload" capture="user" type="file"' + (protyle.options.upload.accept ? (' multiple="' + protyle.options.upload.accept + '"') : "") + "/>", "true") : ""}${getSlashItem('<iframe sandbox="allow-forms allow-presentation allow-same-origin allow-scripts allow-modals" src="" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>', "iconLanguage", window.siyuan.languages.insertIframeURL, "true")}${getSlashItem("![]()", "iconImage", window.siyuan.languages.insertImgURL, "true")}${getSlashItem('<video controls="controls" src=""></video>', "iconVideo", window.siyuan.languages.insertVideoURL, "true")}