mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🎨 集市支持已安装的包单独显示 https://github.com/siyuan-note/siyuan/issues/5678
This commit is contained in:
parent
7d39c6447e
commit
0d71a61ddb
4 changed files with 4 additions and 0 deletions
|
|
@ -126,6 +126,7 @@ func InstalledIcons() (ret []*Icon) {
|
||||||
}
|
}
|
||||||
|
|
||||||
icon := &Icon{}
|
icon := &Icon{}
|
||||||
|
icon.Installed = true
|
||||||
icon.Name = iconConf["name"].(string)
|
icon.Name = iconConf["name"].(string)
|
||||||
icon.Author = iconConf["author"].(string)
|
icon.Author = iconConf["author"].(string)
|
||||||
icon.URL = iconConf["url"].(string)
|
icon.URL = iconConf["url"].(string)
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,7 @@ func InstalledTemplates() (ret []*Template) {
|
||||||
}
|
}
|
||||||
|
|
||||||
template := &Template{}
|
template := &Template{}
|
||||||
|
template.Installed = true
|
||||||
template.Name = templateConf["name"].(string)
|
template.Name = templateConf["name"].(string)
|
||||||
template.Author = templateConf["author"].(string)
|
template.Author = templateConf["author"].(string)
|
||||||
template.URL = templateConf["url"].(string)
|
template.URL = templateConf["url"].(string)
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,7 @@ func InstalledThemes() (ret []*Theme) {
|
||||||
}
|
}
|
||||||
|
|
||||||
theme := &Theme{}
|
theme := &Theme{}
|
||||||
|
theme.Installed = true
|
||||||
theme.Name = themeConf["name"].(string)
|
theme.Name = themeConf["name"].(string)
|
||||||
theme.Author = themeConf["author"].(string)
|
theme.Author = themeConf["author"].(string)
|
||||||
theme.URL = themeConf["url"].(string)
|
theme.URL = themeConf["url"].(string)
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,7 @@ func InstalledWidgets() (ret []*Widget) {
|
||||||
}
|
}
|
||||||
|
|
||||||
widget := &Widget{}
|
widget := &Widget{}
|
||||||
|
widget.Installed = true
|
||||||
widget.Name = widgetConf["name"].(string)
|
widget.Name = widgetConf["name"].(string)
|
||||||
widget.Author = widgetConf["author"].(string)
|
widget.Author = widgetConf["author"].(string)
|
||||||
widget.URL = widgetConf["url"].(string)
|
widget.URL = widgetConf["url"].(string)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue