Cursor rule
.cursor/rules/routing.mdc[object Object]
Cursor rules
Quality
53/100
Scores the file, not the repository.Length
145 words
3 headings · 1 code blocksRepository
0
— · pushed 377 days agoLast changed
3 days ago
First indexed 3 days ago.123456# 路由系统规范78## 1. 文件系统路由结构9```10src/pages/11├── index.tsx // 首页 -> /12├── (base)/ // 路由组,不生成路由13│ ├── layout.tsx // 基础布局14│ ├── loading.tsx // 加载状态15│ ├── error.tsx // 错误处理16│ ├── home/17│ │ └── index.tsx // /home18│ ├── user/19│ │ ├── index.tsx // /user20│ │ ├── [id].tsx // /user/:id21│ │ └── profile/22│ │ └── index.tsx // /user/profile23│ └── manage/24│ ├── role/25│ │ ├── index.tsx // /manage/role26│ │ └── [...slug].tsx // /manage/role/any/path27├── (blank)/ // 空白布局路由组28│ ├── layout.tsx29│ └── login/30│ └── index.tsx // /login31└── _builtin/ // 忽略文件夹,不生成路由32 ├── 403/33 │ └── index.tsx // /40334 ├── 404/35 │ └── index.tsx // /40436 └── 500/37 └── index.tsx // /50038```3940### 2. 路由组件规范41- **页面级组件**:`index.tsx`、`[id].tsx`、`[...slug].tsx`42- **布局级组件**:`layout.tsx` 为当前目录及子目录提供布局43- **路由组**:用括号包裹的文件夹 `(base)`,只提供布局不生成路由44- **忽略文件夹**:以 `_` 开头的文件夹,内容会聚合到上级路由45- **异步状态组件**:`loading.tsx` 处理加载状态46- **错误边界组件**:`error.tsx` 处理错误状态47
Also in crunl/Xingyu-Frontend
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| crunl/Xingyu-Frontend.cursor/rules/api.mdc · 0 | Cursor rules | api | 45/100 | 3 days ago | |
| crunl/Xingyu-Frontend.cursor/rules/comments.mdc · 0 | Cursor rules | securityapidocs | 46/100 | 3 days ago | |
| crunl/Xingyu-Frontend.cursor/rules/componenting.mdc · 0 | Cursor rules | no sections | 45/100 | 3 days ago | |
| crunl/Xingyu-Frontend.cursor/rules/naming.mdc · 0 | Cursor rules | archtypesapiui | 58/100 | 3 days ago | |
| crunl/Xingyu-Frontend.cursor/rules/project.mdc · 0 | Cursor rules | no sections | 50/100 | 3 days ago | |
| crunl/Xingyu-Frontend.cursor/rules/reduxing.mdc · 0 | Cursor rules | no sections | 45/100 | 3 days ago | |
| crunl/Xingyu-Frontend.cursor/rules/styling.mdc · 0 | Cursor rules | archui | 54/100 | 3 days ago | |
| crunl/Xingyu-Frontend.cursor/rules/typescript.mdc · 0 | Cursor rules | typesdocs | 42/100 | 3 days ago |
Diff against .cursor/rules/api.mdc Diff against .cursor/rules/comments.mdc Diff against .cursor/rules/componenting.mdc Diff against .cursor/rules/naming.mdc Diff against .cursor/rules/project.mdc Diff against .cursor/rules/reduxing.mdc Diff against .cursor/rules/styling.mdc Diff against .cursor/rules/typescript.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
