fix: 修复 React 18 依赖兼容性并完善开发配置

调整 LobeHub、Ant Design 和 Vite 版本,移除未使用的 TypeScript 和语言检测直接依赖。

使用现有 Lucide 图标替代缺失的 FastGPT、Jimeng 导出,保留 React 18 和业务处理逻辑。

补充依赖、构建产物、日志、缓存及本地环境配置的 Git 忽略规则,并新增项目分析与开发上手指南及 README 入口。

验证:128 项测试通过,生产构建成功,修改文件 ESLint 检查通过;开发环境登录页可渲染,后端接口联调尚未验证。
This commit is contained in:
zhanjunhao
2026-10-17 12:51:07 +08:00
parent 9a22d7eeec
commit 3b195704bf
5 changed files with 585 additions and 12 deletions
+4 -5
View File
@@ -18,7 +18,8 @@ For commercial licensing, please contact support@quantumnous.com
*/
import i18next from 'i18next';
import { Lock } from 'lucide-react';
// React 18-compatible LobeHub icons lack these brands; use generic icons.
import { Lock, Bot as FastGPT, Image as Jimeng } from 'lucide-react';
import { Modal, Tag, Typography, Avatar } from '@douyinfe/semi-ui';
import { copy, getCurrencySymbol, showSuccess } from './utils';
import { visit } from 'unist-util-visit';
@@ -50,9 +51,7 @@ import {
Dify,
Coze,
SiliconCloud,
FastGPT,
Kling,
Jimeng,
Perplexity,
Replicate,
} from '@lobehub/icons';
@@ -411,14 +410,14 @@ export function getChannelIcon(channelType) {
case 50: // 可灵 Kling
return <Kling.Color size={iconSize} />;
case 51: // 即梦 Jimeng
return <Jimeng.Color size={iconSize} />;
return <Jimeng size={iconSize} />;
case 54: // 豆包视频 Doubao Video
return <Doubao.Color size={iconSize} />;
case 56: // Replicate
return <Replicate size={iconSize} />;
case 8: // 自定义渠道
case 22: // 知识库:FastGPT
return <FastGPT.Color size={iconSize} />;
return <FastGPT size={iconSize} />;
case 21: // 知识库:AI Proxy
case 44: // 嵌入模型:MokaAI M3E
default: