From 70023843937073644b1ed666f17524dc4ae6483e Mon Sep 17 00:00:00 2001 From: hyeonsu Date: Tue, 2 Sep 2025 10:43:59 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=9C=EC=A0=9D=ED=8A=B8=20?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=20=EA=B4=80=EB=A0=A8=20=EA=B8=B0=ED=83=80=20?= =?UTF-8?q?=EC=A0=95=EB=A6=AC=EC=82=AC=ED=95=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components/common/PageHeader.tsx | 58 -------------------- frontend/components/layout/AppLayout.tsx | 7 +-- frontend/components/layout/PageHeader.tsx | 21 -------- frontend/constants/auth.ts | 2 +- frontend/constants/pageInfo.ts | 64 ----------------------- 5 files changed, 2 insertions(+), 150 deletions(-) delete mode 100644 frontend/components/common/PageHeader.tsx delete mode 100644 frontend/components/layout/PageHeader.tsx delete mode 100644 frontend/constants/pageInfo.ts diff --git a/frontend/components/common/PageHeader.tsx b/frontend/components/common/PageHeader.tsx deleted file mode 100644 index 5d8429c6..00000000 --- a/frontend/components/common/PageHeader.tsx +++ /dev/null @@ -1,58 +0,0 @@ -"use client"; - -import { ArrowLeft, HelpCircle } from "lucide-react"; -import { Button } from "@/components/ui/button"; -import { cn } from "@/lib/utils"; - -interface PageHeaderProps { - title: string; - subtitle?: string; - showBackButton?: boolean; - onBack?: () => void; - showHelpButton?: boolean; - onHelp?: () => void; - children?: React.ReactNode; - className?: string; -} - -export function PageHeader({ - title, - subtitle, - showBackButton = false, - onBack, - showHelpButton = false, - onHelp, - children, - className, -}: PageHeaderProps) { - return ( -
-
- {showBackButton && ( - - )} - -
-

{title}

- {subtitle &&

{subtitle}

} -
-
- -
- {children} - {showHelpButton && ( - - )} -
-
- ); -} - -// 페이지 헤더 액션 버튼 컴포넌트 -export function PageHeaderActions({ children, className }: { children: React.ReactNode; className?: string }) { - return
{children}
; -} diff --git a/frontend/components/layout/AppLayout.tsx b/frontend/components/layout/AppLayout.tsx index 74c47a37..2d65082f 100644 --- a/frontend/components/layout/AppLayout.tsx +++ b/frontend/components/layout/AppLayout.tsx @@ -24,8 +24,6 @@ import { menuScreenApi } from "@/lib/api/screen"; import { toast } from "sonner"; import { MainHeader } from "./MainHeader"; import { ProfileModal } from "./ProfileModal"; -import { PageHeader } from "./PageHeader"; -import { getPageInfo } from "@/constants/pageInfo"; // useAuth의 UserInfo 타입을 확장 interface ExtendedUserInfo { @@ -408,10 +406,7 @@ export function AppLayout({ children }: AppLayoutProps) { {/* 가운데 컨텐츠 영역 */} -
- - {children} -
+
{children}
{/* 프로필 수정 모달 */} diff --git a/frontend/components/layout/PageHeader.tsx b/frontend/components/layout/PageHeader.tsx deleted file mode 100644 index 63318807..00000000 --- a/frontend/components/layout/PageHeader.tsx +++ /dev/null @@ -1,21 +0,0 @@ -interface PageHeaderProps { - title: string; - description?: string; -} - -/** - * 페이지 상단 헤더 컴포넌트 - * 제목, 설명, 추가 버튼 등을 표시 - */ -export function PageHeader({ title, description }: PageHeaderProps) { - return ( -
-
-
-

{title}

- {description &&

{description}

} -
-
-
- ); -} diff --git a/frontend/constants/auth.ts b/frontend/constants/auth.ts index 6f81fb6b..3d9b67eb 100644 --- a/frontend/constants/auth.ts +++ b/frontend/constants/auth.ts @@ -26,7 +26,7 @@ export const FORM_VALIDATION = { } as const; export const UI_CONFIG = { - COMPANY_NAME: "PLM 솔루션", + COMPANY_NAME: "WACE 솔루션", COPYRIGHT: "© 2025 WACE PLM Solution. All rights reserved.", POWERED_BY: "Powered by Spring Boot + Next.js", } as const; diff --git a/frontend/constants/pageInfo.ts b/frontend/constants/pageInfo.ts deleted file mode 100644 index b2aa5912..00000000 --- a/frontend/constants/pageInfo.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * 페이지별 제목과 설명 정보 - */ -export interface PageInfo { - title: string; - description?: string; -} - -export const PAGE_INFO: Record = { - // 메인 대시보드 - "/main": { - title: "대시보드", - description: "PLM 시스템의 주요 현황을 확인하세요", - }, - - // 관리자 페이지들 - "/admin": { - title: "관리자 대시보드", - description: "시스템 관리 및 모니터링", - }, - "/admin/company": { - title: "회사 관리", - description: "회사 정보를 등록하고 관리합니다", - }, - "/admin/userMng": { - title: "사용자 관리", - description: "시스템 사용자를 관리합니다", - }, - "/admin/menu": { - title: "메뉴 관리", - description: "시스템 메뉴를 관리합니다", - }, - "/admin/i18n": { - title: "다국어 관리", - description: "다국어 번역을 관리합니다", - }, - "/admin/tableMng": { - title: "테이블 타입 관리", - description: "데이터베이스 테이블과 컬럼 타입을 관리합니다", - }, - - // 기타 페이지들 - "/multilang": { - title: "다국어 설정", - description: "언어 설정을 변경합니다", - }, - "/dashboard": { - title: "대시보드", - description: "PLM 시스템 현황", - }, - - // 기본값 (매핑되지 않은 페이지) - default: { - title: "WACE 솔루션", - description: "제품 수명 주기 관리 시스템", - }, -}; - -/** - * 현재 경로에 맞는 페이지 정보를 반환 - */ -export function getPageInfo(pathname: string): PageInfo { - return PAGE_INFO[pathname] || PAGE_INFO["default"]; -}