zdl
|
dafef2c572
|
refactor(Center): 大幅简化,移除侧边栏逻辑
- 移除 WatchSidebar 相关代码(已移至全局 GlobalSidebar)
- 移除数据加载逻辑(由 GlobalSidebarContext 统一管理)
- 移除 useAuth、useLocation、useNavigate 等依赖
- 保留核心功能:MarketDashboard、ForumCenter、InvestmentPlanningCenter
- 代码从 ~260 行精简至 ~40 行
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-23 11:56:30 +08:00 |
|
zdl
|
22d731167c
|
refactor(Center): 移除 StrategyCenter,简化布局
- 移除 StrategyCenter 组件引用
- 移除右侧边栏的滚动条样式(由子组件自行处理)
- 更新投资规划中心注释说明
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-23 10:55:46 +08:00 |
|
zdl
|
93928f4ee7
|
feat(WatchSidebar): 恢复评论模块,添加 Tab 切换
- 在关注事件面板添加"我的评论" Tab
- 新增 MyCommentsTab 组件显示用户评论
- 评论显示:内容、关联事件、点赞/回复数、时间
- 更新类型定义支持评论数据传递
|
2025-12-23 10:05:45 +08:00 |
|
zdl
|
18ba36a539
|
refactor(Center): 全面优化个人中心模块
- 目录重命名:Dashboard → Center(匹配路由 /home/center)
- 删除遗留代码:Default.js、InvestmentPlansAndReviews.js、InvestmentCalendarChakra.js(共 2596 行)
- 创建 src/types/center.ts 类型定义(15+ 接口)
- 性能优化:
- 创建 useCenterColors Hook 封装 7 个 useColorModeValue
- 创建 utils/formatters.ts 提取纯函数
- 修复 loadRealtimeQuotes 的 useCallback 依赖项
- InvestmentPlanningCenter 添加 useMemo 缓存
- TypeScript 迁移:Center.js → Center.tsx
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-22 18:59:09 +08:00 |
|