From 58b6a2de32420220a7fe7a424862788a1028c310 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 5 Dec 2023 14:30:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BD=91=E7=AB=99=20OpenResty=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=87=8D=E8=BD=BD=E5=8A=9F=E8=83=BD=20(#3182?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app_install.go | 2 ++ backend/constant/app.go | 4 +--- frontend/src/components/app-status/index.vue | 10 ++++++++++ frontend/src/lang/modules/en.ts | 1 + frontend/src/lang/modules/tw.ts | 1 + frontend/src/lang/modules/zh.ts | 1 + 6 files changed, 16 insertions(+), 3 deletions(-) diff --git a/backend/app/service/app_install.go b/backend/app/service/app_install.go index 1296889cd..cd82e74e8 100644 --- a/backend/app/service/app_install.go +++ b/backend/app/service/app_install.go @@ -262,6 +262,8 @@ func (a *AppInstallService) Operate(req request.AppInstalledOperate) error { return syncByID(install.ID) case constant.Upgrade: return upgradeInstall(install.ID, req.DetailId, req.Backup) + case constant.Reload: + return opNginx(install.ContainerName, constant.NginxReload) default: return errors.New("operate not support") } diff --git a/backend/constant/app.go b/backend/constant/app.go index 65b571222..9837b1a67 100644 --- a/backend/constant/app.go +++ b/backend/constant/app.go @@ -36,16 +36,14 @@ const ( type AppOperate string var ( - Up AppOperate = "up" - Down AppOperate = "down" Start AppOperate = "start" Stop AppOperate = "stop" Restart AppOperate = "restart" Delete AppOperate = "delete" Sync AppOperate = "sync" Backup AppOperate = "backup" - Restore AppOperate = "restore" Update AppOperate = "update" Rebuild AppOperate = "rebuild" Upgrade AppOperate = "upgrade" + Reload AppOperate = "reload" ) diff --git a/frontend/src/components/app-status/index.vue b/frontend/src/components/app-status/index.vue index dd19c4432..bfdaf1fa2 100644 --- a/frontend/src/components/app-status/index.vue +++ b/frontend/src/components/app-status/index.vue @@ -30,6 +30,16 @@ {{ $t('app.restart') }} + + {{ $t('app.reload') }} + +