From 916537f25b356478fbfa5f375524c080d051da2c Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Sun, 26 Oct 2025 14:34:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=BF=E6=8D=A2=E4=B8=BA?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=90=9C=E7=B4=A2=E7=BB=84=E4=BB=B6=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除旧组件导入: EventFilters, SearchBox, PopularKeywords, ImportanceLegend, InvestmentCalendar - 添加 UnifiedSearchBox 组件导入(整合了多个组件功能) - 移除未使用的 Chakra UI Link 组件导入 - 添加注释说明 Antd 组件占位符 为后续 JSX 布局重构做准备 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/views/Community/index.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/Community/index.js b/src/views/Community/index.js index 39e8c38a..6176e9a8 100644 --- a/src/views/Community/index.js +++ b/src/views/Community/index.js @@ -47,7 +47,6 @@ import { Image, Divider, useColorModeValue, - Link, } from '@chakra-ui/react'; import { RepeatIcon, @@ -63,21 +62,20 @@ import { // 导入组件 import MidjourneyHeroSection from './components/MidjourneyHeroSection'; -import EventFilters from './components/EventFilters'; import EventList from './components/EventList'; import EventDetailModal from './components/EventDetailModal'; import StockDetailPanel from './components/StockDetailPanel'; -import SearchBox from './components/SearchBox'; -import PopularKeywords from './components/PopularKeywords'; import HotEvents from './components/HotEvents'; -import ImportanceLegend from './components/ImportanceLegend'; -import InvestmentCalendar from './components/InvestmentCalendar'; +import UnifiedSearchBox from './components/UnifiedSearchBox'; // 已整合 SearchBox、PopularKeywords、IndustryCascader import { eventService } from '../../services/eventService'; import { logger } from '../../utils/logger'; import { useNotification } from '../../contexts/NotificationContext'; // 导航栏已由 MainLayout 提供,无需在此导入 +// const { RangePicker } = DatePicker; +// const { Option } = AntSelect; + const filterLabelMap = { date_range: v => v ? `日期: ${v}` : '', sort: v => v ? `排序: ${v === 'new' ? '最新' : v === 'hot' ? '热门' : v === 'returns' ? '收益率' : v}` : '',