{"id":13493291,"url":"https://github.com/zuiidea/antd-admin","last_synced_at":"2026-03-14T18:28:29.929Z","repository":{"id":37664975,"uuid":"50334710","full_name":"zuiidea/antd-admin","owner":"zuiidea","description":"An excellent front-end solution for enterprise applications built upon Ant Design and UmiJS","archived":false,"fork":false,"pushed_at":"2024-04-13T05:06:29.000Z","size":25261,"stargazers_count":9668,"open_issues_count":32,"forks_count":2518,"subscribers_count":291,"default_branch":"master","last_synced_at":"2025-04-28T14:57:28.854Z","etag":null,"topics":["admin","antd","dashboard","mock","react"],"latest_commit_sha":null,"homepage":"https://antd-admin.zuiidea.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zuiidea.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-25T07:46:15.000Z","updated_at":"2025-04-28T10:38:11.000Z","dependencies_parsed_at":"2024-04-09T21:47:39.810Z","dependency_job_id":"60be6279-61db-4ba4-9824-db1bdcf3fcbc","html_url":"https://github.com/zuiidea/antd-admin","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuiidea%2Fantd-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuiidea%2Fantd-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuiidea%2Fantd-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zuiidea%2Fantd-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zuiidea","download_url":"https://codeload.github.com/zuiidea/antd-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254029003,"owners_count":22002283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","antd","dashboard","mock","react"],"created_at":"2024-07-31T19:01:13.956Z","updated_at":"2026-03-14T18:28:29.920Z","avatar_url":"https://github.com/zuiidea.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\n\t\u003ca href=\"http://github.com/zuiidea/antd-admin\" target=\"_blank\"\u003e\n\t\t\u003cimg alt=\"antd-admin-logo\" height=\"80\" src=\"./public/logo.svg\"\u003e\n\t\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eAntD Admin\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n基于 Ant Design 6、Umi 4 与 TypeScript 构建的企业级前端解决方案。\n\n\u003c/div\u003e\n\n---\n\n## 📖 项目简介\n\n**AntD Admin** 是一个轻量、高性能的管理后台模板，旨在为构建企业级应用提供干净、可扩展的起点。项目使用 **Ant Design 6**、**Umi 4** 与 **TypeScript** 的最新特性，减轻样板代码，提升开发体验。\n\n无论您要构建仪表盘、管理系统，还是集成 AI 功能的工具，本项目都能提供必要的基础。\n\n## ✨ 主要特性\n\n- 🚀 **现代栈**：基于 **Ant Design 6** + **Umi 4** + **TypeScript**。\n- 🎨 **清晰架构**：使用 `zustand` 进行轻量状态管理。\n- 🛠 **良好的开发体验**：内置本地 mock 服务器（`mock/index.js`），无需后端即可开发前端功能。\n- 📦 **丰富示例页面**：包含可直接使用的页面示例：\n\t- 📊 **仪表盘**：数据可视化概览。\n\t- 👥 **用户管理**：CRUD 操作示例。\n\t- 🧩 **菜单管理**：动态路由配置示例。\n\t- 🤖 **AI 聊天示例**：大模型（LLM）接口集成示例。\n- ✅ **CI/CD 支持**：预配置的 GitHub Actions 工作流，用于 lint 和构建。\n\n## 🚀 快速开始\n\n建议使用 **pnpm** 进行包管理。\n\n```bash\n# 1. 克隆仓库\ngit clone https://github.com/zuiidea/antd-admin.git -b master --depth=1\ncd antd-admin\n\n# 2. 安装依赖\npnpm install\n\n# 3. 启动本地开发（含 mock 数据）\nnpm run dev\n\n# 4. 构建生产包\nnpm run build\n\n# 5. 代码质量检查\nnpm run lint\nnpm run format\n```\n\n🔌 开发说明\n\n#### Mock 服务\n\n项目包含位于 `mock/index.js` 的内置 mock 服务，方便在没有后端的情况下独立开发前端功能。\n\n如需关闭 mock 或切换到真实 API，请修改项目的代理配置（例如 Umi 项目可能的配置文件 `config/proxy.ts`、`.umirc.ts` 或 `config/config.ts`），以匹配您的实际项目结构。\n\n#### 常用路由\n\n| 路由 | 说明 |\n| --- | --- |\n| `/` 或 `/dashboard` | 主仪表盘 |\n| `/users` | 用户列表与管理 |\n| `/sys/menu` | 系统菜单配置 |\n| `/ai/chat` | AI 聊天示例界面 |\n\n#### 定制化\n\n- **API 集成：** 在 `src/services` 中更新 API 接口以对接真实后端。\n- **组件扩展：** 在 `src/components` 中复用或扩展现有组件（例如 `DropOption`、`StandardTable`）。\n- **主题：** 在主题配置中自定义 Ant Design 变量以匹配品牌视觉。\n\n#### GitHub Actions（CI）\n\n仓库包含预配置的 GitHub Actions 工作流（见 `.github/workflows/ci.yml`），用于保证代码质量：\n\n- 使用 `pnpm` 安装依赖。\n- 运行 lint 检查。\n- 构建生产包。\n\n- **工作流位置：** `.github/workflows/ci.yml`\n- **提示：** 若要在 CI 中加入自动化测试，请在 `package.json` 中添加测试脚本并更新 workflow YAML。\n\n## 🤝 贡献\n\n欢迎各类贡献：修复 bug、添加新示例页面或组件、完善类型定义与 lint 规则、改进国际化等。\n\n常见贡献流程：\n\n1. Fork 仓库。\n2. 新建分支：`git checkout -b feature/AmazingFeature`。\n3. 提交变更：`git commit -m 'Add some AmazingFeature'`。\n4. 推送分支：`git push origin feature/AmazingFeature`。\n5. 提交 Pull Request。\n\n## 📄 许可证\n\n本项目采用 MIT 许可证。\n\n由 zuiidea 与贡献者共同维护，Made with ❤️。\n\n","funding_links":[],"categories":["JavaScript","Projects Using UmiJS","Boilerplates","TypeScript"],"sub_categories":["Open Source","Themes"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuiidea%2Fantd-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzuiidea%2Fantd-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzuiidea%2Fantd-admin/lists"}