226 Commits

Author SHA1 Message Date
wonder a185fac1b2 feat(sidebar): 重组侧边栏导航结构
- 服务交付 → 业务交付:基础服务、任务中心
- 资源管理 → 资源纳管:资源管理(CMDB)、集群/容器池、业务线/配额
- 新增业务线/配额页面(Tenants.vue)
- 集群页面标题对齐为「集群 / 容器池」
2026-07-17 10:53:08 +08:00
wonder f327f41733 feat(service-catalog): 对齐基础服务目录交互逻辑
- 更新 6 张服务卡片数据(Wayne/MySQL/openresty/PgSQL/Redis/接入新服务)
- 容器服务(Wayne)点击打开发布弹窗(业务线/命名空间/集群/规格/服务名)
- MySQL 点击打开标准化交付弹窗(架构/规格/版本/实例名 + YAML 预览)
- openresty 可点击但提示"功能对接中"
- PgSQL/Redis 置灰不可点击,提示"功能规划中"
- 接入新服务置灰(0.5)无响应
- 弹窗确认后 toast 提示并跳转任务中心
2026-07-17 10:37:52 +08:00
wonder 0dd098213c feat(header): 新增业务线切换器组件
- 新增 stores/businessLine.ts:Pinia 状态管理,持久化到 localStorage
- 新增 components/BusinessLineSwitcher.vue:企业微信式下拉切换器
- 修改 AppHeader.vue:在环境标签后集成切换器
- 预置 5 条业务线 mock 数据(LAS/Kodo/LTOKEN/灵矽/MAAS)
- 更新 components.d.ts 自动类型声明
2026-07-17 10:28:02 +08:00
qudder ebe7f7a090 Merge pull request #81 from ztkkOip/auth-login
fix(auth): handle saml logout and xml encryption padding
2026-07-17 09:52:23 +08:00
mac b151356045 fix(auth): handle saml logout and xml encryption padding 2026-07-17 09:43:42 +08:00
ztkkOip 157f0c65cb fix(Auth login) 修复一些登陆时适配bug
fix(Auth login) 修复一些登陆时适配bug
2026-07-16 17:25:18 +08:00
mac 487de70250 fix(auth): populate email for local login users 2026-07-16 17:08:23 +08:00
mac 2835cf2576 fix(auth): keep subsystem oauth working without sso 2026-07-16 16:43:01 +08:00
mac cafa8bc840 feat(auth): support local username login mode 2026-07-16 16:19:25 +08:00
mac d5c7cab8bb Merge remote-tracking branch 'origin/main' into auth-login
# Conflicts:
#	frontend/components.d.ts
#	frontend/src/components/Layout/AppHeader.vue
2026-07-16 16:07:34 +08:00
mac 2ac87e2592 merge(frontend): sync main styles with auth flow 2026-07-16 15:57:47 +08:00
mac eb2621d914 feat(auth): complete sso subsystem integration 2026-07-16 15:52:56 +08:00
Wonder 76c26923b9 Merge pull request #76 from 2311719626/fix/remove-unused-watch-import
fix(frontend): 移除 useTheme 中未使用的 watch 导入
2026-07-15 17:39:27 +08:00
wonder 4538452c43 fix(frontend): 移除 useTheme 中未使用的 watch 导入
- 移除 useTheme.ts 中未使用的 'watch' 导入
- 修复 TypeScript 编译错误
2026-07-15 17:36:44 +08:00
mac f8c389606f fix(frontend): use http sso signout url 2026-07-15 17:10:03 +08:00
Wonder 823d71829d Merge pull request #67 from 2311719626/feat/frontend-theme-and-style
feat: 前端主题系统重构与后端 authserver 合并
2026-07-15 15:57:49 +08:00
mac 8390c9c677 feat(frontend): add sso signout action 2026-07-15 15:53:48 +08:00
wonder 65c83a085a Merge branch 'main' into feat/frontend-theme-and-style
## 冲突解决
- Login.vue: 采用 main 分支的 SSO 登录方式,移除传统登录表单

