Files
digital-pilates/constants/Routes.ts
richarjiang 83805a4b07 feat: Refactor MoodCalendarScreen to use dayjs for date handling and improve calendar data generation
feat: Update FitnessRingsCard to navigate to fitness rings detail page on press

feat: Modify NutritionRadarCard to enhance UI and add haptic feedback on actions

feat: Add FITNESS_RINGS_DETAIL route for navigation

fix: Adjust minimum fetch interval in BackgroundTaskManager for background tasks

feat: Implement haptic feedback utility functions for better user experience

feat: Extend health permissions to include Apple Exercise Time and Apple Stand Time

feat: Add functions to fetch hourly activity, exercise, and stand data for improved health tracking

feat: Enhance user preferences to manage fitness exercise minutes and active hours info dismissal
2025-09-05 15:32:34 +08:00

84 lines
1.8 KiB
TypeScript

// 应用路由常量定义
export const ROUTES = {
// Tab路由
TAB_EXPLORE: '/explore',
TAB_COACH: '/coach',
TAB_GOALS: '/goals',
TAB_STATISTICS: '/statistics',
TAB_PERSONAL: '/personal',
// 训练相关路由
WORKOUT_TODAY: '/workout/today',
WORKOUT_CREATE_SESSION: '/workout/create-session',
WORKOUT_SESSION: '/workout/session',
// 训练计划相关路由
TRAINING_PLAN: '/training-plan',
// 体态评估路由
AI_POSTURE_ASSESSMENT: '/ai-posture-assessment',
// 挑战路由
CHALLENGE: '/challenge',
CHALLENGE_DAY: '/challenge/day',
// 文章路由
ARTICLE: '/article',
// 用户相关路由
AUTH_LOGIN: '/auth/login',
PROFILE_EDIT: '/profile/edit',
PROFILE_GOALS: '/profile/goals',
// 法律相关路由
LEGAL_USER_AGREEMENT: '/legal/user-agreement',
LEGAL_PRIVACY_POLICY: '/legal/privacy-policy',
// 营养相关路由
NUTRITION_RECORDS: '/nutrition/records',
FOOD_LIBRARY: '/food-library',
// 体重记录相关路由
WEIGHT_RECORDS: '/weight-records',
// 健康相关路由
FITNESS_RINGS_DETAIL: '/fitness-rings-detail',
// 任务相关路由
TASK_DETAIL: '/task-detail',
// 目标管理路由 (已移至tab中)
// GOAL_MANAGEMENT: '/goal-management',
} as const;
// 路由参数常量
export const ROUTE_PARAMS = {
// 训练会话参数
WORKOUT_SESSION_ID: 'id',
// 训练计划参数
TRAINING_PLAN_ID: 'planId',
TRAINING_PLAN_TAB: 'tab',
// 挑战日参数
CHALLENGE_DAY: 'day',
// 文章参数
ARTICLE_ID: 'id',
// 任务参数
TASK_ID: 'taskId',
// 重定向参数
REDIRECT_TO: 'redirectTo',
REDIRECT_PARAMS: 'redirectParams',
} as const;
// 查询参数常量
export const QUERY_PARAMS = {
// 训练计划查询参数
TRAINING_PLAN_TAB_SCHEDULE: 'schedule',
// 教练页面参数
COACH_NAME: 'name',
} as const;