251210_01_ENH : 프로젝트 수정, 에디터 구현중
This commit is contained in:
@@ -3,9 +3,12 @@ import { atom } from 'jotai'
|
||||
// 사용할 수 있는 DialogId를 타입으로 고정
|
||||
// Dialog추가 할 때만다 추가하기
|
||||
export type DialogId =
|
||||
| 'userUpsertDialog'
|
||||
| 'userUploadDialog'
|
||||
| 'listUploadDialog'
|
||||
| 'userUpsertDialog'
|
||||
| 'userUploadDialog'
|
||||
| 'listUploadDialog'
|
||||
| 'projectCreateDialog'
|
||||
| 'resultCodeDialog'
|
||||
| 'resultCodeCopyDialog'
|
||||
|
||||
// 현재 열려 있는 다이얼로그 ID 리스트
|
||||
export const openDialogIdsAtom = atom<DialogId[]>([])
|
||||
@@ -2,12 +2,13 @@
|
||||
|
||||
import { StorageKeys } from "@/store/storage/storage-keys";
|
||||
import {createSessionStorageAtom} from "@/store/jotai/utils";
|
||||
import {AuthState} from "@/store/jotai/auth";
|
||||
|
||||
export type SelectedProject = {
|
||||
id: string;
|
||||
name: string;
|
||||
// 필요하면 여기서 추가 (code, status 등)
|
||||
prjctIdx: number;
|
||||
prjctCd: string
|
||||
prjctName: string;
|
||||
ownerDept: string;
|
||||
ownerFw: string;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,6 +3,7 @@ export const StorageKeys = {
|
||||
SeatNumber: "kri:seatNumber",
|
||||
LoginType: "kri:loginType",
|
||||
SelectedProject: "kri:selectedProject",
|
||||
ItrntUserList:"kri:itrntUserList",
|
||||
//SidebarCollapsed: "kri:sidebarCollapsed",
|
||||
// 필요하면 여기 계속 추가
|
||||
} as const;
|
||||
@@ -12,6 +13,7 @@ export const StorageType: Record<StorageKey, "local" | "session"> = {
|
||||
[StorageKeys.SeatNumber]: "local",
|
||||
[StorageKeys.LoginType]: "local",
|
||||
[StorageKeys.SelectedProject]: "session",
|
||||
[StorageKeys.ItrntUserList]: "session",
|
||||
};
|
||||
|
||||
export type StorageKey = (typeof StorageKeys)[keyof typeof StorageKeys];
|
||||
Reference in New Issue
Block a user