mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 集市支持已安装的包单独显示 https://github.com/siyuan-note/siyuan/issues/5678
This commit is contained in:
parent
4585cff7e6
commit
af96e48589
2 changed files with 10 additions and 0 deletions
|
|
@ -51,6 +51,15 @@ func getBazaarWidget(c *gin.Context) {
|
|||
}
|
||||
}
|
||||
|
||||
func getInstalledWidget(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"packages": bazaar.InstalledWidgets(),
|
||||
}
|
||||
}
|
||||
|
||||
func installBazaarWidget(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue