Skip to content

Commit d38c3f4

Browse files
committed
fix #184
fix #185
1 parent dcdab5b commit d38c3f4

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

app/application/http/controller/compose.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,11 @@ func (self Compose) Create(http *gin.Context) {
144144
yamlRow.Setting.Uri = append(yamlRow.Setting.Uri, overrideRelPath)
145145
}
146146
} else {
147-
err = os.Remove(overrideYamlFilePath)
148-
if err != nil {
149-
self.JsonResponseWithError(http, err, 500)
150-
return
147+
if err = os.Remove(overrideYamlFilePath); err == nil {
148+
yamlRow.Setting.Uri = slices.DeleteFunc(yamlRow.Setting.Uri, func(s string) bool {
149+
return s == overrideRelPath
150+
})
151151
}
152-
yamlRow.Setting.Uri = slices.DeleteFunc(yamlRow.Setting.Uri, func(s string) bool {
153-
return s == overrideRelPath
154-
})
155152
}
156153

157154
if !function.IsEmptyArray(params.Environment) {

asset/static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
</head>
1919
<body>
2020
<div id="root"></div>
21-
<script src="/dpanel/static/asset/umi.d6bcb4cb.js"></script>
21+
<script src="/dpanel/static/asset/umi.cb4e3d67.js"></script>
2222
</body>
2323
</html>

asset/static/p__app__list.87178a3a.async.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asset/static/p__app__list.b69c5bd2.async.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

asset/static/p__compose__create.2db45e11.async.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

asset/static/p__compose__create.b2370b71.async.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/service/compose/task.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ type ContainerResult struct {
119119
Publishers []ContainerPublishersResult `json:"publishers"`
120120
State string `json:"state"`
121121
Status string `json:"status"`
122+
Health string
122123
}
123124

124125
type ContainerPublishersResult struct {
@@ -169,8 +170,10 @@ func (self Task) Ps() []*ContainerResult {
169170
continue
170171
}
171172
temp := ContainerResult{}
172-
err = json.Unmarshal(line, &temp)
173-
if err == nil {
173+
if err = json.Unmarshal(line, &temp); err == nil {
174+
if temp.Health != "" {
175+
temp.State = temp.Health
176+
}
174177
result = append(result, &temp)
175178
}
176179
line = make([]byte, 0)

0 commit comments

Comments
 (0)