Commit Graph

1850 Commits

Author SHA1 Message Date
zdl
011ddaf96d refactor(Profile): 迁移毛玻璃效果到统一配置
- PredictionCard.js: 使用 GLASS_BLUR.sm 替代 blur(8px)
- CommunityFeedCard.js: 使用 GLASS_BLUR.sm 替代 blur(8px)
- StatCard.js: 使用 GLASS_BLUR.sm 替代 blur(8px)
- RiseFallChart.js: 使用 GLASS_BLUR.sm 替代 blur(8px)
- IndexCard.js: 使用 GLASS_BLUR.sm 替代 blur(8px)
- ConceptItem.js: 使用 GLASS_BLUR.sm 替代 blur(8px)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-26 11:32:11 +08:00
zdl
632b8794fe refactor(Company): 迁移毛玻璃效果到统一配置
- theme.ts: 使用 GLASS_BLUR.lg/md 替代硬编码的 blur 值
- DarkGoldCard.tsx: 使用 GLASS_BLUR.md 替代 blur(12px)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-26 11:31:33 +08:00
zdl
1754ec7440 refactor(Home): 迁移毛玻璃效果到统一配置
- FeatureCard.tsx: 使用 GLASS_BLUR.sm 替代 blur(10px)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-26 11:30:40 +08:00
zdl
5eeb4f9e15 refactor(Community): 迁移毛玻璃效果到统一配置
- HeroPanel.js: 使用 GLASS_BLUR.sm 替代 blur(8px) 和 blur(10px)
- DynamicNewsEventCard.js: 使用 GLASS_BLUR.sm 替代 blur(10px)
- HorizontalDynamicNewsEventCard.js: 使用 GLASS_BLUR.sm 替代 blur(10px)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-26 11:30:07 +08:00
zdl
50031d5961 refactor(LimitAnalyse): 迁移毛玻璃效果到统一配置
- index.js: 使用 GLASS_BLUR.sm 替代 blur(10px)
- SearchComponents.js: 使用 GLASS_BLUR.xs 替代 blur(5px)
- DataVisualizationComponents.js: 使用 GLASS_BLUR.sm 替代 blur(10px)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-26 11:29:09 +08:00
zdl
d6d5885c10 feat(ValueForum): 优化页面布局和加载状态
- 添加响应式左右 padding
- 使用 PageLoader 统一加载样式
- 修复预测市场数据格式处理

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 18:48:38 +08:00
zdl
476f4ad826 fix(auth): 优化 ProtectedRoute 加载状态和逻辑
- 使用 PageLoader 替换白色加载背景
- 未登录时不渲染子组件,显示加载状态
- 登录成功后才显示受保护内容

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 18:48:33 +08:00
zdl
7f7013931d feat(PageLoader): 添加 inline 模式支持
- 新增 inline 参数,用于页面内部加载状态
- 保持原有全屏模式用于路由懒加载

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 18:48:26 +08:00
zdl
16909d2e90 feat(mock): 添加论坛帖子 Mock 数据和 API
- 新增 forum.js Mock 数据(帖子、评论)
- 新增 forum handlers(Elasticsearch 风格 API)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 18:48:19 +08:00
zdl
05578bd6da feat(mock): 添加预测市场和论坛帖子 Mock 数据
- 新增 prediction.js Mock 数据(预测话题列表)
- 新增 prediction handlers(/api/prediction/topics 等)
- 新增 forum.js Mock 数据(帖子、评论)
- 新增 forum handlers(Elasticsearch 风格 API)
- 注册到 handlers/index.js

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 18:48:11 +08:00
zdl
e1c974c4af refactor(ValueForum): 迁移毛玻璃效果到统一配置 - 批次6
- TradeModal.js: Modal overlay 使用 GLASS_BLUR.xs
- CommentInvestModal.js: Modal overlay 使用 GLASS_BLUR.xs
- PredictionGuideModal.js: Modal overlay 使用 GLASS_BLUR.xs
- CreatePredictionModal.js: Modal overlay 使用 GLASS_BLUR.xs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 16:42:17 +08:00
zdl
3911095022 refactor(Concept): 迁移毛玻璃效果到统一配置 - 批次5
- index.js: 10+ 处使用 GLASS_BLUR.lg/sm
- ConceptTimelineModal.js: Modal overlay 使用 GLASS_BLUR.sm/lg
- BreadcrumbNav.js: 深色主题样式使用 GLASS_BLUR.lg
- ConceptStatsPanel.js: 玻璃态卡片使用 GLASS_BLUR.lg
- HierarchyView.js: 4处使用 GLASS_BLUR.lg/sm
- ForceGraphView.js: 4处使用 GLASS_BLUR.lg

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 16:39:48 +08:00
zdl
b0e1a4f474 refactor(StockOverview): 迁移毛玻璃效果到统一配置 - 批次4
- index.js: 使用 GLASS_BLUR.lg 替代 blur(20px)
- glassTheme.js: 从全局 glassConfig 导入配置
- FlexScreen/index.tsx: 使用 GLASS_BLUR.lg
- QuoteTile.tsx: 使用 GLASS_BLUR.sm
- AlertDetailDrawer.js: 使用 GLASS_BLUR.xs/lg

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 16:33:45 +08:00
zdl
c29e9e9cc7 refactor(glass): 批次3 - 迁移 AgentChat 页面使用统一毛玻璃配置
迁移以下 10 个 AgentChat 模块文件:
- index.js: GLASS_BLUR.lg 替换 blur(20px)
- LeftSidebar/index.js: GLASS_BLUR.lg/sm 替换 blur(20px)/blur(10px)
- LeftSidebar/SessionCard.js: GLASS_BLUR.md 替换 blur(12px)
- RightSidebar/index.js: GLASS_BLUR.lg/sm/md 替换多处硬编码
- RightSidebar/ToolSelector.tsx: GLASS_BLUR.md 替换 blur(12px)
- ChatArea/index.js: GLASS_BLUR.lg/sm 替换多处硬编码
- ChatArea/MessageRenderer.js: GLASS_BLUR.md 替换 blur(16px)
- ChatArea/WelcomeScreen.js: GLASS_BLUR.md 替换 blur(12px)
- ChatArea/ExecutionStepsDisplay.js: GLASS_BLUR.sm 替换 blur(10px)
- MeetingRoom/index.js: GLASS_BLUR.lg 替换 blur(20px)

