merge: 同步 origin/ui-optimization(d224d5b6),保留 weiyuan 功能与 Semi 迁移
- 冲突以 weiyuan 功能(小程序登录、i18n 文案)为准,并保留远端 lint 重构与依赖收敛 - 删除 weiyuan 已移除、远端仅做 lint 修正的 3 个图片相关文件 - 适配远端零警告 ESLint:Monitoring/Subscription 改用 useEffectEvent,EditChannelModal 注明 t 依赖 - effect-events 单测补充 react-i18next mock - 对合并后仍不符合 Prettier 的文件做纯格式化
This commit is contained in:
+16
-12
@@ -17,6 +17,19 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { useEffectEvent } from '../../hooks/common/useEffectEvent';
|
||||
import {
|
||||
MoonshotMono as Moonshot,
|
||||
OpenAIMono as OpenAI,
|
||||
ZhipuColor as Zhipu,
|
||||
ClaudeColor as Claude,
|
||||
GeminiColor as Gemini,
|
||||
WenxinColor as Wenxin,
|
||||
SparkColor as Spark,
|
||||
DeepSeekColor as DeepSeek,
|
||||
QwenColor as Qwen,
|
||||
MidjourneyMono as Midjourney,
|
||||
} from '@/assets/brand-icons/primitives';
|
||||
import React, {
|
||||
useContext,
|
||||
useEffect,
|
||||
@@ -31,16 +44,6 @@ import { useActualTheme } from '../../context/Theme';
|
||||
import { marked } from 'marked';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Link, useNavigate } from 'react-router-dom';
|
||||
import Moonshot from '@lobehub/icons/es/Moonshot/components/Mono';
|
||||
import OpenAI from '@lobehub/icons/es/OpenAI/components/Mono';
|
||||
import Zhipu from '@lobehub/icons/es/Zhipu/components/Color';
|
||||
import Claude from '@lobehub/icons/es/Claude/components/Color';
|
||||
import Gemini from '@lobehub/icons/es/Gemini/components/Color';
|
||||
import Wenxin from '@lobehub/icons/es/Wenxin/components/Color';
|
||||
import Spark from '@lobehub/icons/es/Spark/components/Color';
|
||||
import DeepSeek from '@lobehub/icons/es/DeepSeek/components/Color';
|
||||
import Qwen from '@lobehub/icons/es/Qwen/components/Color';
|
||||
import Midjourney from '@lobehub/icons/es/Midjourney/components/Mono';
|
||||
import {
|
||||
Cpu,
|
||||
Server,
|
||||
@@ -246,9 +249,10 @@ const Home = () => {
|
||||
};
|
||||
}, [navigate, homePageContent]);
|
||||
|
||||
useEffect(() => {
|
||||
const onMount = useEffectEvent(() => {
|
||||
displayHomePageContent().then();
|
||||
}, []);
|
||||
});
|
||||
useEffect(() => onMount(), [onMount]);
|
||||
|
||||
// 核心能力数据 - 全方位 (8 items)
|
||||
const capabilities = [
|
||||
|
||||
Reference in New Issue
Block a user