个人用户管理开发
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
This commit is contained in:
50
.claude/skills/page-naming/SKILL.md
Normal file
50
.claude/skills/page-naming/SKILL.md
Normal file
@@ -0,0 +1,50 @@
|
||||
---
|
||||
name: shz-admin-page-naming
|
||||
description: Naming convention for new page directories in shz-admin. Use when creating a new page folder under src/pages/.
|
||||
---
|
||||
|
||||
# shz-admin 页面目录命名规范
|
||||
|
||||
新建页面时,文件夹命名遵循:**首单词首字母大写,其余字母全部小写**。
|
||||
|
||||
## 规则
|
||||
|
||||
```
|
||||
src/pages/{PageName}/
|
||||
```
|
||||
|
||||
- 第一个单词的首字母 **大写**
|
||||
- 其余所有字母(包括后续单词)**小写**
|
||||
- 不允许多个大写字母(驼峰)
|
||||
- 多个单词直接连写,不用分隔符
|
||||
|
||||
## 示例
|
||||
|
||||
```
|
||||
✅ Talentcollect ❌ TalentCollect
|
||||
✅ Mobileusers ❌ MobileUsers
|
||||
✅ Management ❌ ManagementList
|
||||
✅ Jobfair ❌ JobFair
|
||||
✅ Livemgmt ❌ LiveMgmt
|
||||
✅ Usermgmt ❌ UserMgmt
|
||||
```
|
||||
|
||||
## 目录结构
|
||||
|
||||
新建页面时的标准文件结构:
|
||||
|
||||
```
|
||||
src/pages/{PageName}/
|
||||
└── List/
|
||||
└── index.tsx
|
||||
```
|
||||
|
||||
如果页面有弹窗子组件,放在同级的 `components/` 下:
|
||||
|
||||
```
|
||||
src/pages/{PageName}/
|
||||
├── List/
|
||||
│ └── index.tsx
|
||||
└── components/
|
||||
└── SomeModal.tsx
|
||||
```
|
||||
Reference in New Issue
Block a user