menu-auth-routes
CommunityGenerate menu-driven routes from MenuItem trees.
AuthorAii-Group
Version1.0.0
Installs0
System Documentation
What problem does it solve?
根据 MenuItem 菜单树在 src/routes/_authentication 下生成 TanStack Router 文件路由,按 staticData.key 维护 src/locales/business/Menu 双语文案;同名文件覆盖脚手架页面。在用户新增/调整后台菜单与页面路由、从接口或配置菜单批量落地路由与 i18n 时使用。
Core Features & Use Cases
- 自动从 MenuItem[] 树生成站内路由文件,并对接 TanStack Router
- 将 Menu.{key} 的双语文案写入 src/locales/business/Menu/en.yaml 与 zh.yaml,并保持同步
- 当后台菜单或页面路由调整时,覆盖同名脚手架页面以实现快速落地
- 路由 URL 与 kebab-case 文件结构保持一致,叶子节点会生成对应页面
- 与路由生成工具配合,确保菜单变更后路由和国际化数据同步更新
Quick Start
Define or update your MenuItem[] tree and trigger the route generation process to auto-create authentication routes and Menu i18n entries.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: menu-auth-routes Download link: https://github.com/Aii-Group/AII-Admin-Cli/archive/main.zip#menu-auth-routes Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.