mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Add i18n settings in marketplace package https://github.com/siyuan-note/siyuan/issues/8177
This commit is contained in:
parent
089a8322c7
commit
f5f5a1d428
6 changed files with 34 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ func Plugins() (plugins []*Plugin) {
|
|||
plugin.IconURL = util.BazaarOSSServer + "/package/" + repoURL + "/icon.png"
|
||||
plugin.Funding = parseFunding(repo["package"].(map[string]interface{}))
|
||||
plugin.PreferredFunding = getPreferredFunding(plugin.Funding)
|
||||
plugin.PreferredDesc = getPreferredDesc(plugin.Description)
|
||||
plugin.Updated = repo["updated"].(string)
|
||||
plugin.Stars = int(repo["stars"].(float64))
|
||||
plugin.OpenIssues = int(repo["openIssues"].(float64))
|
||||
|
|
@ -142,6 +143,7 @@ func InstalledPlugins() (ret []*Plugin) {
|
|||
plugin.IconURL = "/plugins/" + dirName + "/icon.png"
|
||||
plugin.Funding = parseFunding(pluginConf)
|
||||
plugin.PreferredFunding = getPreferredFunding(plugin.Funding)
|
||||
plugin.PreferredDesc = getPreferredDesc(plugin.Description)
|
||||
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