mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 00:20:12 +01:00
🎨 改进集市已下载包的显示和更新 https://github.com/siyuan-note/siyuan/issues/5807
This commit is contained in:
parent
3473496a43
commit
99fdfd7966
2 changed files with 30 additions and 5 deletions
|
|
@ -21,7 +21,6 @@ import (
|
|||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/siyuan-note/siyuan/kernel/bazaar"
|
||||
"github.com/siyuan-note/siyuan/kernel/model"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
|
@ -56,7 +55,7 @@ func getInstalledWidget(c *gin.Context) {
|
|||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"packages": bazaar.InstalledWidgets(),
|
||||
"packages": model.InstalledWidgets(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -121,7 +120,7 @@ func getInstalledIcon(c *gin.Context) {
|
|||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"packages": bazaar.InstalledIcons(),
|
||||
"packages": model.InstalledIcons(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -188,7 +187,7 @@ func getInstalledTemplate(c *gin.Context) {
|
|||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"packages": bazaar.InstalledTemplates(),
|
||||
"packages": model.InstalledTemplates(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -254,7 +253,7 @@ func getInstalledTheme(c *gin.Context) {
|
|||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"packages": bazaar.InstalledThemes(),
|
||||
"packages": model.InstalledThemes(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue