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 @@ - + @@ -126,16 +126,8 @@ onMounted(async () => { diff --git a/frontend/src/views/ProxyList.vue b/frontend/src/views/ProxyList.vue index f77faa5..c1a4d94 100644 --- a/frontend/src/views/ProxyList.vue +++ b/frontend/src/views/ProxyList.vue @@ -1,9 +1,9 @@ - + - + @@ -23,11 +23,11 @@ - + 🔍 搜索 - + 🔄 重置 @@ -63,7 +63,6 @@ v-loading="proxyStore.loading" @selection-change="handleSelectionChange" :row-style="{ cursor: 'pointer' }" - class="proxy-table" > @@ -82,7 +81,6 @@ disabled show-score :score-template="scope.row.score ? '{value}' : '0'" - text-color="var(--theme-primary)" /> @@ -93,7 +91,6 @@ type="primary" size="small" @click.stop="handleCopy(scope.row)" - class="action-btn" > 复制 @@ -101,7 +98,6 @@ type="danger" size="small" @click.stop="handleDelete(scope.row)" - class="action-btn" > 删除 @@ -118,7 +114,6 @@ layout="total, sizes, prev, pager, next, jumper" @size-change="handleSizeChange" @current-change="handleCurrentChange" - class="pagination" /> @@ -251,41 +246,12 @@ onMounted(() => { diff --git a/frontend/src/views/Settings.vue b/frontend/src/views/Settings.vue index 998196d..22c8681 100644 --- a/frontend/src/views/Settings.vue +++ b/frontend/src/views/Settings.vue @@ -1,64 +1,148 @@ - - + + - + - 📝 关于 + 🎨 基础配置 + + 💾 + 保存配置 + - - - - 项目名称 - 代理池管理系统 - - - 版本号 - v1.0.0 - - - 后端API - http://localhost:3000 - - - 前端服务 - http://localhost:8080 - - - 数据库 - SQLite - - + + + + + + + + + 秒 + + + + + 秒 + + + + + + + + + + + + + + + + + 天 + +