feat: 完善训练
This commit is contained in:
26
CLAUDE.md
26
CLAUDE.md
@@ -13,7 +13,29 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
|
||||
## Architecture
|
||||
- **Framework**: React Native (Expo) with TypeScript.
|
||||
- **Navigation**: Expo Router for file-based routing (`app/` directory).
|
||||
- **State Management**: Redux Toolkit with slices for different domains (user, training plans, workouts, challenges, etc.).
|
||||
- **UI**: Themed components (`ThemedText`, `ThemedView`) and reusable UI elements (`Collapsible`, `ParallaxScrollView`).
|
||||
- **API Layer**: Service files for communicating with backend APIs (`services/` directory).
|
||||
- **Data Persistence**: AsyncStorage for local data storage.
|
||||
- **Platform-Specific**: Android (`android/`) and iOS (`ios/`) configurations with native modules.
|
||||
- **Hooks**: Custom hooks for color scheme (`useColorScheme`) and theme management (`useThemeColor`).
|
||||
- **Dependencies**: React Navigation for tab-based navigation, Expo modules for native features (haptics, blur, etc.).
|
||||
- **Hooks**: Custom hooks for color scheme (`useColorScheme`), theme management (`useThemeColor`), and Redux integration (`useRedux`).
|
||||
- **Dependencies**: React Navigation for tab-based navigation, Expo modules for native features (haptics, blur, image picking, etc.), and third-party libraries for specific functionality.
|
||||
|
||||
## Key Features
|
||||
- **Authentication**: Login flow with Apple authentication support.
|
||||
- **Training Plans**: Creation and management of personalized pilates training plans.
|
||||
- **Workouts**: Daily workout tracking and session management.
|
||||
- **AI Features**: AI coach chat and posture assessment capabilities.
|
||||
- **Health Integration**: Integration with health data tracking.
|
||||
- **Content Management**: Article reading and educational content.
|
||||
- **Challenge System**: Challenge participation and progress tracking.
|
||||
- **User Profiles**: Personal information management and goal setting.
|
||||
|
||||
## Directory Structure
|
||||
- `app/`: Main application screens and routing
|
||||
- `components/`: Reusable UI components
|
||||
- `constants/`: Application constants and configuration
|
||||
- `hooks/`: Custom React hooks
|
||||
- `services/`: API service layer
|
||||
- `store/`: Redux store and slices
|
||||
- `types/`: TypeScript type definitions
|
||||
Reference in New Issue
Block a user