mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-19 22:09:03 +08:00
feat: Add memory requirement field display for local applications (#11018)
Refs https://github.com/1Panel-dev/1Panel/issues/11015
This commit is contained in:
parent
d83b673c90
commit
99c2eb04c9
2 changed files with 4 additions and 3 deletions
|
|
@ -91,13 +91,13 @@ type AppProperty struct {
|
||||||
Key string `json:"key"`
|
Key string `json:"key"`
|
||||||
Required []string `json:"Required"`
|
Required []string `json:"Required"`
|
||||||
CrossVersionUpdate bool `json:"crossVersionUpdate"`
|
CrossVersionUpdate bool `json:"crossVersionUpdate"`
|
||||||
Limit int `json:"limit"`
|
Limit int `json:"limit" yaml:"memoryRequired"`
|
||||||
Recommend int `json:"recommend"`
|
Recommend int `json:"recommend" yaml:"memoryRequired"`
|
||||||
Website string `json:"website"`
|
Website string `json:"website"`
|
||||||
Github string `json:"github"`
|
Github string `json:"github"`
|
||||||
Document string `json:"document"`
|
Document string `json:"document"`
|
||||||
Architectures []string `json:"architectures"`
|
Architectures []string `json:"architectures"`
|
||||||
MemoryRequired int `json:"memoryRequired"`
|
MemoryRequired int `json:"memoryRequired" yaml:"memoryRequired"`
|
||||||
GpuSupport bool `json:"gpuSupport"`
|
GpuSupport bool `json:"gpuSupport"`
|
||||||
Version float64 `json:"version"`
|
Version float64 `json:"version"`
|
||||||
Deprecated float64 `json:"deprecated"`
|
Deprecated float64 `json:"deprecated"`
|
||||||
|
|
|
||||||
|
|
@ -1414,6 +1414,7 @@ func handleLocalApp(appDir string) (app *model.App, err error) {
|
||||||
app.Key = "local" + appDefine.Key
|
app.Key = "local" + appDefine.Key
|
||||||
app.Architectures = strings.Join(appDefine.Architectures, ",")
|
app.Architectures = strings.Join(appDefine.Architectures, ",")
|
||||||
app.GpuSupport = appDefine.GpuSupport
|
app.GpuSupport = appDefine.GpuSupport
|
||||||
|
app.MemoryRequired = appDefine.MemoryRequired
|
||||||
|
|
||||||
app.Resource = constant.AppResourceLocal
|
app.Resource = constant.AppResourceLocal
|
||||||
app.Status = constant.AppNormal
|
app.Status = constant.AppNormal
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue