From 8ddfabf56744c5fe8027048cc321f293cb9b9002 Mon Sep 17 00:00:00 2001 From: Ahao Date: Sat, 26 Jul 2025 16:03:30 +0800 Subject: [PATCH] remove unnecessary components --- src/pages/home.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pages/home.tsx b/src/pages/home.tsx index d232f8ee..94f60fde 100644 --- a/src/pages/home.tsx +++ b/src/pages/home.tsx @@ -63,13 +63,6 @@ interface HomeCardsSettings { [key: string]: boolean; } -// 辅助函数解析URL和过期时间 -function parseUrl(url?: string) { - if (!url) return "-"; - if (url.startsWith("http")) return new URL(url).host; - return "local"; -} - // 卡片配置接口,包含排序信息 interface CardConfig { id: string; @@ -241,7 +234,6 @@ export const HomePage = () => { const { t } = useTranslation(); const { verge, patchVerge } = useVerge(); const { current, mutateProfiles } = useProfiles(); - const navigate = useNavigate(); const theme = useTheme(); // 设置弹窗的状态