From 209f03a238f3f64f3fe1ed412f009404d6dd2bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=80=E6=A2=A6?= <3501646051@qq.com> Date: Tue, 27 Jan 2026 21:58:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=89=8D=E7=AB=AF=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=9E=B6=E6=9E=84=20-=20=E6=8F=90=E5=8F=96CSS?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E5=92=8C=E5=B7=A5=E5=85=B7=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 主要改进: - 新增 variables.css 统一管理所有主题相关的CSS变量 - 新增 utilities.css 提供可复用的工具类组件 - 重构所有Vue组件,移除重复的CSS代码 - 统一使用CSS变量实现一致的粉色主题(#FF6B9D) - 改进代码组织结构,提升可维护性 - 优化样式继承和复用机制 修改文件: - 新增:frontend/src/styles/variables.css, utilities.css - 重构:App.vue, 所有视图组件和组件文件 - 更新:style.css, element-plus.css 技术亮点: - 模块化CSS架构,使用@import导入 - 统一的颜色、间距、阴影、过渡效果变量 - 卡片、按钮、布局等通用工具类 - 响应式设计支持 --- frontend/src/App.vue | 238 +-------- frontend/src/components/PageHeader.vue | 6 +- frontend/src/components/ProtocolChart.vue | 18 +- frontend/src/components/QuickActions.vue | 37 +- frontend/src/components/StatCard.vue | 20 +- frontend/src/style.css | 591 +++------------------- frontend/src/styles/element-plus.css | 235 ++++----- frontend/src/styles/utilities.css | 190 +++++++ frontend/src/styles/variables.css | 43 ++ frontend/src/views/CrawlerTasks.vue | 74 +-- frontend/src/views/Dashboard.vue | 30 +- frontend/src/views/Plugins.vue | 29 +- frontend/src/views/ProxyList.vue | 65 +-- frontend/src/views/Settings.vue | 298 +++++------ 14 files changed, 610 insertions(+), 1264 deletions(-) create mode 100644 frontend/src/styles/utilities.css create mode 100644 frontend/src/styles/variables.css diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 0f4f41e..0f19901 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -60,43 +60,6 @@ const activeMenu = computed(() => route.path) - - - - - - diff --git a/frontend/src/components/PageHeader.vue b/frontend/src/components/PageHeader.vue index 9bbcaf5..810a796 100644 --- a/frontend/src/components/PageHeader.vue +++ b/frontend/src/components/PageHeader.vue @@ -20,15 +20,13 @@ defineProps({ diff --git a/frontend/src/components/StatCard.vue b/frontend/src/components/StatCard.vue index ddb339d..8a8758f 100644 --- a/frontend/src/components/StatCard.vue +++ b/frontend/src/components/StatCard.vue @@ -33,11 +33,11 @@ defineProps({ diff --git a/frontend/src/views/Plugins.vue b/frontend/src/views/Plugins.vue index c06c84f..33002d2 100644 --- a/frontend/src/views/Plugins.vue +++ b/frontend/src/views/Plugins.vue @@ -1,5 +1,5 @@