保留 saturate(180%) 组合效果

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 16:28:35 +08:00
zdl
5c4bcce125 refactor(glass): 批次2 - 迁移 Company 页面使用统一毛玻璃配置
迁移以下 5 个 Company 模块文件:
- fui.ts: FUI_GLASS 改用全局 GLASS_BLUR/BG/BORDER 常量
- index.ts: GLASS 常量改用全局配置
- AnalysisModal.tsx: GLASS_BLUR.sm 替换 blur(8px)
- DynamicTrackingNavSkeleton.tsx: GLASS_BLUR.lg 替换 blur(20px)
- CompanyOverviewNavSkeleton.tsx: GLASS_BLUR.lg 替换 blur(20px)

保持 FUI_GLASS 导出不变,确保向后兼容

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 16:22:19 +08:00
zdl
8643a38a81 refactor(glass): 批次1 - 迁移全局组件使用统一毛玻璃配置
迁移以下 10 个组件使用 glassConfig.ts 统一配置:
- GlassCard: GLASS_BLUR/GLASS_SHADOW 替换硬编码 blur/glow
- SubTabContainer: GLASS_BLUR.lg 替换 blur(20px)
- HomeNavbar: GLASS_BLUR.sm 替换 blur(10px)
- AuthModalManager: GLASS_BLUR.sm 替换 blur(10px)
- WechatRegister: GLASS_BLUR.xs 替换 blur(4px)
- SubscriptionModal: GLASS_BLUR.xs 替换 blur(4px)
- SubscriptionContentNew: GLASS_BLUR.sm/lg/xl 替换多处硬编码
- ImageLightbox: GLASS_BLUR.sm 替换 blur(10px)
- ImagePreviewModal: GLASS_BLUR.sm 替换 blur(10px)
- FuiContainer: GLASS_BLUR.md 替换 blur(16px)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 16:18:55 +08:00
zdl
49f71af0c5 feat(glass): 创建统一毛玻璃效果配置文件
新增 src/constants/glassConfig.ts:
- GLASS_BLUR: 5 级模糊值 (xs/sm/md/lg/xl)
- GLASS_BG: 9 种背景色 (白色系/金色系/深色系)
- GLASS_BORDER: 5 种边框样式
- GLASS_SHADOW: 7 种阴影效果
- GLASS_PRESET: 8 个预设组合 (card/navbar/modal/floating 等)

