Skip to content

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

:sparkles: https://github.com/siyuan-note/siyuan/issues/2004

Vanessad0307c472dd5
diff --git a/app/appearance/icons/ant/icon.js b/app/appearance/icons/ant/icon.js
index 68292b0213..85e3f4671b 100644
--- a/app/appearance/icons/ant/icon.js
+++ b/app/appearance/icons/ant/icon.js
@@ -1,5 +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="iconLiandi" viewBox="0 0 32 32">
+ <path fill="#d23f31" d="M5.787 17.226h17.033l5.954 9.528c0.47 0.752 0.003 1.361-1.042 1.361h-15.141z"></path>
+ <path fill="#3b3e43" d="M10.74 3.927h17.033c1.045 0 1.512 0.609 1.042 1.361l-5.954 9.528h-19.872l6.379-10.209c0.235-0.376 0.849-0.681 1.372-0.681z"></path>
+ <path fill="#3b3e43" d="M2.953 17.226h2.839l6.804 10.889h-1.892c-0.523 0-1.137-0.305-1.372-0.681z"></path>
+ </symbol>
<symbol id="iconRiffCard" viewBox="0 0 32 32">
<path d="M12.472 31.5l1.765-12.142h-6.286q-0.474 0-0.689-0.431t0-0.818l10.549-17.61h1.765l-1.765 12.099h6.2q0.474 0 0.71 0.431t0.022 0.818l-10.506 17.653z"></path>
</symbol>
diff --git a/app/appearance/icons/ant/icon.json b/app/appearance/icons/ant/icon.json
index 436b01bc9d..371aaed15a 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.9.0"
+ "version": "1.10.0"
}
diff --git a/app/appearance/icons/index.html b/app/appearance/icons/index.html
index 60d14c11fc..f50186d3a1 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="#iconLiandi"></use>
+ </svg>
+ iconLiandi
+ </div>
<div>
<svg>
<use xlink:href="#iconRiffCard"></use>
diff --git a/app/appearance/icons/material/icon.js b/app/appearance/icons/material/icon.js
index 632902c709..57a9871e3b 100644
--- a/app/appearance/icons/material/icon.js
+++ b/app/appearance/icons/material/icon.js
@@ -1,5 +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="iconLiandi" viewBox="0 0 32 32">
+ <path fill="#d23f31" d="M5.787 17.226h17.033l5.954 9.528c0.47 0.752 0.003 1.361-1.042 1.361h-15.141z"></path>
+ <path fill="#3b3e43" d="M10.74 3.927h17.033c1.045 0 1.512 0.609 1.042 1.361l-5.954 9.528h-19.872l6.379-10.209c0.235-0.376 0.849-0.681 1.372-0.681z"></path>
+ <path fill="#3b3e43" d="M2.953 17.226h2.839l6.804 10.889h-1.892c-0.523 0-1.137-0.305-1.372-0.681z"></path>
+ </symbol>
<symbol id="iconRiffCard" viewBox="0 0 32 32">
<path d="M12.472 31.5l1.765-12.142h-6.286q-0.474 0-0.689-0.431t0-0.818l10.549-17.61h1.765l-1.765 12.099h6.2q0.474 0 0.71 0.431t0.022 0.818l-10.506 17.653z"></path>
</symbol>
diff --git a/app/appearance/icons/material/icon.json b/app/appearance/icons/material/icon.json
index 8e5c576172..d636111221 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.9.0"
+ "version": "1.10.0"
}
diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts
index 1af6b3fb18..4a3c6b8dff 100644
--- a/app/src/protyle/breadcrumb/index.ts
+++ b/app/src/protyle/breadcrumb/index.ts
@@ -247,6 +247,15 @@ export class Breadcrumb {
netImg2LocalAssets(protyle);
}
}).element);
+ if (!needSubscribe()) {
+ window.siyuan.menus.menu.append(new MenuItem({
+ label: window.siyuan.languages.share2Liandi,
+ icon: "iconLiandi",
+ click() {
+ fetchPost("/api/export/export2Liandi", {id: protyle.block.parentID});
+ }
+ }).element);
+ }
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.optimizeTypography,
icon: "iconFormat",