✨ feat: 完整应用重构 - 优化界面架构与用户体验
主要变更: - 重构应用界面:优化首页、登录、认证流程 - 新增用户档案模块:包含完整的档案管理组件 - 优化路由结构:重新组织页面布局和导航 - 改进API集成:新增活动、内容分类等API模块 - 删除冗余组件:清理不必要的文件和依赖 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { View, StyleSheet, Animated, TouchableOpacity } from 'react-native';
|
||||
import { View, StyleSheet, Animated, TouchableOpacity, type ColorValue } from 'react-native';
|
||||
import { ThemedView } from '@/components/themed-view';
|
||||
import { ThemedText } from '@/components/themed-text';
|
||||
import { LinearGradient } from 'expo-linear-gradient';
|
||||
@@ -47,18 +47,18 @@ export function RunProgressView({ progress, onCancel }: RunProgressViewProps) {
|
||||
}
|
||||
}, [progress.status, pulseAnimation]);
|
||||
|
||||
const getStatusColor = () => {
|
||||
const getStatusColor = (): readonly [ColorValue, ColorValue] => {
|
||||
switch (progress.status) {
|
||||
case 'pending':
|
||||
return ['#FFA500', '#FF8C00']; // 橙色
|
||||
return ['#FFA500', '#FF8C00'] as const; // 橙色
|
||||
case 'running':
|
||||
return ['#4ECDC4', '#44A3A0']; // 青色
|
||||
return ['#4ECDC4', '#44A3A0'] as const; // 青色
|
||||
case 'completed':
|
||||
return ['#52B788', '#40916C']; // 绿色
|
||||
return ['#52B788', '#40916C'] as const; // 绿色
|
||||
case 'failed':
|
||||
return ['#FF6B6B', '#FF5252']; // 红色
|
||||
return ['#FF6B6B', '#FF5252'] as const; // 红色
|
||||
default:
|
||||
return ['#999999', '#666666'];
|
||||
return ['#999999', '#666666'] as const;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user