Commit Graph

11 Commits

Author SHA1 Message Date
mac 1aa984c7e5 feat(delivery): sync mysql service ledger and credentials 2026-07-30 16:09:13 +08:00
mac 35875218c9 feat(delivery): refine base service integrations 2026-07-29 16:47:41 +08:00
Hungerdream 5715379a26 refactor(ui): embed delivery records into the service ledger
Replace the separate delivery records tab with a per-service dropdown column in the ledger table that opens the existing detail dialog with one-time credential claim. Sync now refreshes ledger, container services and delivery records together; errors surface via message toast. components.d.ts regenerated (dropdown components in, tabs out).
2026-07-29 13:50:29 +08:00
Hungerdream 08e9466bad feat(ui): add delivery records tab to service management
Management.vue gains a second tab listing MySQL delivery tasks from the backend (search, status filter, detail dialog, one-time credential reveal with copy/download). components.d.ts regenerated for the new Element Plus components.

Also add narrow-viewport (<=760px) style tweaks to AppHeader/AppMain/DefaultLayout; these are partial small-screen optimizations, not a full mobile adaptation.
2026-07-28 19:15:29 +08:00
mac 93981b9aad feat: update delivery and resource frontends 2026-07-28 17:56:58 +08:00
mac 7f6f6fa41e feat(container): show business line workloads from Wayne 2026-07-22 15:05:41 +08:00
mac 981e9557fe feat(frontend): make mock panels follow business line 2026-07-17 19:28:19 +08:00
wonder a31f274153 feat(frontend): 新增服务管理入口并统一按钮样式
- 侧边栏「机器管理」下方新增「服务管理」导航项(图标 ◈,badge Consul)
- 服务管理页同步按钮文案改为「同步」,添加 type=primary
- 监控看板刷新按钮改为 el-button type=primary,与全局风格统一
2026-07-17 16:00:06 +08:00
wonder 3144a50ef5 fix(frontend): 统一重构前端样式系统,消除重复、添加响应式、修复硬编码
Closes #61

## 变更内容

### CSS 变量扩展
- 新增 --radius-sm / --radius-lg / --radius-xl 圆角变量
- 新增 --accent-end 渐变终点色(浅色/深色模式)

### 公共样式提取到 global.css
- 提取 15+ 组重复样式:.page-head / .panel / .stat-row / table / .tag
  / .status-text / .bar-wrap / .cols-2 / .pagination / .log-stream 等
- 所有 border-radius 硬编码值改用 CSS 变量
- 新增工具类:.text-xs / .text-dim / .cols-2-equal / .panel-body.padded
  / .search-input / .accent-pill

### 响应式设计
- @media (max-width: 1024px):stat-row 3 列,双栏布局单列化
- @media (max-width: 768px):page-head 纵向排列,stat-row 2 列,
  表格横向滚动,卡片网格单列化

### 内联 style 清理
- 非动态绑定的 style="color: ..." / style="font-size: ..."
  / style="flex: 1" / style="padding: ..." 改为 CSS 类

### 硬编码颜色修复
- ConfigCenter.vue: #1C2A3A/#8EC8FF 改用 CSS 变量
- Login.vue: #1C8F69 改用 --accent-end 变量

### 页面组件 scoped 样式精简
- 13 个页面组件删除已提取的重复样式,净减少 1070 行
2026-07-15 15:11:55 +08:00
wonder f1a63ee473 feat(frontend): 支持深色/浅色模式切换,统一主题变量体系
- 新增 useTheme composable,支持 light/dark 双主题,默认浅色模式
- 主题偏好持久化到 localStorage,支持跟随系统主题
- AppHeader 顶栏添加 Moon/Sunny 切换图标,带旋转过渡动效
- variables.css 重构为 :root(浅色)/:root.dark(深色)双套变量
- 新增标签色系(蓝/紫/琥珀/绿)、节点色系、阴影、发光效果等语义化变量
- 全组件硬编码颜色替换为 CSS 变量,消除跨主题不一致
- global.css 添加主题切换过渡动画(background/border/box-shadow)
- 涉及组件:AppHeader、AppSidebar、SubsystemCard、AuditLogTable
- 涉及页面:Dashboard、Resource、Cluster、Config、Task、Service、Login
2026-07-15 14:38:58 +08:00
wonder 31ca405492 feat(frontend): 添加服务管理页面骨架
页面:
- views/service/Catalog.vue,基础服务目录(Ansible Playbook 一键部署)
- views/service/Management.vue,服务管理(Consul 注册中心同步)

服务目录:
- MySQL、Redis、openresty、dpvs、PgSQL

功能:
- 服务卡片展示(图标、描述、Playbook、版本)
- 服务台账表格(按机房、业务标签筛选)
- 健康状态展示
2026-07-14 15:40:21 +08:00