mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 Add icon settings in marketplace package https://github.com/siyuan-note/siyuan/issues/8174
This commit is contained in:
parent
93dad2bfb2
commit
897e98bd0d
6 changed files with 11 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ func Widgets() (widgets []*Widget) {
|
|||
widget.RepoHash = repoURLHash[1]
|
||||
widget.PreviewURL = util.BazaarOSSServer + "/package/" + repoURL + "/preview.png?imageslim"
|
||||
widget.PreviewURLThumb = util.BazaarOSSServer + "/package/" + repoURL + "/preview.png?imageView2/2/w/436/h/232"
|
||||
widget.IconURL = util.BazaarOSSServer + "/package/" + repoURL + "/icon.png"
|
||||
widget.Updated = repo["updated"].(string)
|
||||
widget.Stars = int(repo["stars"].(float64))
|
||||
widget.OpenIssues = int(repo["openIssues"].(float64))
|
||||
|
|
@ -136,6 +137,7 @@ func InstalledWidgets() (ret []*Widget) {
|
|||
widget.RepoURL = widget.URL
|
||||
widget.PreviewURL = "/widgets/" + dirName + "/preview.png"
|
||||
widget.PreviewURLThumb = "/widgets/" + dirName + "/preview.png"
|
||||
widget.IconURL = "/widgets/" + dirName + "/icon.png"
|
||||
info, statErr := os.Stat(filepath.Join(installPath, "README.md"))
|
||||
if nil != statErr {
|
||||
logging.LogWarnf("stat install theme README.md failed: %s", statErr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue