커밋 메세지 메뉴별 대중소 정리
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"use client";
|
||||
|
||||
import { useParams } from "next/navigation";
|
||||
import { DepartmentManagement } from "@/components/admin/department/DepartmentManagement";
|
||||
|
||||
export default function DepartmentManagementPage() {
|
||||
const params = useParams();
|
||||
const companyCode = params.companyCode as string;
|
||||
|
||||
return <DepartmentManagement companyCode={companyCode} />;
|
||||
}
|
||||
|
||||
25
frontend/app/(main)/admin/userMng/companyList/page.tsx
Normal file
25
frontend/app/(main)/admin/userMng/companyList/page.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { CompanyManagement } from "@/components/admin/CompanyManagement";
|
||||
import { ScrollToTop } from "@/components/common/ScrollToTop";
|
||||
|
||||
/**
|
||||
* 회사 관리 페이지
|
||||
*/
|
||||
export default function CompanyPage() {
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col bg-background">
|
||||
<div className="space-y-6 p-6">
|
||||
{/* 페이지 헤더 */}
|
||||
<div className="space-y-2 border-b pb-4">
|
||||
<h1 className="text-3xl font-bold tracking-tight">회사 관리</h1>
|
||||
<p className="text-sm text-muted-foreground">시스템에서 사용하는 회사 정보를 관리합니다</p>
|
||||
</div>
|
||||
|
||||
{/* 메인 컨텐츠 */}
|
||||
<CompanyManagement />
|
||||
</div>
|
||||
|
||||
{/* Scroll to Top 버튼 */}
|
||||
<ScrollToTop />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
30
frontend/app/(main)/admin/userMng/rolesList/[id]/page.tsx
Normal file
30
frontend/app/(main)/admin/userMng/rolesList/[id]/page.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
"use client";
|
||||
|
||||
import { use } from "react";
|
||||
import { RoleDetailManagement } from "@/components/admin/RoleDetailManagement";
|
||||
import { ScrollToTop } from "@/components/common/ScrollToTop";
|
||||
|
||||
/**
|
||||
* 권한 그룹 상세 페이지
|
||||
* URL: /admin/roles/[id]
|
||||
*
|
||||
* 기능:
|
||||
* - 권한 그룹 멤버 관리 (Dual List Box)
|
||||
* - 메뉴 권한 설정 (CRUD 체크박스)
|
||||
*/
|
||||
export default function RoleDetailPage({ params }: { params: Promise<{ id: string }> }) {
|
||||
// Next.js 15: params는 Promise이므로 React.use()로 unwrap
|
||||
const { id } = use(params);
|
||||
|
||||
return (
|
||||
<div className="bg-background flex min-h-screen flex-col">
|
||||
<div className="space-y-6 p-6">
|
||||
{/* 메인 컨텐츠 */}
|
||||
<RoleDetailManagement roleId={id} />
|
||||
</div>
|
||||
|
||||
{/* Scroll to Top 버튼 (모바일/태블릿 전용) */}
|
||||
<ScrollToTop />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
39
frontend/app/(main)/admin/userMng/rolesList/page.tsx
Normal file
39
frontend/app/(main)/admin/userMng/rolesList/page.tsx
Normal file
@@ -0,0 +1,39 @@
|
||||
"use client";
|
||||
|
||||
import { RoleManagement } from "@/components/admin/RoleManagement";
|
||||
import { ScrollToTop } from "@/components/common/ScrollToTop";
|
||||
|
||||
/**
|
||||
* 권한 그룹 관리 페이지
|
||||
* URL: /admin/roles
|
||||
*
|
||||
* shadcn/ui 스타일 가이드 적용
|
||||
*
|
||||
* 기능:
|
||||
* - 회사별 권한 그룹 목록 조회
|
||||
* - 권한 그룹 생성/수정/삭제
|
||||
* - 멤버 관리 (Dual List Box)
|
||||
* - 메뉴 권한 설정 (CRUD 권한)
|
||||
*/
|
||||
export default function RolesPage() {
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col bg-background">
|
||||
<div className="space-y-6 p-6">
|
||||
{/* 페이지 헤더 */}
|
||||
<div className="space-y-2 border-b pb-4">
|
||||
<h1 className="text-3xl font-bold tracking-tight">권한 그룹 관리</h1>
|
||||
<p className="text-sm text-muted-foreground">
|
||||
회사 내 권한 그룹을 생성하고 멤버를 관리합니다 (회사 관리자 이상)
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* 메인 컨텐츠 */}
|
||||
<RoleManagement />
|
||||
</div>
|
||||
|
||||
{/* Scroll to Top 버튼 (모바일/태블릿 전용) */}
|
||||
<ScrollToTop />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
31
frontend/app/(main)/admin/userMng/userAuthList/page.tsx
Normal file
31
frontend/app/(main)/admin/userMng/userAuthList/page.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
"use client";
|
||||
|
||||
import { UserAuthManagement } from "@/components/admin/UserAuthManagement";
|
||||
import { ScrollToTop } from "@/components/common/ScrollToTop";
|
||||
|
||||
/**
|
||||
* 사용자 권한 관리 페이지
|
||||
* URL: /admin/userAuth
|
||||
*
|
||||
* 최고 관리자만 접근 가능
|
||||
* 사용자별 권한 레벨(SUPER_ADMIN, COMPANY_ADMIN, USER 등) 관리
|
||||
*/
|
||||
export default function UserAuthPage() {
|
||||
return (
|
||||
<div className="bg-background flex min-h-screen flex-col">
|
||||
<div className="space-y-6 p-6">
|
||||
{/* 페이지 헤더 */}
|
||||
<div className="space-y-2 border-b pb-4">
|
||||
<h1 className="text-3xl font-bold tracking-tight">사용자 권한 관리</h1>
|
||||
<p className="text-muted-foreground text-sm">사용자별 권한 레벨을 관리합니다. (최고 관리자 전용)</p>
|
||||
</div>
|
||||
|
||||
{/* 메인 컨텐츠 */}
|
||||
<UserAuthManagement />
|
||||
</div>
|
||||
|
||||
{/* Scroll to Top 버튼 (모바일/태블릿 전용) */}
|
||||
<ScrollToTop />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user