251121_01_ENH : 로그인 및 인증 저장, api통신 시 자동으로 accessKey 붙게 조치

This commit is contained in:
2025-11-21 15:33:51 +09:00
parent 0707c91d41
commit 74de3d58f7
63 changed files with 2056 additions and 261 deletions

View File

@@ -0,0 +1,7 @@
const commonConst = {
fontSizeDefault: 14,
fontSizeMin: 12,
fontSizeMax: 24,
} as const;
export default commonConst;

80
src/config/menu.data.ts Normal file
View File

@@ -0,0 +1,80 @@
import {
BarChart3,
FolderKanban,
List,
MessageSquare,
Users,
UserRoundPenIcon,
} from "lucide-react";
import type { TopMenuItem, SideMenuItem } from "./menu.types";
export const topMenus: TopMenuItem[] = [
{
id: "project",
label: "프로젝트",
path: "/",
match: (pathname) =>
pathname === "/" || !pathname.startsWith("/manage"),
},
{
id: "manage",
label: "관리",
path: "/manage/user",
match: (pathname) => pathname.startsWith("/manage"),
},
];
export const projectSideMenus: SideMenuItem[] = [
{
id: "project-info",
label: "프로젝트 정보",
icon: FolderKanban,
path: "/project/info",
},
{
id: "assign",
label: "면접원 배정",
icon: Users,
children: [
{ id: "assign-project", label: "프로젝트 배정", path: "/assign/project" },
{ id: "assign-list", label: "리스트 배정", path: "/assign/list" },
],
},
{
id: "list",
label: "리스트",
icon: List,
children: [
{ id: "list-main", label: "리스트 관리", path: "/list/manage" },
{ id: "list-contact", label: "컨택 진행", path: "/list/contact" },
],
},
{
id: "message",
label: "문자/메일 템플릿",
icon: MessageSquare,
children: [
{ id: "message-template-text", label: "문자 템플릿 관리", path: "/message/template/text" },
{ id: "message-template-email", label: "이메일 템플릿 관리", path: "/message/template/email" },
],
},
{
id: "progress",
label: "현황",
icon: BarChart3,
children: [
{ id: "progress-fieldwork", label: "실사 현황", path: "/progress/fieldwork" },
{ id: "progress-contact", label: "컨택 현황", path: "/progress/contact" },
{ id: "progress-message", label: "발송 현황", path: "/progress/message" },
],
},
];
export const manageSideMenus: SideMenuItem[] = [
{
id: "user-manage",
label: "사용자 관리",
icon: UserRoundPenIcon,
path: "/manage/user",
}
];

25
src/config/menu.types.ts Normal file
View File

@@ -0,0 +1,25 @@
import type { LucideIcon } from "lucide-react";
export type TopMenuItem = {
id: string;
label: string;
path: string;
/** 현재 경로가 이 탭에 해당하는지 판별하는 함수 */
match?: (pathname: string) => boolean;
};
export type SideSubMenuItem = {
id: string;
label: string;
path: string;
};
export type SideMenuItem = {
id: string;
label: string;
icon: LucideIcon;
/** 단일 메뉴일 경우 path 사용 */
path?: string;
/** children이 있으면 2단 메뉴(접었다 펴는 타입) */
children?: SideSubMenuItem[];
};