zuiideaandCursor 2614328537 chore: unify Cursor rules, fix monorepo install hooks, refresh basic docs
Add root preinstall to set githooks and disable parallel vp config git lock races; merge per-app Cursor thin rules into app.mdx; keep template READMEs free of monorepo-only paths and describe basic as default English rather than English-only.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-18 17:51:49 +08:00
2026-04-28 18:52:45 +08:00
2026-04-28 18:52:45 +08:00
2016-12-06 10:30:26 +08:00
2026-04-14 18:04:41 +08:00

Antd Admin

Introduction

Antd Admin provides production-style admin templates with modern frontend tooling, mock-first development, and practical testing coverage.

Available templates:

  • basic: Admin template with plain-string UI copy (default English; no bundled Lingui)
  • with-lingui: Lingui i18n workflow (en + zh) with locale switching

Scaffolding CLI:

  • init-antd-admin (from packages/create)

Key Features

  • JWT login with access/refresh flow
  • Backend-driven menu and permission guards
  • URL-synced table state (pagination, sorting, search)
  • Dark mode theme switching
  • Mock-first local development (no backend required)
  • Typed API boundaries and reusable CRUD patterns
  • React 19 + Ant Design 6 + TanStack Router/Query + Zustand + Zod
  • Optional Lingui-based i18n workflow (with-lingui)
  • E2E coverage with Playwright

Quick Start

Use init-antd-admin to scaffold a standalone app from official templates.

Interactive

npx init-antd-admin@latest
pnpm dlx init-antd-admin@latest
yarn dlx init-antd-admin@latest
bunx init-antd-admin@latest

Non-interactive examples

pnpm dlx init-antd-admin@latest my-app --example basic -m pnpm
pnpm dlx init-antd-admin@latest my-app --example with-lingui --skip-install

Common options

Option Description
[project-directory] Target folder
`-e, --example <name url>`
--example-path <path> Subpath inside remote repository
-m, --package-manager <pm> npm / pnpm / yarn / bun
--skip-install Skip dependency install
--skip-transforms Skip rewrite transforms
--no-git Skip git initialization

For detailed CLI behavior, see [packages/create/README.md](./packages/create/README.md).

Working in this monorepo (Cursor)

Template apps ship scoped guidance under each app’s .github/instructions/ (see each app’s README.md). Monorepo-only: root .cursor/rules/app.mdx is a thin router to those files when editing apps/with-lingui or apps/basic; it is not included in init-antd-admin output.

Production docs: https://antd-admin-doc.zuiidea.top

License

MIT

S
Description
No description provided
Readme MIT
28 MiB
Languages
TypeScript 82.4%
MDX 8.3%
JavaScript 5.6%
CSS 3.2%
HTML 0.3%
Other 0.2%