From 169a0b00d60305aaa18afe51e78baf64bc800edb Mon Sep 17 00:00:00 2001 From: tone Date: Thu, 18 Dec 2025 18:59:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=8F=B0=E7=BB=84=E4=BB=B6=E7=A7=BB=E5=8A=A8=E5=88=B0=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=8F=B0...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{ => app/console/(with-menu)}/components/app-sidebar.tsx | 4 ++-- .../{ => app/console/(with-menu)}/components/nav-main.tsx | 2 +- .../{ => app/console/(with-menu)}/components/nav-user.tsx | 4 ++-- apps/frontend/app/console/(with-menu)/layout.tsx | 2 +- apps/frontend/app/console/(with-menu)/profile/page.tsx | 5 +++++ 5 files changed, 11 insertions(+), 6 deletions(-) rename apps/frontend/{ => app/console/(with-menu)}/components/app-sidebar.tsx (95%) rename apps/frontend/{ => app/console/(with-menu)}/components/nav-main.tsx (97%) rename apps/frontend/{ => app/console/(with-menu)}/components/nav-user.tsx (97%) create mode 100644 apps/frontend/app/console/(with-menu)/profile/page.tsx diff --git a/apps/frontend/components/app-sidebar.tsx b/apps/frontend/app/console/(with-menu)/components/app-sidebar.tsx similarity index 95% rename from apps/frontend/components/app-sidebar.tsx rename to apps/frontend/app/console/(with-menu)/components/app-sidebar.tsx index eca817c..c2ebc54 100644 --- a/apps/frontend/components/app-sidebar.tsx +++ b/apps/frontend/app/console/(with-menu)/components/app-sidebar.tsx @@ -12,8 +12,8 @@ import { UsersRound, } from "lucide-react" -import { NavMain } from "@/components/nav-main" -import { NavUser } from "@/components/nav-user" +import { NavMain } from "@/app/console/(with-menu)/components/nav-main" +import { NavUser } from "@/app/console/(with-menu)/components/nav-user" import { Sidebar, SidebarContent, diff --git a/apps/frontend/components/nav-main.tsx b/apps/frontend/app/console/(with-menu)/components/nav-main.tsx similarity index 97% rename from apps/frontend/components/nav-main.tsx rename to apps/frontend/app/console/(with-menu)/components/nav-main.tsx index 39f6362..22846c8 100644 --- a/apps/frontend/components/nav-main.tsx +++ b/apps/frontend/app/console/(with-menu)/components/nav-main.tsx @@ -18,7 +18,7 @@ import { SidebarMenuSubItem, } from "@/components/ui/sidebar" import Link from "next/link" -import { Skeleton } from "./ui/skeleton" +import { Skeleton } from "../../../../components/ui/skeleton" export function NavMain({ items, diff --git a/apps/frontend/components/nav-user.tsx b/apps/frontend/app/console/(with-menu)/components/nav-user.tsx similarity index 97% rename from apps/frontend/components/nav-user.tsx rename to apps/frontend/app/console/(with-menu)/components/nav-user.tsx index 39e168b..659267d 100644 --- a/apps/frontend/components/nav-user.tsx +++ b/apps/frontend/app/console/(with-menu)/components/nav-user.tsx @@ -26,10 +26,10 @@ import { SidebarMenuItem, useSidebar, } from "@/components/ui/sidebar" -import { Skeleton } from "./ui/skeleton" +import { Skeleton } from "../../../../components/ui/skeleton" import { toast } from "sonner" import { useRouter } from "next/navigation" -import SetPassword from "./nav-user/SetPassword" +import SetPassword from "../../../../components/nav-user/SetPassword" import { useState } from "react" import { User } from "@/lib/types/user" import { AuthAPI } from "@/lib/api/client" diff --git a/apps/frontend/app/console/(with-menu)/layout.tsx b/apps/frontend/app/console/(with-menu)/layout.tsx index 330d9ac..a310473 100644 --- a/apps/frontend/app/console/(with-menu)/layout.tsx +++ b/apps/frontend/app/console/(with-menu)/layout.tsx @@ -1,6 +1,6 @@ 'use client'; -import { AppSidebar } from "@/components/app-sidebar" +import { AppSidebar } from "@/app/console/(with-menu)/components/app-sidebar" import { Breadcrumb, BreadcrumbItem, diff --git a/apps/frontend/app/console/(with-menu)/profile/page.tsx b/apps/frontend/app/console/(with-menu)/profile/page.tsx new file mode 100644 index 0000000..85e5422 --- /dev/null +++ b/apps/frontend/app/console/(with-menu)/profile/page.tsx @@ -0,0 +1,5 @@ +export default function Page() { + return ( +
+ ) +} \ No newline at end of file