From 4de733e084885679357d54cdf49007ab567f67a3 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 25 Mar 2024 17:58:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=98=BE=E7=A4=BA=20(#4301)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/4280 --- frontend/src/components/app-status/index.vue | 148 +++++++++--------- frontend/src/views/home/index.vue | 6 +- .../config/basic/site-folder/index.vue | 2 +- 3 files changed, 79 insertions(+), 77 deletions(-) diff --git a/frontend/src/components/app-status/index.vue b/frontend/src/components/app-status/index.vue index 5a74a1b0e..2b8b931b7 100644 --- a/frontend/src/components/app-status/index.vue +++ b/frontend/src/components/app-status/index.vue @@ -2,73 +2,80 @@
-
- {{ data.app }} - - {{ $t('app.version') }}:{{ data.version }} +
+
+ {{ data.app }} +
+
+ +
+
+ {{ $t('app.version') }}:{{ data.version }} +
+
+ + + {{ $t('app.start') }} + + + {{ $t('app.stop') }} + + + + {{ $t('app.restart') }} + + + + {{ $t('app.reload') }} + + + + {{ $t('commons.button.set') }} + + + + {{ $t('nginx.clearProxyCache') }} + + +
- - - {{ $t('app.start') }} - - - {{ $t('app.stop') }} - - - - {{ $t('app.restart') }} - - - - {{ $t('app.reload') }} - - - - {{ $t('commons.button.set') }} - - - - {{ $t('nginx.clearProxyCache') }} - - - - - - {{ $t('website.openrestyHelper', [httpPort, httpsPort]) }} - - +
+ {{ $t('website.openrestyHelper', [httpPort, httpsPort]) }} +
@@ -237,12 +244,3 @@ onMounted(() => { onCheck(); }); - - diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 30e108464..d2a54985e 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -206,7 +206,11 @@ {{ $t('home.platformVersion') }} - {{ baseInfo.platformVersion === "" ? baseInfo.platform : (baseInfo.platform + "-" + baseInfo.platformVersion) }} + {{ + baseInfo.platformVersion === '' + ? baseInfo.platform + : baseInfo.platform + '-' + baseInfo.platformVersion + }}