docs: 完成所有文档的中文翻译并应用到项目

This commit is contained in:
xuxiang
2026-01-28 00:12:54 +08:00
parent 0ced59a26b
commit e133f58e1c
76 changed files with 6808 additions and 6170 deletions

View File

@@ -1,6 +1,6 @@
# Common Patterns
# 通用模式(Common Patterns
## API Response Format
## API 响应格式API Response Format
```typescript
interface ApiResponse<T> {
@@ -15,7 +15,7 @@ interface ApiResponse<T> {
}
```
## Custom Hooks Pattern
## 自定义 Hook 模式(Custom Hooks Pattern
```typescript
export function useDebounce<T>(value: T, delay: number): T {
@@ -30,7 +30,7 @@ export function useDebounce<T>(value: T, delay: number): T {
}
```
## Repository Pattern
## 仓储模式(Repository Pattern
```typescript
interface Repository<T> {
@@ -42,14 +42,14 @@ interface Repository<T> {
}
```
## Skeleton Projects
## 骨架项目(Skeleton Projects
When implementing new functionality:
1. Search for battle-tested skeleton projects
2. Use parallel agents to evaluate options:
- Security assessment
- Extensibility analysis
- Relevance scoring
- Implementation planning
3. Clone best match as foundation
4. Iterate within proven structure
在实现新功能时:
1. 搜索经过实战检验的骨架项目Skeleton Projects
2. 使用并行智能体Parallel Agents)评估备选项:
- 安全性评估(Security assessment
- 可扩展性分析(Extensibility analysis
- 相关性评分(Relevance scoring
- 实施计划(Implementation planning
3. 克隆最匹配的项目作为基础
4. 在已验证的结构内进行迭代