## 合并内容
- SSO 登录功能
- 服务器端架构重构
- 新增认证、审计等模块
2026-07-15 15:31:26 +08:00
ztkkOip 2154839915 Merge pull request #63 from ztkkOip/auth-login
feet(Auth login)完成登陆认证模块
2026-07-15 15:27:44 +08:00
wonder f3ca4a4217 fix(frontend): 替换Logo、增大顶栏侧栏尺寸及全局字号
- 替换顶栏Logo为七牛logo图片(logo-qiniu.png)
- 顶栏高度 56→70px,侧栏宽度 226→282px
- 顶栏各元素字号增大约25%,头像26→32px,搜索框240→280px
- 侧栏导航项字号13→16px,分组标题10.5→13px,徽标10→12px
- 全局基础字号 14→16px
2026-07-15 15:25:11 +08:00
mac da38acfcb5 merge: sync origin main into auth-login 2026-07-15 15:12:54 +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
mac 81d2a8a60b refactor(frontend): merge authserver web login 2026-07-15 14:47:42 +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 392637fb6b Merge pull request #58 from 2311719626/fix/remove-deprecated-baseurl
fix(frontend): 移除已弃用的 baseUrl 配置
2026-07-15 14:22:05 +08:00
wonder 801af8e093 fix(frontend): 移除已弃用的 baseUrl 配置
- 移除 tsconfig.json 中已弃用的 baseUrl 选项
- 将 paths 路径改为相对路径 (./src/*)
- TypeScript 7.0 将停止支持 baseUrl,需提前迁移
- Vite 的 resolve.alias 已处理构建时别名,无需 baseUrl
2026-07-15 14:19:33 +08:00
mac 6af511ed0b refactor(server): merge authserver implementation 2026-07-15 14:05:22 +08:00
Wonder adc6d2bb77 Merge pull request #57 from 2311719626/feat/swagger-integration
feat(server): 集成 Swagger API 文档,重构路由模块
2026-07-15 13:55:30 +08:00
wonder 509503a9a0 feat(server): 重构路由模块,优化开发体验
- 提取路由配置到独立的 router 包
- 优化 Makefile 并行启动前后端开发服务器
- 修复 Swagger 文档生成命令
2026-07-15 13:43:21 +08:00
wonder 1d799ac0e7 feat(server): 优化 Swagger 配置,支持动态 host
- 移除 swagger.json/yaml 中硬编码的 host 字段
- 在 docs.go 中将 Host 设置为空字符串以支持动态检测
- 添加前端 /swagger 代理配置,支持开发环境访问 Swagger UI
- 在 main.go 中导入 docs 包注册 Swagger 文档
2026-07-15 13:30:59 +08:00
mac 8203beb8cd Revert "fix(auth): move nginx config to k8s"
This reverts commit afe6c40901.
2026-07-15 13:27:04 +08:00
mac 39a676830c Revert "fix(auth): limit nginx template envsubst"
This reverts commit 8d67ba7810.
2026-07-15 13:27:04 +08:00
mac 666e4ab762 Revert "fix(auth): serve unified frontend from nginx"
This reverts commit e212c0cd76.
2026-07-15 13:27:04 +08:00
mac 093a451e0a Revert "fix(frontend): make production build pass"
This reverts commit c0258ae4b5.
2026-07-15 13:27:04 +08:00
mac c0258ae4b5 fix(frontend): make production build pass 2026-07-15 12:00:16 +08:00
mac e212c0cd76 fix(auth): serve unified frontend from nginx 2026-07-15 11:54:25 +08:00
mac 8d67ba7810 fix(auth): limit nginx template envsubst 2026-07-15 11:44:21 +08:00
mac afe6c40901 fix(auth): move nginx config to k8s 2026-07-15 11:38:27 +08:00
wonder 8898437e9e feat(server): 集成 Swagger API 文档
- 引入 swaggo/gin-swagger 和 swaggo/files 依赖
- 配置 Swagger UI 路由 /swagger/*
- 为测试 handler 函数添加 Swagger 注解
- 将 main.go 中的内联 handler 重构到 handler/test.go 以支持注解
- 生成 Swagger 文档 (docs.go, swagger.json, swagger.yaml)
- Makefile 新增 make swagger 命令
- .gitignore 添加 server/docs/ 以跟踪生成的文档
- 添加 API 元信息(标题、版本、联系方式、许可证、安全定义)
2026-07-15 11:33:00 +08:00
ztkkOip 8338fabada Merge branch '1024XEngineer:main' into auth-login 2026-07-15 11:16:57 +08:00
Wonder 659ff617a4 Merge pull request #55 from 2311719626/feat/unified-response-format
feat: 实现后端统一响应格式与前端错误处理增强
2026-07-15 11:08:22 +08:00
wonder 3cbb1683a6 feat(server): 添加后端入口和统一响应格式测试路由
- 新增 server/cmd/server/main.go 作为服务入口
- 注册 /api/v1/test/* 测试端点,覆盖成功、业务错误、HTTP 错误、超时等场景
- 加载 Logger 和 Recovery 中间件
- 修复 recovery.go 未使用的 net/http 导入
- 更新 go.mod/go.sum 依赖
2026-07-15 11:03:28 +08:00
wonder 3de59c4fc2 feat(frontend): 对接后端统一响应格式,增强错误处理
- 新增 types/api.ts,定义 ApiResponse/PaginatedData 泛型类型和业务错误码常量
- 增强 request.ts 拦截器:提取后端错误信息、映射 HTTP 状态码和业务错误码为中文提示
- 为 auth/audit/subsystem API 添加泛型返回类型
- 为各视图添加 try/catch 防止未处理的 Promise 拒绝
2026-07-15 10:52:41 +08:00
wonder 4f1df02f53 feat(server): 实现统一响应格式和错误码
- 添加 server/go.mod,模块路径为 github.com/1024XEngineer/xinfra/server
- 实现 response.go 统一 JSON 响应结构:
  - 响应信封:{ code, message, data, details }
  - 业务错误码 (10001-20002) 与 MVP 规范一致
  - 便捷函数:Success, Error, BadRequest, Unauthorized 等
  - 分页响应支持,包含 total 和 items
- 添加 recovery 中间件捕获 panic 并返回 500 错误
- 添加 logger 中间件记录请求日志

为所有后端处理器建立统一的 API 响应基础,与前端期望的格式保持一致。
2026-07-15 10:44:32 +08:00
ztkkOip 8bb7c7c16f Merge branch '1024XEngineer:main' into auth-login 2026-07-14 18:17:27 +08:00
Wonder 5879103de9 Merge pull request #52 from 2311719626/chore/exclude-local-dev-files
chore: exclude local dev files from version control
2026-07-14 17:55:18 +08:00
wonder a93f782828 chore: exclude local dev files from version control
移除仅用于本地开发参考的文件,不入库:
- docs/:MVP 方案、原型、架构、需求文档
- CLAUDE.md:Claude Code 项目指令
- AGENTS.md:AI 辅助开发规范
2026-07-14 17:49:58 +08:00
mac 8c7a1ae9ea sync authserver sso integrations 2026-07-14 17:37:08 +08:00
Gmarker689 5a020e1fb7 Merge pull request #49 from 1024XEngineer/fix/table-thead-tbody-warnings
fix(frontend): 为 table 添加 thead/tbody 消除 Vite 构建警告
2026-07-14 16:12:55 +08:00
wonder f3d8a1335c fix(frontend): 为 table 添加 thead/tbody 消除 Vite 构建警告
HTML 规范要求 <tr> 必须是 <thead>/<tbody>/<tfoot> 的直接子元素,
不能直接作为 <table> 的子节点。Vite/Vue 会报告 warning 并可能导致
hydration 错误。

修复以下文件中的表格结构:
- StatusBoard.vue: 2 个表格添加 <thead> + <tbody>
- Index.vue: 1 个表格添加 <tbody>
- Monitor.vue: 2 个表格添加 <tbody>
- TaskCenter.vue: 1 个表格添加 <tbody>
2026-07-14 16:07:09 +08:00