mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 21:08:49 +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
|
|
@ -70,6 +70,7 @@ func Icons() (icons []*Icon) {
|
|||
icon.RepoHash = repoURLHash[1]
|
||||
icon.PreviewURL = util.BazaarOSSServer + "/package/" + repoURL + "/preview.png?imageslim"
|
||||
icon.PreviewURLThumb = util.BazaarOSSServer + "/package/" + repoURL + "/preview.png?imageView2/2/w/436/h/232"
|
||||
icon.IconURL = util.BazaarOSSServer + "/package/" + repoURL + "/icon.png"
|
||||
icon.Updated = repo["updated"].(string)
|
||||
icon.Stars = int(repo["stars"].(float64))
|
||||
icon.OpenIssues = int(repo["openIssues"].(float64))
|
||||
|
|
@ -131,6 +132,7 @@ func InstalledIcons() (ret []*Icon) {
|
|||
icon.RepoURL = icon.URL
|
||||
icon.PreviewURL = "/appearance/icons/" + dirName + "/preview.png"
|
||||
icon.PreviewURLThumb = "/appearance/icons/" + dirName + "/preview.png"
|
||||
icon.IconURL = "/appearance/icons/" + 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