Skip to content

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

:art: 集市支持已安装的包单独显示 https://github.com/siyuan-note/siyuan/issues/5678

Liang Ding0d71a61ddbcd
diff --git a/kernel/bazaar/icon.go b/kernel/bazaar/icon.go
index 27aa7d34e2..63aa12f74e 100644
--- a/kernel/bazaar/icon.go
+++ b/kernel/bazaar/icon.go
@@ -126,6 +126,7 @@ func InstalledIcons() (ret []*Icon) {
}
icon := &Icon{}
+ icon.Installed = true
icon.Name = iconConf["name"].(string)
icon.Author = iconConf["author"].(string)
icon.URL = iconConf["url"].(string)
diff --git a/kernel/bazaar/template.go b/kernel/bazaar/template.go
index 3dd4125120..4cb5e488ab 100644
--- a/kernel/bazaar/template.go
+++ b/kernel/bazaar/template.go
@@ -126,6 +126,7 @@ func InstalledTemplates() (ret []*Template) {
}
template := &Template{}
+ template.Installed = true
template.Name = templateConf["name"].(string)
template.Author = templateConf["author"].(string)
template.URL = templateConf["url"].(string)
diff --git a/kernel/bazaar/theme.go b/kernel/bazaar/theme.go
index 4098561ccf..c0c4cb2b34 100644
--- a/kernel/bazaar/theme.go
+++ b/kernel/bazaar/theme.go
@@ -128,6 +128,7 @@ func InstalledThemes() (ret []*Theme) {
}
theme := &Theme{}
+ theme.Installed = true
theme.Name = themeConf["name"].(string)
theme.Author = themeConf["author"].(string)
theme.URL = themeConf["url"].(string)
diff --git a/kernel/bazaar/widget.go b/kernel/bazaar/widget.go
index 796366eb8c..fbbd14447d 100644
--- a/kernel/bazaar/widget.go
+++ b/kernel/bazaar/widget.go
@@ -124,6 +124,7 @@ func InstalledWidgets() (ret []*Widget) {
}
widget := &Widget{}
+ widget.Installed = true
widget.Name = widgetConf["name"].(string)
widget.Author = widgetConf["author"].(string)
widget.URL = widgetConf["url"].(string)