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>
This commit is contained in:
zdl
2025-12-25 12:25:28 +08:00
parent d6cf776530
commit 2207a680b5
52 changed files with 426 additions and 468 deletions

View File

@@ -1,7 +1,7 @@
// src/views/Community/components/EventCard/atoms/EventFollowButton.js
import React from 'react';
import { IconButton, Box } from '@chakra-ui/react';
import { AiFillStar, AiOutlineStar } from 'react-icons/ai';
import { Star } from 'lucide-react';
/**
* 事件关注按钮组件
@@ -39,17 +39,11 @@ const EventFollowButton = ({
boxShadow: 'md'
}}
icon={
isFollowing ? (
<AiFillStar
size={iconSize}
color="gold"
/>
) : (
<AiOutlineStar
size={iconSize}
color="gold"
/>
)
<Star
size={iconSize}
color="gold"
fill={isFollowing ? "currentColor" : "none"}
/>
}
onClick={handleClick}
aria-label={isFollowing ? '取消关注' : '关注'}

View File

@@ -1,7 +1,7 @@
// src/views/Community/components/EventCard/atoms/EventImportanceBadge.js
import React from 'react';
import { Badge, Tooltip, VStack, HStack, Text, Divider, Circle } from '@chakra-ui/react';
import { InfoIcon } from '@chakra-ui/icons';
import { Info } from 'lucide-react';
import { getImportanceConfig, getAllImportanceLevels } from '@constants/importanceLevels';
/**
@@ -86,7 +86,7 @@ const EventImportanceBadge = ({
gap={1}
flexShrink={0}
>
{showIcon && <InfoIcon boxSize={2.5} />}
{showIcon && <Info size={10} />}
{importance || 'C'}
</Badge>
</Tooltip>

View File

@@ -1,7 +1,7 @@
// src/views/Community/components/EventCard/EventStats.js
import React from 'react';
import { HStack, Text, Tooltip } from '@chakra-ui/react';
import { ViewIcon, ChatIcon, StarIcon } from '@chakra-ui/icons';
import { Eye, MessageCircle, Star } from 'lucide-react';
/**
* 事件统计信息组件(浏览量、帖子数、关注数)
@@ -31,7 +31,7 @@ const EventStats = ({
{/* 浏览量 */}
<Tooltip label="浏览量" placement="top">
<HStack spacing={1}>
<ViewIcon boxSize={iconSize} />
<Eye size={iconSize === '12px' ? 12 : 16} />
<Text fontSize={fontSize}>{viewCount}</Text>
</HStack>
</Tooltip>
@@ -39,7 +39,7 @@ const EventStats = ({
{/* 帖子数 */}
<Tooltip label="帖子数" placement="top">
<HStack spacing={1}>
<ChatIcon boxSize={iconSize} />
<MessageCircle size={iconSize === '12px' ? 12 : 16} />
<Text fontSize={fontSize}>{postCount}</Text>
</HStack>
</Tooltip>
@@ -47,7 +47,7 @@ const EventStats = ({
{/* 关注数 */}
<Tooltip label="关注数" placement="top">
<HStack spacing={1}>
<StarIcon boxSize={iconSize} />
<Star size={iconSize === '12px' ? 12 : 16} />
<Text fontSize={fontSize}>{followerCount}</Text>
</HStack>
</Tooltip>