260714_01_ENH: 테스트 서버에서 기동 후 중간 테스트를 위한 커밋
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
List,
|
||||
MessageSquare,
|
||||
Users,
|
||||
UserRoundPenIcon,
|
||||
UserRoundPenIcon, Building2Icon,
|
||||
} from "lucide-react";
|
||||
import type { TopMenuItem, SideMenuItem } from "./menu.types";
|
||||
|
||||
@@ -13,6 +13,7 @@ export const topMenus: TopMenuItem[] = [
|
||||
id: "project",
|
||||
label: "프로젝트",
|
||||
path: "/",
|
||||
accessRole: [],
|
||||
match: (pathname) =>
|
||||
pathname === "/" || !pathname.startsWith("/manage"),
|
||||
},
|
||||
@@ -20,6 +21,7 @@ export const topMenus: TopMenuItem[] = [
|
||||
id: "manage",
|
||||
label: "관리",
|
||||
path: "/manage/user",
|
||||
accessRole: [1001, 2001, 3001, 4001],
|
||||
match: (pathname) => pathname.startsWith("/manage"),
|
||||
},
|
||||
];
|
||||
@@ -30,42 +32,45 @@ export const projectSideMenus: SideMenuItem[] = [
|
||||
label: "프로젝트 정보",
|
||||
icon: FolderKanban,
|
||||
path: "/project/info",
|
||||
accessRole: [1001, 2001, 3001],
|
||||
},
|
||||
{
|
||||
id: "assign",
|
||||
label: "면접원 배정",
|
||||
icon: Users,
|
||||
accessRole: [1001, 2001, 3001, 4001],
|
||||
children: [
|
||||
{ id: "assign-project", label: "프로젝트 배정", path: "/assign/project" },
|
||||
{ id: "assign-list", label: "리스트 배정", path: "/assign/list" },
|
||||
{ id: "assign-project", label: "프로젝트 배정", path: "/assign/project", accessRole: [1001, 2001, 3001, 4001] },
|
||||
{ id: "assign-list", label: "리스트 배정", path: "/assign/list", accessRole: [1001, 2001, 3001, 4001] },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "list",
|
||||
label: "리스트",
|
||||
icon: List,
|
||||
children: [
|
||||
{ id: "list-main", label: "리스트 관리", path: "/list/manage" },
|
||||
{ id: "list-contact", label: "컨택 진행", path: "/list/contact" },
|
||||
],
|
||||
path: "/list/manage",
|
||||
accessRole: [],
|
||||
},
|
||||
{
|
||||
id: "message",
|
||||
label: "문자/메일 템플릿",
|
||||
icon: MessageSquare,
|
||||
accessRole: [1001, 2001, 3001],
|
||||
children: [
|
||||
{ id: "message-template-sms", label: "문자 템플릿 관리", path: "/message/template/sms" },
|
||||
{ id: "message-template-email", label: "이메일 템플릿 관리", path: "/message/template/email" },
|
||||
{ id: "message-template-sms", label: "문자 템플릿 관리", path: "/message/template/sms", accessRole: [1001, 2001, 3001] },
|
||||
{ id: "message-template-email", label: "이메일 템플릿 관리", path: "/message/template/email", accessRole: [1001, 2001, 3001] },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "progress",
|
||||
label: "현황",
|
||||
icon: BarChart3,
|
||||
accessRole: [],
|
||||
children: [
|
||||
{ id: "progress-fieldwork", label: "실사 현황", path: "/progress/fieldwork" },
|
||||
{ id: "progress-contact", label: "컨택 현황", path: "/progress/contact" },
|
||||
{ id: "progress-message", label: "발송 현황", path: "/progress/message" },
|
||||
{ id: "progress-survey", label: "설문 현황", path: "/progress/survey", accessRole: [1001, 2001, 3001] },
|
||||
{ id: "progress-contact", label: "컨택 현황", path: "/progress/contact", accessRole: [1001, 2001, 3001, 4001, 9001, 9002] },
|
||||
{ id: "progress-interview", label: "면접 현황", path: "/progress/interview", accessRole: [1001, 2001, 3001, 4001, 9001, 9003] },
|
||||
{ id: "progress-message", label: "발송 현황", path: "/progress/message", accessRole: [1001, 2001, 3001] },
|
||||
],
|
||||
},
|
||||
];
|
||||
@@ -76,5 +81,13 @@ export const manageSideMenus: SideMenuItem[] = [
|
||||
label: "사용자 관리",
|
||||
icon: UserRoundPenIcon,
|
||||
path: "/manage/user",
|
||||
accessRole: [1001, 2001, 3001, 4001],
|
||||
},
|
||||
{
|
||||
id: "cmpn-manage",
|
||||
label: "회사 관리",
|
||||
icon: Building2Icon,
|
||||
path: "/manage/cmpn",
|
||||
accessRole: [1001, 2001, 3001],
|
||||
}
|
||||
];
|
||||
@@ -4,6 +4,7 @@ export type TopMenuItem = {
|
||||
id: string;
|
||||
label: string;
|
||||
path: string;
|
||||
accessRole: number[];
|
||||
/** 현재 경로가 이 탭에 해당하는지 판별하는 함수 */
|
||||
match?: (pathname: string) => boolean;
|
||||
};
|
||||
@@ -12,12 +13,14 @@ export type SideSubMenuItem = {
|
||||
id: string;
|
||||
label: string;
|
||||
path: string;
|
||||
accessRole: number[];
|
||||
};
|
||||
|
||||
export type SideMenuItem = {
|
||||
id: string;
|
||||
label: string;
|
||||
icon: LucideIcon;
|
||||
accessRole: number[];
|
||||
/** 단일 메뉴일 경우 path 사용 */
|
||||
path?: string;
|
||||
/** children이 있으면 2단 메뉴(접었다 펴는 타입) */
|
||||
|
||||
Reference in New Issue
Block a user