261021_01_ENH: 1차 마이그레이션 완료

This commit is contained in:
2026-10-21 16:08:57 +09:00
parent 964269cd82
commit f0c9b02eae
313 changed files with 11557 additions and 344 deletions

View File

@@ -0,0 +1,20 @@
import type { Route } from "next";
export function isProjectPage(path: string): boolean {
return [
"/Report/Current",
"/Report/Quota",
"/Report/Tabulation",
"/Report/Crosstab",
"/Management/Derived",
"/Management/Exim",
].includes(path);
}
/**
* Project pages carry no project in the address (legacy KART kept it in client state); the
* selected project lives in useSelectedProject. Other paths open the progress page.
*/
export function projectPagePath(path: string): Route {
return (isProjectPage(path) ? path : "/Report/Current") as Route;
}