lafay
2ddb9cadd8
refactor(App, navigation): migrate to Expo Router and clean up navigation structure
...
Frontend CI / build-and-push-web (push) Successful in 4m27s
Frontend CI / ota-android (push) Successful in 11m6s
Frontend CI / build-android-apk (push) Successful in 1h16m45s
- Updated App entry point to utilize Expo Router, simplifying the navigation setup.
- Removed legacy navigation components and services to streamline the codebase.
- Adjusted package.json to reflect the new entry point and updated dependencies for compatibility.
- Enhanced overall application structure by consolidating navigation logic and improving maintainability.
2026-03-24 14:21:31 +08:00
lan
82e99d24d8
Remove unnecessary console logs and replace them with void expressions for better performance and cleaner code. Update error logging to use console.error for consistency. This change enhances code readability and reduces console noise during execution.
Frontend CI / build-and-push-web (push) Failing after 2m18s
Frontend CI / ota-android (push) Failing after 6m15s
Frontend CI / build-android-apk (push) Failing after 29m51s
2026-03-24 03:02:54 +08:00
lafay
a005fb0a15
feat: add QR code login and enhance chat experience
...
- Add QR code login flow with scanner and confirmation screens
- Implement swipe-to-reply in chat with SwipeableMessageBubble
- Replace FlatList with FlashList for chat performance optimization
- Add Schedule stack navigator with CourseDetail screen support
- Configure deep linking for QR code login (carrotbbs://qrcode/login/:sessionId)
- Update branding from 胡萝卜 to 萝卜社区
- Display dynamic app version in settings
2026-03-20 19:28:42 +08:00
lafay
a8f7e907b6
chore: update package-lock.json for expo-linking
Frontend CI / ota-android (push) Successful in 11m14s
Frontend CI / build-and-push-web (push) Has been cancelled
Frontend CI / build-android-apk (push) Has been cancelled
2026-03-18 14:28:18 +08:00
lafay
a6cdb97e24
refactor: 架构重构 - 解耦过度耦合模块
...
主要改动:
1. 创建乐观更新工具函数 (optimisticUpdate.ts)
- 消除 userStore.ts 中的重复代码
2. 拆分 useResponsive.ts (485行 -> 12个专注模块)
- useBreakpoint: 断点检测
- useOrientation: 方向检测
- usePlatform: 平台检测
- useScreenSize: 屏幕尺寸
- useResponsiveValue: 响应式值
- useResponsiveStyle: 响应式样式
- useMediaQuery: 媒体查询
- useColumnCount: 列数计算
- useResponsiveSpacing: 响应式间距
3. 整理数据层 (Repository 层)
- ApiDataSource: API数据源
- LocalDataSource: 本地数据源
- CacheDataSource: 缓存数据源
- MessageRepository: 消息仓库
4. 重构 messageManager.ts (2194行 -> 4个模块)
- MessageStateManager: 状态管理
- WebSocketMessageHandler: WebSocket处理
- MessageSyncService: 消息同步
- ReadReceiptManager: 已读管理
5. 导航解耦 (MainNavigator.tsx: 1118行 -> 100行)
- 创建 NavigationService 解耦层
- 拆分多个 Navigator 组件
架构改进:
- 单一职责原则: 每个模块职责明确
- 依赖倒置: 通过接口解耦
- 代码复用: 工具函数可被多处使用
- 可测试性: 各模块可独立测试
2026-03-18 12:11:49 +08:00
lan
be84c01abd
Migrate frontend realtime messaging to SSE.
...
Switch service integrations and screen/store consumers from websocket events to SSE, and ignore generated dist-web artifacts.
Made-with: Cursor
2026-03-10 12:58:23 +08:00
lan
3968660048
Initial frontend repository commit.
...
Include app source and update .gitignore to exclude local release artifacts and signing files.
Made-with: Cursor
2026-03-09 21:29:03 +08:00