mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Init plugin system https://github.com/siyuan-note/siyuan/issues/8041
This commit is contained in:
parent
109462a22f
commit
37e2528713
6 changed files with 15 additions and 0 deletions
|
|
@ -75,6 +75,16 @@ type Package struct {
|
|||
Downloads int `json:"downloads"`
|
||||
}
|
||||
|
||||
func parseFunding(conf map[string]interface{}) (ret *Funding) {
|
||||
ret = &Funding{}
|
||||
funding := conf["funding"].(map[string]interface{})
|
||||
ret.OpenCollective = funding["openCollective"].(string)
|
||||
ret.Patreon = funding["patreon"].(string)
|
||||
ret.GitHub = funding["github"].(string)
|
||||
ret.Custom = funding["custom"].([]string)
|
||||
return
|
||||
}
|
||||
|
||||
func PluginJSON(pluginDirName string) (ret map[string]interface{}, err error) {
|
||||
p := filepath.Join(util.DataDir, "plugins", pluginDirName, "plugin.json")
|
||||
if !gulu.File.IsExist(p) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue