|
@@ -64,14 +64,14 @@ type Funding struct {
|
|
}
|
|
}
|
|
|
|
|
|
type Package struct {
|
|
type Package struct {
|
|
- Author string `json:"author"`
|
|
|
|
- URL string `json:"url"`
|
|
|
|
- Version string `json:"version"`
|
|
|
|
- DisplayName *DisplayName `json:"displayName"`
|
|
|
|
- Description *Description `json:"description"`
|
|
|
|
- Readme *Readme `json:"readme"`
|
|
|
|
- Funding *Funding `json:"funding"`
|
|
|
|
- I18N []string `json:"i18n"`
|
|
|
|
|
|
+ Author string `json:"author"`
|
|
|
|
+ URL string `json:"url"`
|
|
|
|
+ Version string `json:"version"`
|
|
|
|
+ MinAppVersion string `json:"minAppVersion"`
|
|
|
|
+ DisplayName *DisplayName `json:"displayName"`
|
|
|
|
+ Description *Description `json:"description"`
|
|
|
|
+ Readme *Readme `json:"readme"`
|
|
|
|
+ Funding *Funding `json:"funding"`
|
|
|
|
|
|
PreferredFunding string `json:"preferredFunding"`
|
|
PreferredFunding string `json:"preferredFunding"`
|
|
PreferredName string `json:"preferredName"`
|
|
PreferredName string `json:"preferredName"`
|
|
@@ -649,3 +649,7 @@ func getBazaarIndex() map[string]*bazaarPackage {
|
|
bazaarIndexCacheTime = now
|
|
bazaarIndexCacheTime = now
|
|
return cachedBazaarIndex
|
|
return cachedBazaarIndex
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// defaultMinAppVersion 如果集市包中缺失 minAppVersion 项,则使用该值作为最低支持的版本号,小于该版本号时不显示集市包
|
|
|
|
+// Add marketplace package config item `minAppVersion` https://github.com/siyuan-note/siyuan/issues/8330
|
|
|
|
+const defaultMinAppVersion = "2.9.0"
|