/** * SatelliteRequest.tsx 디자인 시스템 적용 스크립트 * 실행: node scripts/fix-satellite-request.mjs */ import { readFileSync, writeFileSync } from 'fs'; import { fileURLToPath } from 'url'; import { dirname, resolve } from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const filePath = resolve(__dirname, '../frontend/src/components/aerial/components/SatelliteRequest.tsx'); let src = readFileSync(filePath, 'utf-8'); // ──────────────────────────────────────────────────── // 작업 1: UI 개선 // ──────────────────────────────────────────────────── // 1-1. stats 배열 color 필드 제거 src = src.replace( `const stats = [ { value: '3', label: '요청 대기', color: 'var(--color-info)' }, { value: '1', label: '촬영 진행 중', color: 'var(--color-caution)' }, { value: '7', label: '수신 완료', color: 'var(--color-success)' }, { value: '0.5m', label: '최고 해상도', color: 'var(--color-accent)' }, ];`, `const stats = [ { value: '3', label: '요청 대기' }, { value: '1', label: '촬영 진행 중' }, { value: '7', label: '수신 완료' }, { value: '0.5m', label: '최고 해상도' }, ];` ); // 1-1. stats 값 div: style color 제거, text-fg 추가 src = src.replace( `