From d6bb9f3683d279acfbc210c330f4f185b60580d1 Mon Sep 17 00:00:00 2001 From: speakeloudest Date: Tue, 29 Jul 2025 03:28:40 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=90=E4=BA=A4=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E5=92=8C=E4=BE=A7=E8=BE=B9=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/(main)/(content)/(user)/layout.tsx | 4 +- .../(main)/(content)/(user)/sidebar-left.tsx | 60 ++-- apps/user/app/(main)/(content)/layout.tsx | 11 +- apps/user/app/(main)/page.tsx | 3 +- apps/user/app/auth/email/login-form.tsx | 8 +- apps/user/app/auth/email/register-form.tsx | 14 +- apps/user/app/auth/email/reset-form.tsx | 8 +- apps/user/components/Header/NewHeader.tsx | 3 +- .../components/main/OfferDialog/index.tsx | 323 +++++++++++++++++- apps/user/components/user-nav.tsx | 97 +++--- apps/user/config/navs.ts | 14 +- apps/user/locales/zh-CN/menu.json | 10 +- .../{components/Header => public}/image.png | Bin 13 files changed, 433 insertions(+), 122 deletions(-) rename apps/user/{components/Header => public}/image.png (100%) diff --git a/apps/user/app/(main)/(content)/(user)/layout.tsx b/apps/user/app/(main)/(content)/(user)/layout.tsx index 7d99efd..dcc2aeb 100644 --- a/apps/user/app/(main)/(content)/(user)/layout.tsx +++ b/apps/user/app/(main)/(content)/(user)/layout.tsx @@ -7,9 +7,9 @@ import { SidebarRight } from './sidebar-right'; export default async function DashboardLayout({ children }: { children: React.ReactNode }) { return ( - + {children} - + ); diff --git a/apps/user/app/(main)/(content)/(user)/sidebar-left.tsx b/apps/user/app/(main)/(content)/(user)/sidebar-left.tsx index 25a1674..d802083 100644 --- a/apps/user/app/(main)/(content)/(user)/sidebar-left.tsx +++ b/apps/user/app/(main)/(content)/(user)/sidebar-left.tsx @@ -1,17 +1,16 @@ 'use client'; +import { UserNav } from '@/components/user-nav'; import { navs } from '@/config/navs'; import { Sidebar, SidebarContent, - SidebarGroup, - SidebarGroupContent, - SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, } from '@workspace/ui/components/sidebar'; import { Icon } from '@workspace/ui/custom-components/icon'; import { useTranslations } from 'next-intl'; +import Image from 'next/legacy/image'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; @@ -19,34 +18,39 @@ export function SidebarLeft({ ...props }: React.ComponentProps) const t = useTranslations('menu'); const pathname = usePathname(); return ( - - - - {navs.map((nav) => ( - - {nav.items && {t(nav.title)}} - - - {(nav.items || [nav]).map((item) => ( - - - - {item.icon && } - {t(item.title)} - - - - ))} - - - + +
+ logo +
+ + + {navs.map((nav, navIndex) => ( + + {(nav.items || [nav]).map((item) => ( + + + + {item.icon && } + {t(item.title)} + + + + ))} + ))} + +
+ +
); } diff --git a/apps/user/app/(main)/(content)/layout.tsx b/apps/user/app/(main)/(content)/layout.tsx index 960df4e..2b8874f 100644 --- a/apps/user/app/(main)/(content)/layout.tsx +++ b/apps/user/app/(main)/(content)/layout.tsx @@ -1,12 +1,3 @@ -import Footer from '@/components/footer'; -import Header from '@/components/Header/header'; - export default async function MainLayout({ children }: { children: React.ReactNode }) { - return ( - <> -
- {children} -