[예측] - OpenDrift Python API 서버 및 스크립트 추가 (prediction/opendrift/) - 시뮬레이션 상태 폴링 훅(useSimulationStatus), 로딩 오버레이 추가 - HydrParticleOverlay: deck.gl 기반 입자 궤적 시각화 레이어 - OilSpillView/LeftPanel/RightPanel: 시뮬레이션 실행·결과 표시 UI 개편 - predictionService/predictionRouter: 시뮬레이션 CRUD 및 상태 관리 API - simulation.ts: OpenDrift 연동 엔드포인트 확장 - docs/PREDICTION-GUIDE.md: 예측 기능 개발 가이드 추가 [CCTV/항공방제] - CCTV 오일 감지 GPU 추론 연동 (OilDetectionOverlay, useOilDetection) - CCTV 안전관리 감지 기능 추가 (선박 출입, 침입 감지) - oil_inference_server.py: Python GPU 추론 서버 [관리자] - 관리자 화면 고도화 (사용자/권한/게시판/선박신호 패널) - AdminSidebar, BoardMgmtPanel, VesselSignalPanel 신규 컴포넌트 [기타] - DB: 시뮬레이션 결과, 선박보험 시드(1391건), 역할 정리 마이그레이션 - 팀 워크플로우 v1.6.1 동기화 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
95 lines
2.7 KiB
TypeScript
95 lines
2.7 KiB
TypeScript
/** 관리자 화면 9-섹션 메뉴 트리 */
|
|
|
|
export interface AdminMenuItem {
|
|
id: string;
|
|
label: string;
|
|
icon?: string;
|
|
children?: AdminMenuItem[];
|
|
}
|
|
|
|
export const ADMIN_MENU: AdminMenuItem[] = [
|
|
{
|
|
id: 'env-settings', label: '환경설정', icon: '⚙️',
|
|
children: [
|
|
{ id: 'menus', label: '메뉴관리' },
|
|
{ id: 'settings', label: '시스템설정' },
|
|
],
|
|
},
|
|
{
|
|
id: 'user-info', label: '사용자정보', icon: '👥',
|
|
children: [
|
|
{ id: 'users', label: '사용자관리' },
|
|
{ id: 'permissions', label: '권한관리' },
|
|
],
|
|
},
|
|
{
|
|
id: 'board-mgmt', label: '게시판관리', icon: '📋',
|
|
children: [
|
|
{ id: 'notice', label: '공지사항' },
|
|
{ id: 'board', label: '게시판' },
|
|
{ id: 'qna', label: 'QNA' },
|
|
],
|
|
},
|
|
{
|
|
id: 'reference', label: '기준정보', icon: '🗺️',
|
|
children: [
|
|
{
|
|
id: 'map-mgmt', label: '지도관리',
|
|
children: [
|
|
{ id: 'map-vector', label: '지도벡데이터' },
|
|
{ id: 'map-layer', label: '레이어' },
|
|
],
|
|
},
|
|
{
|
|
id: 'sensitive-map', label: '민감자원지도',
|
|
children: [
|
|
{ id: 'env-ecology', label: '환경/생태' },
|
|
{ id: 'social-economy', label: '사회/경제' },
|
|
],
|
|
},
|
|
{
|
|
id: 'coast-guard-assets', label: '해경자산',
|
|
children: [
|
|
{ id: 'cleanup-equip', label: '방제장비' },
|
|
{ id: 'dispersant-zone', label: '유처리제 제한구역' },
|
|
{ id: 'vessel-materials', label: '방제선 보유자재' },
|
|
{ id: 'cleanup-resource', label: '방제자원' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
id: 'external', label: '연계관리', icon: '🔗',
|
|
children: [
|
|
{
|
|
id: 'collection', label: '수집자료',
|
|
children: [
|
|
{ id: 'collect-vessel-signal', label: '선박신호' },
|
|
{ id: 'collect-hr', label: '인사정보' },
|
|
],
|
|
},
|
|
{
|
|
id: 'monitoring', label: '연계모니터링',
|
|
children: [
|
|
{ id: 'monitor-realtime', label: '실시간 관측자료' },
|
|
{ id: 'monitor-forecast', label: '수치예측자료' },
|
|
{ id: 'monitor-vessel', label: '선박위치정보' },
|
|
{ id: 'monitor-hr', label: '인사' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
/** 메뉴 ID로 라벨을 찾는 유틸리티 */
|
|
export function findMenuLabel(id: string, items: AdminMenuItem[] = ADMIN_MENU): string | null {
|
|
for (const item of items) {
|
|
if (item.id === id) return item.label;
|
|
if (item.children) {
|
|
const found = findMenuLabel(id, item.children);
|
|
if (found) return found;
|
|
}
|
|
}
|
|
return null;
|
|
}
|