From 66668d85d603c5841d755a6023aa1925559fc6d4 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Wed, 25 Feb 2026 01:32:51 +0800 Subject: chore(workspace): replace legacy codes --- packages/ui-new/src/pages/index.tsx | 76 ------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 packages/ui-new/src/pages/index.tsx (limited to 'packages/ui-new/src/pages/index.tsx') diff --git a/packages/ui-new/src/pages/index.tsx b/packages/ui-new/src/pages/index.tsx deleted file mode 100644 index 54cfc1e..0000000 --- a/packages/ui-new/src/pages/index.tsx +++ /dev/null @@ -1,76 +0,0 @@ -import { useEffect } from "react"; -import { Outlet, useLocation } from "react-router"; -import { ParticleBackground } from "@/components/particle-background"; -import { Sidebar } from "@/components/sidebar"; -import { useAuthStore } from "@/models/auth"; -import { useSettingsStore } from "@/models/settings"; - -export function IndexPage() { - const authStore = useAuthStore(); - const settingsStore = useSettingsStore(); - - const location = useLocation(); - - useEffect(() => { - authStore.init(); - settingsStore.refresh(); - }, [authStore.init, settingsStore.refresh]); - - return ( -
-
- {settingsStore.config?.customBackgroundPath && ( - <> - Background - console.error("Failed to load main background:", e) - } - /> - {/* Dimming Overlay for readability */} -
- - )} - - {!settingsStore.config?.customBackgroundPath && ( - <> - {settingsStore.theme === "dark" ? ( -
- ) : ( -
- )} - - {location.pathname === "/" && } - -
- - )} - - {/* Subtle Grid Overlay */} -
-
- -
- - -
- -
-
-
- ); -} -- cgit v1.2.3-70-g09d2