From 16739d3cf8cf79b31a4fa4dbb380b4a5f640fd3a Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Mon, 18 May 2026 20:44:29 +0800 Subject: [PATCH] refactor(ui): update me/profile pages for new theme system Update MeLayout, MePage, and all me/components (ActivityTimeline, NotificationList, ProfileHeader, ProjectList, RepoList) to use CSS variable-based theme tokens and improved layout. --- src/app/me/MeLayout.tsx | 115 ++++--- src/app/me/MePage.tsx | 299 +++++++++++------- src/app/me/components/ActivityTimeline.tsx | 138 ++++++--- src/app/me/components/NotificationList.tsx | 287 ++++++++++------- src/app/me/components/ProfileHeader.tsx | 338 +++++++++++++-------- src/app/me/components/ProjectList.tsx | 150 +++++---- src/app/me/components/RepoList.tsx | 142 ++++++--- 7 files changed, 920 insertions(+), 549 deletions(-) diff --git a/src/app/me/MeLayout.tsx b/src/app/me/MeLayout.tsx index c36aea0..5fca777 100644 --- a/src/app/me/MeLayout.tsx +++ b/src/app/me/MeLayout.tsx @@ -1,64 +1,81 @@ -import { Outlet, useLocation } from "react-router-dom"; -import { useState } from "react"; -import { PanelLeftOpen } from "lucide-react"; -import { ServerIconRail } from "@/components/layout/ServerIconRail"; -import { MeSidebar } from "./components/MeSidebar"; -import { Header } from "@/components/layout/Header"; -import { useIsMobile } from "@/hooks/use-mobile"; +import { Outlet, useLocation } from "react-router-dom" +import { useState } from "react" +import { PanelLeftOpen } from "lucide-react" +import { ServerIconRail } from "@/components/layout/ServerIconRail" +import { MeSidebar } from "./components/MeSidebar" +import { Header } from "@/components/layout/Header" +import { useIsMobile } from "@/hooks/use-mobile" export function MeLayout() { - const isMobile = useIsMobile(); - const location = useLocation(); - const isExplore = location.pathname === "/explore"; - const [isSidebarCollapsed, setIsSidebarCollapsed] = useState(false); + const isMobile = useIsMobile() + const location = useLocation() + const isExplore = location.pathname === "/explore" + const [isSidebarCollapsed, setIsSidebarCollapsed] = useState(false) return ( -
+
+