Loading...
Loading...
Compare original and translation side by side
references/ddd-fsd-fundamentals.mdreferences/ddd-fsd-fundamentals.mdApp -> Pages -> Widgets -> Features -> Entities -> Sharedfeatures/cartfeatures/authui/model/api/lib/config/index.tsreferences/fsd-layers-guide.mdApp -> Pages -> Widgets -> Features -> Entities -> Sharedfeatures/cartfeatures/authui/model/api/lib/config/index.tsreferences/fsd-layers-guide.mdComponentName/
├── index.tsx # React logic & JSX
├── types.ts # TypeScript interfaces
└── styles.ts # CSS-in-JS (Emotion/styled-components)references/component-structure.mdComponentName/
├── index.tsx # React逻辑与JSX代码
├── types.ts # TypeScript接口定义
└── styles.ts # CSS-in-JS(Emotion/styled-components)references/component-structure.mdService Layer (Pure TS) -> Hook Layer (React Query) -> Componentsreferences/data-layer-architecture.md服务层(纯TS代码) -> Hook层(React Query) -> 组件references/data-layer-architecture.mdmodel/references/state-management.mdmodel/references/state-management.md| Target | Case | Example |
|---|---|---|
| Component | PascalCase | |
| Interface | PascalCase | |
| Variable | camelCase | |
| Boolean | camelCase | |
| Constant | UPPER_SNAKE | |
| Hook | camelCase | |
references/typescript-conventions.md| 目标对象 | 命名格式 | 示例 |
|---|---|---|
| 组件 | PascalCase | |
| 接口 | PascalCase | |
| 变量 | camelCase | |
| 布尔值 | camelCase | 前缀为 |
| 常量 | UPPER_SNAKE | |
| Hook | camelCase | |
references/typescript-conventions.md| Task | Reference |
|---|---|
| Architecture design | |
| Folder structure | |
| Component creation | |
| API/Data layer | |
| State management | |
| Code conventions | |
| 任务 | 参考文档 |
|---|---|
| 架构设计 | |
| 文件夹结构规划 | |
| 组件创建 | |
| API/数据层搭建 | |
| 状态管理配置 | |
| 代码规范落地 | |
python scripts/create_fsd_structure.py <project-root> [--slices cart auth user]python scripts/create_fsd_structure.py <project-root> [--slices cart auth user]python scripts/create_component.py <path> <ComponentName>python scripts/create_component.py <path> <ComponentName>python scripts/create_service_hook.py <feature-path> <service-name>python scripts/create_service_hook.py <feature-path> <service-name>python scripts/create_zustand_store.py <feature-path> <store-name>python scripts/create_zustand_store.py <feature-path> <store-name>anyany