整合 GlassCard、fui.ts、glassTheme.js 三套配置的精华,
为后续 65+ 文件的毛玻璃效果统一迁移做准备。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 16:14:00 +08:00
zdl
c5f7929c30 style(PageLoader): 适配黑金主题配色
- 背景色改为 forumColors.background.main (#0A0A0A)
- Spinner 颜色改为 forumColors.text.gold (#FFC107)
- 文字颜色改为 forumColors.text.secondary (#B8B8B8)
- 移除 _dark 暗色模式样式,统一使用黑金主题

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 16:13:04 +08:00
zdl
e6a4c5b462 refactor(Icons): 删除 17 个未使用的图标定义
移除以下未使用图标:
- CreditIcon, DashboardLogo, DashboardLogoWhite
- DocumentIcon, GlobeIcon, HelpIcon, HomeIcon
- PayPalIcon, PersonIcon, ProfileIcon
- SupportIcon, StatsIcon, WalletIcon
- BitcoinLogo, ArgonLogoMinifiedDark, ArgonLogoMinifiedLight
- WechatPayIcon, QRCodeIcon

减少 354 行代码 (736行 → 382行,减少 48%)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 16:13:04 +08:00
0afd05301c 添加用户的看多/看空逻辑 2025-12-25 14:58:04 +08:00
zdl
2841cec6f3 fix(Concept): 修复未导入的 react-icons 图标引用
将 ConceptCenter 中遗留的 react-icons 图标替换为 lucide-react:
- FaCube → BoxIcon
- FaSitemap → Network
- FaList → List
- FaArrowUp/FaArrowDown → ArrowUp/ArrowDown
- FaLock → Lock
- FaHistory → History
- FaChartLine → LineChart

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 14:03:38 +08:00
zdl
0e795563c0 perf(Navbar): 移除自选股/事件按钮,清理无用代码
NavbarActions:
- 移除 WatchlistMenu 和 FollowingEventsMenu 组件
- 移除 watchlistQuotes/followingEvents props

HomeNavbar:
- 移除 useWatchlist/useFollowingEvents hooks 调用
- 移除相关导入和 props 传递

TabletUserMenu:
- 移除 watchlistQuotes/followingEvents props
- 简化菜单项(移除数量 Badge)

性能提升:
- 减少 2 个 hook 初始化和 4+ 个 Redux selector 订阅
- 减少导航栏初始化时的 API 请求
- 侧边工具栏不受影响(有独立的 GlobalSidebarContext)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 14:02:30 +08:00
08850249e7 添加用户的看多/看空逻辑 2025-12-25 13:59:35 +08:00
e92c4eb724 添加用户的看多/看空逻辑 2025-12-25 13:54:56 +08:00
ed75f1789e 添加用户的看多/看空逻辑 2025-12-25 13:40:11 +08:00
448fe52431 添加用户的看多/看空逻辑 2025-12-25 13:25:52 +08:00
b0ae9c9f81 Merge branch 'feature_bugfix/251217_stock' of https://git.valuefrontier.cn/vf/vf_react into feature_bugfix/251217_stock 2025-12-25 13:16:01 +08:00
bcafafe34c 事件标记线bug修复 2025-12-25 13:15:57 +08:00
zdl
f02795d960 style(GlobalSidebar): 优化收起状态文字样式
- 字体大小从 10px 调整为 xs (12px)
- 文字亮度从 0.5/0.6 提升到 0.8/0.85
- 添加 fontWeight="medium" 加粗显示

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:05:26 +08:00
zdl
b32e3535f5 refactor(layout): 统一 z-index 配置
- layoutConfig.js: 添加 Z_INDEX.FOOTER (1000,与 NAVBAR 同级)
- HomeNavbar.js: zIndex 从硬编码 1000 改为 Z_INDEX.NAVBAR
- AppFooter.js: 添加 zIndex={Z_INDEX.FOOTER}

导航栏和页脚的 z-index 现在统一在 layoutConfig.js 中配置。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:01:49 +08:00
zdl
54c8ec3660 refactor(layout): 统一布局边距配置,改用百分比
- layoutConfig.js: LAYOUT_PADDING.x 改为 { base: 4, md: 6, lg: '12%' }
- HomeNavbar.js: 导入 LAYOUT_PADDING,替换硬编码边距
- AppFooter.js: 导入 LAYOUT_PADDING,替换硬编码边距

现在导航栏、内容区、页脚统一使用 LAYOUT_PADDING.x 配置,
修改边距只需调整 layoutConfig.js 一处即可全局生效。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:41 +08:00
zdl
ccbef35cf3 refactor(icons): 迁移公共模块图标到 lucide-react
- constants/importanceLevels.js: 重要性等级图标
- constants/notificationTypes.js: 通知类型图标
- contexts/NotificationContext.js: 通知上下文图标
- layouts/components/BackToTopButton.js: 返回顶部按钮
- utils/priceFormatters.js: 价格格式化图标
- variables/general.js: 通用变量图标

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:41 +08:00
zdl
c820cfa804 refactor(icons): 迁移其他 views 目录图标到 lucide-react
- views/Center, views/Community, views/DataBrowser 等
- views/EventDetail, views/LimitAnalyse, views/StockOverview
- views/TradingSimulation, views/Pages, views/Authentication
- views/Profile, views/Settings
- 处理 Tag/TagIcon 命名冲突
- 涉及 52 个组件文件

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:41 +08:00
zdl
d4e671428d refactor(icons): 迁移 views/Concept 目录图标到 lucide-react
- @chakra-ui/icons → lucide-react
- react-icons → lucide-react
- 处理 Box/BoxIcon 命名冲突
- 涉及 6 个组件文件

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:41 +08:00
zdl
29f6701de3 refactor(icons): 迁移 views/Company 目录图标到 lucide-react
- @chakra-ui/icons → lucide-react
- react-icons → lucide-react
- IconType → LucideIcon 类型替换
- 涉及 50 个组件文件

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:41 +08:00
zdl
b2100d6f75 refactor(icons): 迁移 components 目录图标到 lucide-react
- @chakra-ui/icons → lucide-react
- react-icons → lucide-react
- 涉及 49 个组件文件

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:40 +08:00
zdl
5b05ae17c9 fix(eslint): 修复本地规则导出格式
eslint-plugin-local-rules 需要直接导出规则对象,
而非包裹在 { rules: {...} } 中

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:40 +08:00
zdl
5a4e6d2a03 fix(eslint): 修复插件冲突和本地规则加载问题
- 移除重复的 @typescript-eslint 插件声明(react-app 已包含)
- 重命名 eslint-rules → eslint-local-rules(符合插件约定)
- 简化 TypeScript overrides,仅保留规则覆盖

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:40 +08:00
zdl
7f4f9e4032 feat(Company): 优化主题系统,添加颜色工具函数和 ESLint 规则
- 新增 colorUtils.ts:提供 alpha()、hex()、fui.* 语义化颜色 API
- 新增 chartTheme:统一图表主题配置(坐标轴、tooltip、渐变等)
- 扩展 FUI_COLORS.line:完整的透明度级别(0.03-0.8)
- 新增 ESLint 规则:检测硬编码金色值(rgba/hex),warning 级别
- 迁移 chartOptions.ts:~15 处硬编码值改用工具函数
- 迁移 shared/styles.ts:~8 处硬编码值改用工具函数

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:40 +08:00
zdl
fc13666ff0 chore: 清理未使用的样式文件
- 删除 FontAwesome v4 兼容文件 (v4-shims, v4-font-face)
- 删除 soft-ui-dashboard CSS 文件
- 删除 soft-design-system-pro CSS 和 SCSS 目录
- 删除 _shims.scss

这些文件在业务代码中没有任何引用,属于历史遗留文件

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:40 +08:00
57cd0aa8ec 事件标记线bug修复 2025-12-25 11:52:05 +08:00
3916055f85 事件标记线bug修复 2025-12-25 11:46:09 +08:00
f8688159e0 事件标记线bug修复 2025-12-25 11:44:01 +08:00
a34542ad01 事件标记线bug修复 2025-12-25 11:39:56 +08:00
87b3a28c0e 事件标记线bug修复 2025-12-25 10:04:26 +08:00
506008a7ae Merge branch 'feature_bugfix/251217_stock' of https://git.valuefrontier.cn/vf/vf_react into feature_bugfix/251217_stock 2025-12-24 18:39:54 +08:00
c98928f703 滚动条样式更新 2025-12-24 18:39:48 +08:00
zdl
4572fcac30 feat(LimitAnalyse): 优化数据可视化组件
- 改进板块分布饼图展示
- 优化涨停时段统计图表

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-24 18:34:42 +08:00
zdl
080dbdb26b feat(mock): 完善涨停分析 Mock 数据结构
- 新增午盘、尾盘涨停数量统计
- 添加 chart_data 字段支持板块分布饼图

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-24 18:34:42 +08:00
zdl
f5dbdfa84c refactor(layout): 统一页面边距管理,移除 Container 限制
- layoutConfig.js: 新增 LAYOUT_PADDING 常量 { base: 4, md: 6, lg: '80px' }
- MainLayout.js: 在 Outlet 容器上统一应用 px={LAYOUT_PADDING.x}
- HomeNavbar.js: 边距从 lg:8 改为 lg:'80px',与内容区对齐
- AppFooter.js: 移除 Container,边距改为 lg:'80px'

页面组件清理(移除冗余的 px/Container):
- Company, Community, Center, Profile, Settings
- ValueForum, DataBrowser, LimitAnalyse, StockOverview, Concept

特殊处理:
- CompanyHeader: 使用负边距实现全宽背景
- Concept Hero: 使用负边距实现全宽背景

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-24 18:34:42 +08:00