Files
browser/platform_web/schemas/frontend-structure.md
T
2026-07-11 14:56:10 +08:00

13 lines
713 B
Markdown

# Frontend Structure Rules
Validation rules for future frontend checks:
- Page components must not define shared API request/response types.
- Route definitions must live under `routes/`.
- API clients must live under `api/`.
- Plugin bridge contracts must live under `contracts/`.
- Validation schemas must live under `schemas/`.
- Visual theme tokens, shared surface styles, and background behavior must live under `theme/`, and `theme/README.md` must document the active style contract.
- Full-workspace magical ultimate-effect behavior must live in `components/MagicalParticleLayer.tsx` and be mounted from shared shell chrome, not copied into individual pages.
- Shared utilities must live under `utils/`.