mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-20 20:39:55 +00:00
- 将前端API路径从`system`和`monitor`重命名为`module_system`和`module_monitor` - 移除MongoDB相关配置和依赖 - 统一数据库类型命名为`mysql`和`postgres` - 修复代码生成模板中的字段命名问题 - 更新依赖项并移除不必要的包 - 优化数据库连接配置 - 添加新的文档和Redoc视图组件 - 修复SQL脚本中的字段注释
frontend
项目结构
FastapiAdmin/frontend
├─ docs # 项目文档工程
├─ public # 静态资源文件
│ └─ docs # 帮助文档模块
├─ src # 源代码
│ ├─ api # 接口文件
│ ├─ assets # 静态资源文件
│ ├─ components # 组件模块
│ ├─ constants # 常量模块
│ ├─ lang # 语言模块
│ ├─ layouts # 布局模块
│ ├─ plugins # 插件模块
│ ├─ router # 路由模块
│ ├─ store # 状态管理模块
│ ├─ styles # 样式模块
│ ├─ types # 类型模块
│ ├─ utils # 工具模块
│ ├─ view # 视图模块
│ ├─ App.vue # 根组件
│ ├─ main.js # 入口文件
│ └─ settings.js # 全局样式文件
├─ .env.development # 项目开发环境配置
├─ .env.production # 项目生产环境配置
├─ index.html # 模板文件
├─ package.json # 项目依赖文件
├─ tsconfig.json # ts配置文件
├─ uno.config.json # uno配置文件
├─ vite.config.js # vite服务配置文件
└─ README.md # 项目说明文档
快速开始
# 进入前端工程目录
cd frontend
# 安装依赖
pnpm install
# 启动前端服务
pnpm run dev
# 构建前端, 生成 `frontend/dist` 目录
pnpm run build
# 运行命令,查看未用到的依赖
depcheck