mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 Init plugin system https://github.com/siyuan-note/siyuan/issues/8041
This commit is contained in:
parent
e1edc4684e
commit
b7ae8295a5
6 changed files with 66 additions and 8 deletions
|
|
@ -74,6 +74,8 @@ func Themes() (ret []*Theme) {
|
|||
theme.PreviewURL = util.BazaarOSSServer + "/package/" + repoURL + "/preview.png?imageslim"
|
||||
theme.PreviewURLThumb = util.BazaarOSSServer + "/package/" + repoURL + "/preview.png?imageView2/2/w/436/h/232"
|
||||
theme.IconURL = util.BazaarOSSServer + "/package/" + repoURL + "/icon.png"
|
||||
theme.Funding = parseFunding(repo["package"].(map[string]interface{}))
|
||||
theme.PreferredFunding = getPreferredFunding(theme.Funding)
|
||||
theme.Updated = repo["updated"].(string)
|
||||
theme.Stars = int(repo["stars"].(float64))
|
||||
theme.OpenIssues = int(repo["openIssues"].(float64))
|
||||
|
|
@ -145,6 +147,7 @@ func InstalledThemes() (ret []*Theme) {
|
|||
theme.PreviewURLThumb = "/appearance/themes/" + dirName + "/preview.png"
|
||||
theme.IconURL = "/appearance/themes/" + dirName + "/icon.png"
|
||||
theme.Funding = parseFunding(themeConf)
|
||||
theme.PreferredFunding = getPreferredFunding(theme.Funding)
|
||||
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