mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🎨 i18n Bazaar package
This commit is contained in:
parent
54dcde6b48
commit
2ceb5f36d5
8 changed files with 37 additions and 2 deletions
|
|
@ -75,6 +75,7 @@ func Themes() (ret []*Theme) {
|
|||
theme.IconURL = util.BazaarOSSServer + "/package/" + repoURL + "/icon.png"
|
||||
theme.Funding = repo.Package.Funding
|
||||
theme.PreferredFunding = getPreferredFunding(theme.Funding)
|
||||
theme.PreferredName = getPreferredName(theme.Package)
|
||||
theme.PreferredDesc = getPreferredDesc(theme.Description)
|
||||
theme.Updated = repo.Updated
|
||||
theme.Stars = repo.Stars
|
||||
|
|
@ -138,6 +139,7 @@ func InstalledThemes() (ret []*Theme) {
|
|||
theme.PreviewURLThumb = "/appearance/themes/" + dirName + "/preview.png"
|
||||
theme.IconURL = "/appearance/themes/" + dirName + "/icon.png"
|
||||
theme.PreferredFunding = getPreferredFunding(theme.Funding)
|
||||
theme.PreferredName = getPreferredName(theme.Package)
|
||||
theme.PreferredDesc = getPreferredDesc(theme.Description)
|
||||
info, statErr := os.Stat(filepath.Join(installPath, "README.md"))
|
||||
if nil != statErr {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue