How ant-design/ant-design-pro works
Ant Design Pro is a React enterprise-application template. Users enter through the application shell and can use its documented dashboard, form, list, profile, account, chatbot, and other page templates; service modules provide request functions. A separate Cloudflare Worker exposes mock API routes, several backed by sample data. The excerpts show the shell’s current-user lookup and the Worker’s route registration, but do not establish that the frontend targets this Worker, so that integration is left unconnected. Unexcerpted template links are documented, not verified in source.
Main entry points: index.ts Route dispatcher · app.tsx Runtime shell · dashboard.ts Dashboard routes · list.ts List routes
Components 27
Application shell
- Runtime shell
src/app.tsx - Shared components
src/components - User API client
src/services/ant-design-pro/api.ts
Page templates
- Dashboard templates
src/pages/dashboard - Form templates
src/pages/form - List templates
src/pages/list - Profile templates
src/pages/profile - Account pages
src/pages/account - AI assistant
src/pages/chatbot - Other templates
src/pages
Worker API
- Route dispatcher
cloudflare-worker/src/index.ts - Dashboard routes
cloudflare-worker/src/routes/dashboard.ts - Geographic routes
cloudflare-worker/src/routes/geographic.ts - List routes
cloudflare-worker/src/routes/list.ts - Monitor routes
cloudflare-worker/src/routes/monitor.ts - Notice routes
cloudflare-worker/src/routes/notices.ts - Profile routes
cloudflare-worker/src/routes/profile.ts - Table routes
cloudflare-worker/src/routes/table.ts - User routes
cloudflare-worker/src/routes/user.ts - Settings routes
cloudflare-worker/src/routes/settings.ts - Error routes
cloudflare-worker/src/routes/errors.ts
Sample API data
- Dashboard samples
cloudflare-worker/src/data/dashboard.ts - Common samples
cloudflare-worker/src/data/common.ts - Notice samples
cloudflare-worker/src/data/notices.ts - Table samples
cloudflare-worker/src/data/table.ts - User samples
cloudflare-worker/src/data/user.ts
Other components
- Application user
Connections 26
- Application user → Runtime shell: uses
README.md - Runtime shell → User API client: queries user
src/app.tsx - Runtime shell → Shared components: renders layout
src/app.tsx - Runtime shell → Dashboard templates: offers templates
README.md - Runtime shell → Form templates: offers templates
README.md - Runtime shell → List templates: offers templates
README.md - Runtime shell → Profile templates: offers templates
README.md - Runtime shell → Account pages: offers templates
README.md - Runtime shell → AI assistant: offers template
README.md - Runtime shell → Other templates: offers templates
README.md - Route dispatcher → User routes: mounts routes
cloudflare-worker/src/index.ts - Route dispatcher → Dashboard routes: mounts routes
cloudflare-worker/src/index.ts - Route dispatcher → Table routes: mounts routes
cloudflare-worker/src/index.ts - Route dispatcher → Notice routes: mounts routes
cloudflare-worker/src/index.ts - Route dispatcher → Monitor routes: mounts routes
cloudflare-worker/src/index.ts - Route dispatcher → Error routes: mounts routes
cloudflare-worker/src/index.ts - Route dispatcher → Geographic routes: mounts routes
cloudflare-worker/src/index.ts - Route dispatcher → List routes: mounts routes
cloudflare-worker/src/index.ts - Route dispatcher → Profile routes: mounts routes
cloudflare-worker/src/index.ts - Route dispatcher → Settings routes: mounts routes
cloudflare-worker/src/index.ts - Dashboard routes → Dashboard samples: reads samples
cloudflare-worker/src/routes/dashboard.ts - List routes → Common samples: reads samples
cloudflare-worker/src/routes/list.ts - Notice routes → Notice samples: reads samples
cloudflare-worker/src/routes/notices.ts - Table routes → Table samples: reads samples
cloudflare-worker/src/routes/table.ts - User routes → User samples: uses samples
cloudflare-worker/src/routes/user.ts - Settings routes → Common samples: uses samples
cloudflare-worker/src/routes/settings.ts