261022_04_ENH: 프로젝트 제목 코드·명 병행 표기 및 URL 파라미터 프로젝트 선택 제거

This commit is contained in:
2026-10-22 11:54:39 +09:00
parent 86e7ce3e32
commit 642350bc6c
4 changed files with 14 additions and 43 deletions

View File

@@ -141,16 +141,6 @@ export function readRows<T>(
export function projectKey(project: ProjectRef): string {
return project.projectType + ":" + project.pkey;
}
export function readProjectParams(
params: Pick<URLSearchParams, "get">,
): ProjectRef | null {
const type = params.get("projectType");
const project = {
projectType: type === "0" ? 0 : type === "1" ? 1 : null,
pkey: params.get("pkey"),
};
return isProjectRef(project) ? project : null;
}
export function validDateRange(range: DateRange): boolean {
const validDate = (date: string) =>
/^\d{4}-\d{2}-\d{2}$/.test(date) &&