From aca5db5405f1dd936d078be09981c25b9e6e159c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 23 Aug 2025 01:07:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=8D=A1=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/page/AppPage.vue | 2 +- web/src/components/page/CommonPage.vue | 35 +- .../layout/sidebar/components/SideLogo.vue | 9 +- .../layout/sidebar/components/SideSetting.vue | 78 ++-- web/src/views/backup/IndexView.vue | 21 +- web/src/views/backup/ListView.vue | 15 + web/src/views/cert/IndexView.vue | 39 +- web/src/views/container/IndexView.vue | 33 +- web/src/views/database/IndexView.vue | 61 +-- web/src/views/firewall/IndexView.vue | 28 +- web/src/views/monitor/IndexView.vue | 63 ++- web/src/views/setting/IndexView.vue | 45 ++- web/src/views/ssh/IndexView.vue | 13 +- web/src/views/task/IndexView.vue | 35 +- web/src/views/toolbox/BenchmarkView.vue | 380 +++++++++--------- web/src/views/toolbox/IndexView.vue | 29 ++ web/src/views/toolbox/SystemView.vue | 199 +++++---- web/src/views/toolbox/route.ts | 21 +- web/src/views/website/IndexView.vue | 20 +- 19 files changed, 572 insertions(+), 554 deletions(-) create mode 100644 web/src/views/toolbox/IndexView.vue diff --git a/web/src/components/page/AppPage.vue b/web/src/components/page/AppPage.vue index 06eab8d2..f59602ed 100644 --- a/web/src/components/page/AppPage.vue +++ b/web/src/components/page/AppPage.vue @@ -12,7 +12,7 @@ withDefaults(defineProps(), {
- +
diff --git a/web/src/components/page/CommonPage.vue b/web/src/components/page/CommonPage.vue index 2d553d8b..adeaa8f8 100644 --- a/web/src/components/page/CommonPage.vue +++ b/web/src/components/page/CommonPage.vue @@ -1,6 +1,4 @@ diff --git a/web/src/layout/sidebar/components/SideLogo.vue b/web/src/layout/sidebar/components/SideLogo.vue index 1043766e..758d06d6 100644 --- a/web/src/layout/sidebar/components/SideLogo.vue +++ b/web/src/layout/sidebar/components/SideLogo.vue @@ -3,11 +3,16 @@ import logoImg from '@/assets/images/logo.png' import { useThemeStore } from '@/store' const themeStore = useThemeStore() +const router = useRouter() const logo = computed(() => themeStore.logo || logoImg) + +const toDashboard = () => { + router.push({ name: 'dashboard' }) +} diff --git a/web/src/layout/sidebar/components/SideSetting.vue b/web/src/layout/sidebar/components/SideSetting.vue index 603c1e7f..7cf3458e 100644 --- a/web/src/layout/sidebar/components/SideSetting.vue +++ b/web/src/layout/sidebar/components/SideSetting.vue @@ -65,44 +65,44 @@ const menus = computed(() => { {{ $gettext('Menu Settings') }} - - - - - {{ - $gettext( - 'Settings are saved in the browser and will be reset after clearing the browser cache' - ) - }} - - - - - - - - - - + + + + + {{ + $gettext( + 'Settings are saved in the browser and will be reset after clearing the browser cache' + ) + }} + + + + + + + + + + diff --git a/web/src/views/backup/IndexView.vue b/web/src/views/backup/IndexView.vue index 17dd4bd0..a03af6b6 100644 --- a/web/src/views/backup/IndexView.vue +++ b/web/src/views/backup/IndexView.vue @@ -31,19 +31,14 @@ const postgreSQLInstalled = computed(() => { diff --git a/web/src/views/backup/ListView.vue b/web/src/views/backup/ListView.vue index af828208..7698ba54 100644 --- a/web/src/views/backup/ListView.vue +++ b/web/src/views/backup/ListView.vue @@ -149,6 +149,21 @@ const handleDelete = async (file: string) => { }) } +watch( + type, + (newType) => { + if (newType === 'website') { + createModel.value.target = websites.value[0]?.value || '' + restoreModel.value.target = websites.value[0]?.value || '' + } else { + createModel.value.target = '' + restoreModel.value.target = '' + } + refresh() + }, + { immediate: true } +) + onMounted(() => { useRequest(app.isInstalled('nginx')).onSuccess(({ data }) => { if (data.installed) { diff --git a/web/src/views/cert/IndexView.vue b/web/src/views/cert/IndexView.vue index e5f4f40e..61604eaa 100644 --- a/web/src/views/cert/IndexView.vue +++ b/web/src/views/cert/IndexView.vue @@ -90,8 +90,15 @@ onUnmounted(() => {