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/8171

Vanessa204eed2e9969
diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts
index d24e1bb60b..6a37880465 100644
--- a/app/src/config/bazaar.ts
+++ b/app/src/config/bazaar.ts
@@ -172,6 +172,7 @@ export const bazaar = {
repoHash: item.repoHash,
downloaded: false,
};
+ const fundingKey = Object.keys(item.fundingUrl)[0];
return `<div data-obj='${JSON.stringify(dataObj)}' class="b3-card${hide ? " fn__none" : ""}${item.current ? " b3-card--current" : ""}">
<div class="b3-card__img"><img src="${item.previewURLThumb}"/></div>
<div class="b3-card__info fn__flex">
@@ -183,6 +184,7 @@ export const bazaar = {
<span class="fn__flex-center">${item.downloads}</span>
</div>
<div class="b3-card__actions">
+ ${fundingKey ? `<a target="_blank" href="${item.fundingUrl[fundingKey]}" class="b3-tooltips b3-tooltips__ne block__icon block__icon--show" aria-label="${fundingKey}"><svg><use xlink:href="#iconHeart"></use></svg></a>` : ""}
<div class="fn__flex-1"></div>
<span class="b3-tooltips b3-tooltips__nw block__icon block__icon--show${item.installed ? "" : " fn__none"}" data-type="uninstall" aria-label="${window.siyuan.languages.uninstall}">
<svg><use xlink:href="#iconTrashcan"></use></svg>
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index 93a535d2d4..3231de8db2 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -701,4 +701,5 @@ declare interface IBazaarItem {
hInstallSize: string
hInstallDate: string
hUpdated: string
+ fundingUrl: IObject
}