Skip to content

Commit 591596c

Browse files
committed
v1.8.1
1 parent b324548 commit 591596c

16 files changed

+84
-71
lines changed

app/application/http/controller/explorer.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,3 +624,17 @@ func (self Explorer) AttachVolume(http *gin.Context) {
624624
"path": path,
625625
})
626626
}
627+
628+
func (self Explorer) DestroyProxyContainer(http *gin.Context) {
629+
_ = notice.Message{}.Info(".volumeMountSomeVolume")
630+
explorerPlugin, err := plugin.NewPlugin(plugin.PluginExplorer, nil)
631+
if err != nil {
632+
self.JsonResponseWithError(http, err, 500)
633+
return
634+
}
635+
if explorerPlugin.Exists() {
636+
_ = explorerPlugin.Destroy()
637+
}
638+
self.JsonSuccessResponse(http)
639+
return
640+
}

app/application/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ func (provider *Provider) Register(httpServer *http_server.Server) {
9797
cors.POST("/app/explorer/get-user-list", controller.Explorer{}.GetUserList)
9898
cors.POST("/app/explorer/mkdir", controller.Explorer{}.MkDir)
9999
cors.POST("/app/explorer/attach-volume", controller.Explorer{}.AttachVolume)
100+
cors.POST("/app/explorer/destroy-proxy-container", controller.Explorer{}.DestroyProxyContainer)
100101

101102
// 日志相关
102103
cors.POST("/app/log/run", controller.RunLog{}.Run)

asset/static/1147.0602518b.async.js

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

asset/static/1147.a47c99cd.async.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

asset/static/7221.03804258.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/7221.f9fef52e.async.js

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

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.8742d806.js"></script>
21+
<script src="/dpanel/static/asset/umi.d1e7ce7d.js"></script>
2222
</body>
2323
</html>

0 commit comments

Comments
 (0)