diff --git a/A00_Common/main.ts b/A00_Common/main.ts index 537077f4..b8976151 100644 --- a/A00_Common/main.ts +++ b/A00_Common/main.ts @@ -26,7 +26,6 @@ const FOOTERLESS_ROUTES: readonly RoutePath[] = [ ROUTES.B09_ESTIMATION, ROUTES.B10_PAYMENT, ROUTES.B11_STATUS, - ROUTES.Z01_MASTER_DATA, ROUTES.M01_MASTER_DATA, ]; diff --git a/A00_Common/router.ts b/A00_Common/router.ts index 547dc50f..3dea0a48 100644 --- a/A00_Common/router.ts +++ b/A00_Common/router.ts @@ -59,8 +59,6 @@ const routeTable: Partial Promise>> = { (await import("../B11_Status/B11_Status_UI_Page")).renderB11Status, [ROUTES.B11_LOADING]: async () => (await import("../B11_Status/B11_Status_UI_Loading")).renderB11Loading, - [ROUTES.Z01_MASTER_DATA]: async () => - (await import("../Z01_MasterData/Z01_MasterData_UI_Page")).renderZ01MasterData, [ROUTES.M01_MASTER_DATA]: async () => (await import("../M01_MasterData/M01_MasterData_UI_Page")).renderM01MasterData, }; diff --git a/config/config_frontend.ts b/config/config_frontend.ts index a5738a7f..d5abc5b0 100644 --- a/config/config_frontend.ts +++ b/config/config_frontend.ts @@ -116,8 +116,6 @@ export const ROUTES = { B11_STATUS: "b11-status", // 대시보드에서 B그룹으로 처음 들어갈 때 3D·등고선을 미리 받아 두는 준비 화면. B11_LOADING: "b11-loading", - // 시스템 관리자 전용 — 로직·기초값 마스터 보기 (2026-09-15 브레인 Z01). - Z01_MASTER_DATA: "z01-master-data", // 시스템 관리자 전용 — 마스터 요소(파일 첫 층 JSON) 보기·고치기. M01_MASTER_DATA: "m01-master-data", } as const; @@ -142,7 +140,6 @@ export const PROTECTED_ROUTES: readonly RoutePath[] = [ ROUTES.B10_PAYMENT, ROUTES.B11_STATUS, ROUTES.B11_LOADING, - ROUTES.Z01_MASTER_DATA, ROUTES.M01_MASTER_DATA, ]; diff --git a/main.py b/main.py index 916efeaa..4fadc776 100644 --- a/main.py +++ b/main.py @@ -75,7 +75,6 @@ from B09_Estimation.B09_Estimation_Router_Factors import router as b09_factors_r from B09_Estimation.B09_Estimation_Router_MaterialPrices import ( router as b09_material_prices_router, ) -from Z01_MasterData.Z01_MasterData_Router import router as z01_master_data_router from M01_MasterData.M01_MasterData_Router import router as m01_master_data_router from common_util.common_util_audit import note_api_call, record_call_burst from common_util.common_util_auth import ( @@ -657,9 +656,8 @@ app.include_router(b09_progress_router, dependencies=protected_with_company) app.include_router(b09_edits_router, dependencies=protected_with_company) app.include_router(b09_factors_router, dependencies=protected_with_company) app.include_router(b09_material_prices_router, dependencies=protected_with_company) -# Z01 마스터 데이터 — 회사·프로젝트가 아니라 시스템 관리자만 본다(2026-09-15 브레인 Z01). +# 마스터 데이터 — 회사·프로젝트가 아니라 시스템 관리자만 본다. system_admin_only = [Depends(verify_session), Depends(require_system_admin)] -app.include_router(z01_master_data_router, dependencies=system_admin_only) app.include_router(m01_master_data_router, dependencies=system_admin_only) # 개발 전용 잠금 해제 — 다른 라우터와 **같은 보호**를 받는다(로그인·회사·프로젝트 접근). # 그 위에 서버가 환경까지 한 번 더 본다. diff --git a/Z01_MasterData/Z01_MasterData_Api_Fetch.ts b/old_code/Z01_MasterData/Z01_MasterData_Api_Fetch.ts similarity index 100% rename from Z01_MasterData/Z01_MasterData_Api_Fetch.ts rename to old_code/Z01_MasterData/Z01_MasterData_Api_Fetch.ts diff --git a/Z01_MasterData/Z01_MasterData_BasePrices.py b/old_code/Z01_MasterData/Z01_MasterData_BasePrices.py similarity index 100% rename from Z01_MasterData/Z01_MasterData_BasePrices.py rename to old_code/Z01_MasterData/Z01_MasterData_BasePrices.py diff --git a/Z01_MasterData/Z01_MasterData_BasePrices_Machine.py b/old_code/Z01_MasterData/Z01_MasterData_BasePrices_Machine.py similarity index 100% rename from Z01_MasterData/Z01_MasterData_BasePrices_Machine.py rename to old_code/Z01_MasterData/Z01_MasterData_BasePrices_Machine.py diff --git a/Z01_MasterData/Z01_MasterData_BasePrices_Tables.py b/old_code/Z01_MasterData/Z01_MasterData_BasePrices_Tables.py similarity index 100% rename from Z01_MasterData/Z01_MasterData_BasePrices_Tables.py rename to old_code/Z01_MasterData/Z01_MasterData_BasePrices_Tables.py diff --git a/Z01_MasterData/Z01_MasterData_Overrides.py b/old_code/Z01_MasterData/Z01_MasterData_Overrides.py similarity index 100% rename from Z01_MasterData/Z01_MasterData_Overrides.py rename to old_code/Z01_MasterData/Z01_MasterData_Overrides.py diff --git a/Z01_MasterData/Z01_MasterData_Router.py b/old_code/Z01_MasterData/Z01_MasterData_Router.py similarity index 100% rename from Z01_MasterData/Z01_MasterData_Router.py rename to old_code/Z01_MasterData/Z01_MasterData_Router.py diff --git a/Z01_MasterData/Z01_MasterData_Tables.py b/old_code/Z01_MasterData/Z01_MasterData_Tables.py similarity index 100% rename from Z01_MasterData/Z01_MasterData_Tables.py rename to old_code/Z01_MasterData/Z01_MasterData_Tables.py diff --git a/Z01_MasterData/Z01_MasterData_UI_Cells.ts b/old_code/Z01_MasterData/Z01_MasterData_UI_Cells.ts similarity index 100% rename from Z01_MasterData/Z01_MasterData_UI_Cells.ts rename to old_code/Z01_MasterData/Z01_MasterData_UI_Cells.ts diff --git a/Z01_MasterData/Z01_MasterData_UI_Page.ts b/old_code/Z01_MasterData/Z01_MasterData_UI_Page.ts similarity index 100% rename from Z01_MasterData/Z01_MasterData_UI_Page.ts rename to old_code/Z01_MasterData/Z01_MasterData_UI_Page.ts diff --git a/Z01_MasterData/Z01_MasterData_UI_Rows.ts b/old_code/Z01_MasterData/Z01_MasterData_UI_Rows.ts similarity index 100% rename from Z01_MasterData/Z01_MasterData_UI_Rows.ts rename to old_code/Z01_MasterData/Z01_MasterData_UI_Rows.ts diff --git a/Z01_MasterData/Z01_MasterData_UI_Side.ts b/old_code/Z01_MasterData/Z01_MasterData_UI_Side.ts similarity index 100% rename from Z01_MasterData/Z01_MasterData_UI_Side.ts rename to old_code/Z01_MasterData/Z01_MasterData_UI_Side.ts diff --git a/Z01_MasterData/Z01_MasterData_UI_Style.css b/old_code/Z01_MasterData/Z01_MasterData_UI_Style.css similarity index 100% rename from Z01_MasterData/Z01_MasterData_UI_Style.css rename to old_code/Z01_MasterData/Z01_MasterData_UI_Style.css diff --git a/Z01_MasterData/Z01_MasterData_WorkItems.py b/old_code/Z01_MasterData/Z01_MasterData_WorkItems.py similarity index 100% rename from Z01_MasterData/Z01_MasterData_WorkItems.py rename to old_code/Z01_MasterData/Z01_MasterData_WorkItems.py diff --git a/resources/tester/test_z01_base_prices.py b/old_code/resources/tester/test_z01_base_prices.py similarity index 100% rename from resources/tester/test_z01_base_prices.py rename to old_code/resources/tester/test_z01_base_prices.py diff --git a/resources/tester/test_z01_base_tables.py b/old_code/resources/tester/test_z01_base_tables.py similarity index 100% rename from resources/tester/test_z01_base_tables.py rename to old_code/resources/tester/test_z01_base_tables.py diff --git a/resources/tester/test_z01_master_cells.py b/old_code/resources/tester/test_z01_master_cells.py similarity index 100% rename from resources/tester/test_z01_master_cells.py rename to old_code/resources/tester/test_z01_master_cells.py diff --git a/resources/tester/test_z01_master_data.py b/old_code/resources/tester/test_z01_master_data.py similarity index 100% rename from resources/tester/test_z01_master_data.py rename to old_code/resources/tester/test_z01_master_data.py diff --git a/resources/tester/test_z01_master_registration.py b/old_code/resources/tester/test_z01_master_registration.py similarity index 100% rename from resources/tester/test_z01_master_registration.py rename to old_code/resources/tester/test_z01_master_registration.py diff --git a/resources/tester/test_z01_work_items.py b/old_code/resources/tester/test_z01_work_items.py similarity index 100% rename from resources/tester/test_z01_work_items.py rename to old_code/resources/tester/test_z01_work_items.py diff --git a/ui_template/ui_template_locale_b3.ts b/ui_template/ui_template_locale_b3.ts index ccc0850a..f5282c25 100644 --- a/ui_template/ui_template_locale_b3.ts +++ b/ui_template/ui_template_locale_b3.ts @@ -136,91 +136,7 @@ export const ui_locales_b3 = { "법령 별표2 Ⅰ.2.바.(2) 가 요구하는 구간만 자동 — 종단 8% 초과 사질·점토(우리 프리셋은 토사 하나라 토사 전부) · 8% 이하 연약·습윤은 칸(판정 근거 없음). 교본 3-2 는 「콘크리트 포장 구간 이외」 전부라 고르면 넓힘. 두께 제안 0.10(교본) · C·L 제안 소광 관측(원문 표에 혼합석 줄 없음 · 역 C 와 방향이 반대)", "Only the stations required by the forest act table 2 are automatic — grade > 8% sandy/clay soil (our preset has one soil class) and ≤ 8% soft/wet ranges you enter. Manual 3-2 covers all non-concrete stations. Suggested thickness 0.10 (manual) · C·L from practice (no gravel row in the standard table)", ], - /* --- B01 시스템 설정 · Z01 마스터 데이터 (2026-09-15 브레인 Z01) --- */ + /* --- B01 시스템 설정 --- */ B01_Dashboard_SystemSettings: ["시스템 설정", "System Settings"], B01_Dashboard_MasterData: ["마스터 데이터", "Master Data"], - Z01_MasterData_Title: ["마스터 데이터", "Master Data"], - Z01_MasterData_Tree: ["마스터 트리", "Master tree"], - /* ⚠ 갈래·표 이름은 사전에 두지 않음 — 서버(이름표)가 줌. 화면이 들면 kind 가 늘 때 빠짐 */ - Z01_MasterData_List_Kind: ["표", "Table"], - Z01_MasterData_Overrides: ["고친 것 모아 보기", "Edited values"], - Z01_MasterData_Edit_Can: [ - "고칠 수 있는 칸 — 눌러 고치고 Enter 로 저장 (Esc 취소)", - "Editable — click, type, Enter to save (Esc cancels)", - ], - Z01_MasterData_Edit_Locked: ["못 고치는 칸", "Not editable"], - Z01_MasterData_Edit_NotListed: ["고칠 수 있는 칸 목록에 없음", "Not in the editable list"], - Z01_MasterData_Edit_RevertTo: ["원래 값 {value} 으로 되돌리기", "Revert to original {value}"], - Z01_MasterData_Edit_TakeSource: ["새 원본 값 {value} 으로 받기", "Take new source value {value}"], - Z01_MasterData_Edit_OriginalWas: ["고칠 때 원본 {value}", "source when edited {value}"], - Z01_MasterData_Edit_Invalid: [ - "「{value}」 를 수로 못 읽음", - "Cannot read 「{value}」 as a number", - ], - Z01_MasterData_Edit_NotSaved: ["⚠ 저장 안 됨 — {value}", "⚠ Not saved — {value}"], - Z01_MasterData_Edit_Saved: ["저장했음 — 덮개 파일에 쌓임", "Saved to the override file"], - Z01_MasterData_Edit_Reverted: ["덮개를 뺐음 — 원본 값을 씀", "Override removed — using source"], - Z01_MasterData_Edit_Failed: ["저장 못 함", "Save failed"], - Z01_MasterData_Formula: ["산출근거", "Basis"], - Z01_MasterData_State_Edited: ["고쳐짐 — 원래 값 {value}", "Edited — original {value}"], - Z01_MasterData_State_SourceChanged: [ - "⚠ 고친 뒤 원본이 바뀜 — 고친 값을 그대로 씀 · 새 원본 값 {value}", - "⚠ Source changed after edit — edited value still used · new source {value}", - ], - Z01_MasterData_State_MeaningChanged: [ - "⛔ 고쳐짐 — 줄의 뜻이 바뀜(같은 번호에 다른 물건)", - "⛔ Edited — the row now means something else (same code, different item)", - ], - Z01_MasterData_State_MeaningMissing: [ - "⛔ 옛 이름·지금 이름을 서버가 안 줌 — 버그", - "⛔ Server sent no before/after row names — bug", - ], - Z01_MasterData_State_Was: ["고칠 때: {value}", "when edited: {value}"], - Z01_MasterData_State_Now: ["지금: {value}", "now: {value}"], - Z01_MasterData_Edit_DropOnMeaning: [ - "고친 값 버리고 지금 줄 값 {value} 쓰기", - "Drop the edit and use the current row value {value}", - ], - Z01_MasterData_Edit_MeaningConfirm: [ - "줄의 뜻이 바뀌었음 — 고친 값을 버리면 지금 줄(다른 물건일 수 있음) 값을 씀. 버릴까?", - "This row now means something else. Dropping the edit uses the current row's value. Continue?", - ], - Z01_MasterData_Edit_DropConfirm: ["고친 값 버리기", "Drop the edit"], - Z01_MasterData_List_MeaningChanged: ["⛔ 뜻 바뀜", "⛔ Meaning changed"], - Z01_MasterData_State_Orphan: [ - "⚠ 주인 없음 — 갱신으로 그 줄이 사라짐", - "⚠ Orphan — the row disappeared on update", - ], - Z01_MasterData_State_Missing: [ - "⚠ 서버가 판정(state)을 안 줌 — 버그", - "⚠ Server sent no state — bug", - ], - Z01_MasterData_List_State: ["상태", "State"], - Z01_MasterData_List_Row: ["줄", "Row"], - Z01_MasterData_List_Column: ["칸", "Column"], - Z01_MasterData_List_Value: ["고친 값", "Edited value"], - Z01_MasterData_List_Original: ["고칠 때 원본", "Source when edited"], - Z01_MasterData_List_Current: ["지금 원본", "Current source"], - Z01_MasterData_List_SourceChanged: ["⚠ 원본 바뀜", "⚠ Source changed"], - Z01_MasterData_List_Orphan: ["⚠ 주인 없음", "⚠ Orphan"], - Z01_MasterData_List_Edited: ["고쳐짐", "Edited"], - Z01_MasterData_AdminOnly: ["시스템 관리자만 볼 수 있음", "System administrators only"], - Z01_MasterData_LoadFailed: ["마스터 데이터를 못 읽음", "Failed to load master data"], - Z01_MasterData_PickTable: ["왼쪽에서 표를 고를 것", "Pick a table on the left"], - Z01_MasterData_Search: ["검색", "Search"], - Z01_MasterData_ShowHidden: [ - "숨긴 열 보기(내부 id · sha · 생성시각)", - "Show hidden columns (id · sha · created)", - ], - Z01_MasterData_Byproduct: [ - "정본 아님 — 계산이 남긴 기록", - "Not source data — calculation records", - ], - Z01_MasterData_NoRows: ["줄 없음", "No rows"], - Z01_MasterData_First: ["처음", "First"], - Z01_MasterData_Last: ["끝", "Last"], - Z01_MasterData_Prev: ["이전", "Prev"], - Z01_MasterData_Next: ["다음", "Next"], - Z01_MasterData_Page: ["쪽", "pages"], - Z01_MasterData_Rows: ["줄", "rows"], } as const;