From ab7efea8c5f34a2e936eb5ad0988cd1be915aba6 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:24:15 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E6=A0=B7=E5=BC=8F=20(#6448)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/app-status/index.vue | 19 +++--- .../src/views/container/setting/index.vue | 23 +++----- frontend/src/views/cronjob/record/index.vue | 59 +++++++++++-------- frontend/src/views/database/mysql/index.vue | 12 ++-- .../src/views/database/postgresql/index.vue | 8 ++- frontend/src/views/database/redis/index.vue | 8 ++- .../src/views/host/firewall/status/index.vue | 37 ++++++------ frontend/src/views/host/ssh/ssh/index.vue | 42 ++++++------- frontend/src/views/log/system/index.vue | 1 + .../src/views/toolbox/clam/status/index.vue | 50 ++++++++-------- frontend/src/views/toolbox/fail2ban/index.vue | 32 +++++----- frontend/src/views/toolbox/ftp/index.vue | 22 +++---- .../views/toolbox/supervisor/status/index.vue | 14 +++-- .../views/website/website/status/index.vue | 30 +++++----- 14 files changed, 187 insertions(+), 170 deletions(-) diff --git a/frontend/src/components/app-status/index.vue b/frontend/src/components/app-status/index.vue index b702d97d1..e4e9e3d65 100644 --- a/frontend/src/components/app-status/index.vue +++ b/frontend/src/components/app-status/index.vue @@ -2,19 +2,14 @@
-
-
-
- {{ data.app }} -
-
- -
-
- {{ $t('app.version') }}:{{ data.version }} -
+
+
+ {{ data.app }} + + {{ $t('app.version') }}:{{ data.version }}
-
+ +
-
-
+
+
Docker - + {{ $t('commons.status.running') }} - + {{ $t('commons.status.stopped') }} - {{ $t('app.version') }}: {{ form.version }} + {{ $t('app.version') }}: {{ form.version }}
-
- +
+ {{ $t('container.stop') }} - - - {{ $t('container.restart') }} - -
- -
- + {{ $t('container.start') }} diff --git a/frontend/src/views/cronjob/record/index.vue b/frontend/src/views/cronjob/record/index.vue index 587cf6f3f..dabbcfd8a 100644 --- a/frontend/src/views/cronjob/record/index.vue +++ b/frontend/src/views/cronjob/record/index.vue @@ -2,32 +2,39 @@
-
- - - - - {{ $t('cronjob.' + dialogData.rowData.type) }} - {{ dialogData.rowData.name }} - +
+
+ + + + + {{ $t('cronjob.' + dialogData.rowData.type) }} - {{ dialogData.rowData.name }} + - - {{ $t('commons.status.running') }} - - - {{ $t('commons.status.stopped') }} - - + + {{ $t('commons.status.running') }} + + + {{ $t('commons.status.stopped') }} + +
+
{{ $t('commons.button.handle') }} @@ -52,7 +59,7 @@ {{ $t('commons.button.clean') }} - +
diff --git a/frontend/src/views/database/mysql/index.vue b/frontend/src/views/database/mysql/index.vue index 7730ba4a2..656236837 100644 --- a/frontend/src/views/database/mysql/index.vue +++ b/frontend/src/views/database/mysql/index.vue @@ -2,11 +2,13 @@
-
- - {{ currentDB?.type === 'mysql' ? 'Mysql' : 'MariaDB' }} - - {{ $t('app.version') }}: {{ currentDB?.version }} +
+
+ + {{ currentDB?.type === 'mysql' ? 'Mysql' : 'MariaDB' }} + + {{ $t('app.version') }}: {{ currentDB?.version }} +
diff --git a/frontend/src/views/database/postgresql/index.vue b/frontend/src/views/database/postgresql/index.vue index c9158e241..4fb1b0998 100644 --- a/frontend/src/views/database/postgresql/index.vue +++ b/frontend/src/views/database/postgresql/index.vue @@ -2,9 +2,11 @@
-
- PostgreSQL - {{ $t('app.version') }}: {{ currentDB?.version }} +
+
+ PostgreSQL + {{ $t('app.version') }}: {{ currentDB?.version }} +
diff --git a/frontend/src/views/database/redis/index.vue b/frontend/src/views/database/redis/index.vue index 77b7ff77c..a2d3f8b12 100644 --- a/frontend/src/views/database/redis/index.vue +++ b/frontend/src/views/database/redis/index.vue @@ -2,9 +2,11 @@
-
- Redis - {{ $t('app.version') }}: {{ currentDB?.version }} +
+
+ Redis + {{ $t('app.version') }}: {{ currentDB?.version }} +
diff --git a/frontend/src/views/host/firewall/status/index.vue b/frontend/src/views/host/firewall/status/index.vue index 396d227c7..f31d12e68 100644 --- a/frontend/src/views/host/firewall/status/index.vue +++ b/frontend/src/views/host/firewall/status/index.vue @@ -2,33 +2,34 @@
-
-
+
+
{{ baseInfo.name }} - + {{ $t('commons.status.running') }} - + {{ $t('commons.status.stopped') }} - {{ $t('app.version') }}: {{ baseInfo.version }} + {{ $t('app.version') }}: {{ baseInfo.version }}
-
-
- - {{ $t('commons.button.stop') }} - -
-
- - {{ $t('commons.button.start') }} - -
+
+ + {{ $t('commons.button.stop') }} + + + {{ $t('commons.button.start') }} + {{ $t('container.restart') }} -
+ {{ $t('firewall.noPing') }} -
+
diff --git a/frontend/src/views/host/ssh/ssh/index.vue b/frontend/src/views/host/ssh/ssh/index.vue index 01c2a601c..abf3aff38 100644 --- a/frontend/src/views/host/ssh/ssh/index.vue +++ b/frontend/src/views/host/ssh/ssh/index.vue @@ -4,25 +4,27 @@
-
- SSH - - {{ $t('commons.status.running') }} - - - - - +
+
+ SSH + + {{ $t('commons.status.running') }} + + + + +
+
{{ $t('commons.button.stop') }} @@ -45,7 +47,7 @@ @change="onOperate(autoStart)" v-model="autoStart" /> - +
diff --git a/frontend/src/views/log/system/index.vue b/frontend/src/views/log/system/index.vue index 173c9f2c8..73be061d2 100644 --- a/frontend/src/views/log/system/index.vue +++ b/frontend/src/views/log/system/index.vue @@ -31,6 +31,7 @@
-
+
-
- ClamAV - - {{ $t('commons.status.running') }} - - - {{ $t('commons.status.stopped') }} - - {{ $t('app.version') }}:{{ data.version }} - +
+
+ ClamAV + + {{ $t('commons.status.running') }} + + + {{ $t('commons.status.stopped') }} + + {{ $t('app.version') }}:{{ data.version }} +
+
{{ $t('app.start') }} @@ -33,18 +35,20 @@ {{ $t('toolbox.clam.showFresh') }} - +
-
- FreshClam - - {{ $t('commons.status.running') }} - - - {{ $t('commons.status.stopped') }} - - {{ $t('app.version') }}:{{ data.freshVersion }} - +
+
+ FreshClam + + {{ $t('commons.status.running') }} + + + {{ $t('commons.status.stopped') }} + + {{ $t('app.version') }}:{{ data.freshVersion }} +
+
{{ $t('app.restart') }} - +
diff --git a/frontend/src/views/toolbox/fail2ban/index.vue b/frontend/src/views/toolbox/fail2ban/index.vue index 5b5f4b71c..d4491c438 100644 --- a/frontend/src/views/toolbox/fail2ban/index.vue +++ b/frontend/src/views/toolbox/fail2ban/index.vue @@ -2,16 +2,18 @@
-
- Fail2ban - - {{ $t('commons.status.running') }} - - - {{ $t('commons.status.stopped') }} - - {{ form.version }} - +
+
+ Fail2ban + + {{ $t('commons.status.running') }} + + + {{ $t('commons.status.stopped') }} + + {{ form.version }} +
+
{{ $t('commons.button.stop') }} @@ -34,7 +36,7 @@ @change="onOperate(autoStart)" v-model="autoStart" /> - +
@@ -42,16 +44,16 @@