wonder
|
d36cdaca88
|
feat(frontend): 添加页面布局组件
布局组件:
- layouts/DefaultLayout.vue,默认布局组合
Layout 组件:
- components/Layout/AppHeader.vue,顶部导航栏(品牌、环境标签、搜索、用户信息)
- components/Layout/AppSidebar.vue,侧边菜单栏(导航菜单项)
- components/Layout/AppMain.vue,主内容区容器
布局结构:顶栏 + 侧边栏 + 内容区(CSS Grid)
|
2026-07-14 15:39:26 +08:00 |
|
wonder
|
84394f4674
|
feat(frontend): 添加基础设施模块
工具函数:
- utils/auth.ts,Token 存储、解析、过期校验
API 模块:
- api/request.ts,Axios 实例封装,请求/响应拦截器
状态管理:
- stores/auth.ts,认证状态管理(Pinia)
组合式函数:
- composables/useAuth.ts,认证逻辑封装
路由配置:
- router/index.ts,路由表定义、路由守卫(未登录重定向)
|
2026-07-14 15:39:19 +08:00 |
|
wonder
|
fba7210fd1
|
style(frontend): 添加全局样式和 CSS 变量
- 添加 variables.css,定义颜色、字体等 CSS 变量
- 添加 global.css,全局样式重置和通用样式类
设计风格参考原型暗色主题:
- 背景色:#0E1117(深色)、#151922(面板)
- 强调色:#3FE0A5(绿色)
- 字体:IBM Plex Sans + IBM Plex Mono
|
2026-07-14 15:39:11 +08:00 |
|
wonder
|
2976e196f7
|
feat(frontend): 添加 Vue 应用入口文件
- 添加 main.ts,初始化 Vue 应用、注册插件(Pinia、Router、Element Plus)
- 添加 App.vue,根组件
- 添加 env.d.ts,TypeScript 类型声明
|
2026-07-14 15:39:05 +08:00 |
|
wonder
|
dd23e1844e
|
chore(frontend): 初始化 Vue 3 项目配置
- 添加 package.json,定义项目依赖和脚本
- 添加 vite.config.ts,配置 Vite 构建工具
- 添加 tsconfig.json 和 tsconfig.node.json,配置 TypeScript
- 添加 index.html,HTML 入口模板
技术栈:Vue 3.3+ / TypeScript / Element Plus / Vite / Pinia
|
2026-07-14 15:38:49 +08:00 |
|
wonder
|
1bd5921fd4
|
chore: 初始化项目骨架结构
- 创建前端 Vue3 项目目录结构(components、views、router、stores 等)
- 创建后端 Go 项目目录结构(cmd、internal、pkg 等分层架构)
- 创建部署配置目录(docker、k8s)
- 创建文档目录
- 添加 .gitignore 忽略规则
- 添加 Makefile 构建脚本
- 更新 README.md 项目说明文档
- 每个目录添加 .gitkeep 文件说明目录用途
|
2026-07-14 14:34:10 +08:00 |
|