mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-30 22:13:45 +00:00
8f7dd82e40a71a842478efb4566121560a53b06b
AntD Admin
An excellent front-end solution for enterprise applications.
antd-admin_next
Lightweight admin template built with Ant Design, Umi and TypeScript. This project aims to provide a clean, extensible starting point for building admin panels. It includes common pages, sample components, and a local mock server for development.
Key Features
- Ant Design 6 + Umi
- TypeScript-first codebase
- Local mock server (
mock/index.js) for development - Lightweight state with
zustand - Example pages: Dashboard, Users, Menu management, AI Chat demo
Quick Start
Recommended: use pnpm.
# install dependencies
pnpm install
# local development
pnpm run dev
# build for production
pnpm run build
# lint and format
pnpm run lint
pnpm run format
Scripts are defined in package.json.
Project Structure (summary)
src/layouts/global layout componentspages/routes and viewscomponents/shared componentsservices/API wrappersstore/global state (zustand)utils/helpers and configuration
Development notes
- Local mock:
mock/index.jsprovides mocked API endpoints during development. - Common routes:
/or/dashboard— Dashboard/users— Users list/sys/menu— Menu management/ai/chat— AI Chat demo
Customization
- Update API calls in
src/servicesto point to real backends. - Reuse or extend components in
src/components(for exampleDropOption).
GitHub Actions CI
This repository includes a GitHub Actions workflow that installs dependencies with pnpm, runs lint and builds the project. The workflow is at .github/workflows/ci.yml.
If you want tests added to CI, add a test script to package.json and update the workflow accordingly.
Contributing
Contributions welcome via issues and pull requests. Typical contributions:
- Bug fixes
- Example pages or components
- Type and lint improvements
Languages
TypeScript
82.4%
MDX
8.3%
JavaScript
5.6%
CSS
3.2%
HTML
0.3%
Other
0.2%