v3.0.2: server-v2 모듈 분리 — Arduino·PPTX 라우트 추출 (-2923줄)
- routes-arduino.ts: Arduino 컴파일/라이브러리/QEMU/ESP8266 에뮬 전체 - routes-pptx.ts: PPTX 생성/편집/PDF/이미지 API 전체 - mocks-esp32: WiFi.STA(_STAProxy), scanNetworks, DELETE() 수정 - mocks-esp8266: DELETE() 수정 - server-v2.ts: 16106 → 13183줄 (–18%) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -562,6 +562,7 @@
|
||||
<div class="wifi-row"><span class="wifi-label">SSID</span><span class="wifi-val" id="wifi-ssid">-</span></div>
|
||||
<div class="wifi-row"><span class="wifi-label">IP</span><span class="wifi-val" id="wifi-ip">-</span></div>
|
||||
<div class="wifi-row"><span class="wifi-label">RSSI</span><span class="wifi-val" id="wifi-rssi">-</span></div>
|
||||
<div class="wifi-row" id="wifi-http-row" style="display:none"><span class="wifi-label">HTTP</span><a id="wifi-http-link" class="wifi-val" href="#" target="_blank" style="color:#60a5fa;text-decoration:underline">-</a></div>
|
||||
<div class="wifi-row" style="margin-top:8px">
|
||||
<input class="wifi-input" id="wifi-ssid-input" placeholder="SSID" />
|
||||
<input class="wifi-input" id="wifi-pass-input" type="password" placeholder="비밀번호" />
|
||||
@@ -1602,6 +1603,18 @@ function _wifiHandleEvent(msg) {
|
||||
_wifiUpdateUI();
|
||||
}
|
||||
|
||||
function _showHttpPortLink(port) {
|
||||
_wifiShow();
|
||||
const row = document.getElementById('wifi-http-row');
|
||||
const link = document.getElementById('wifi-http-link');
|
||||
if (!row || !link) return;
|
||||
const url = 'http://' + location.hostname + ':' + port;
|
||||
link.href = url;
|
||||
link.textContent = url;
|
||||
row.style.display = '';
|
||||
appendSerial('\n[웹서버 실행 중: ' + url + ']\n', 'sys');
|
||||
}
|
||||
|
||||
function _wifiConnectClicked() {
|
||||
const ssid = document.getElementById('wifi-ssid-input').value.trim();
|
||||
const pass = document.getElementById('wifi-pass-input').value;
|
||||
@@ -2573,6 +2586,7 @@ function connectEsp8266Output() {
|
||||
if (msg.motor) { _motorAttach(msg.motor); return; }
|
||||
if (msg.motor_state) { _motorUpdateState(msg.motor_state); return; }
|
||||
if (msg.wifi) { _wifiHandleEvent(msg.wifi); return; }
|
||||
if (msg.http_port) { _showHttpPortLink(msg.http_port); return; }
|
||||
if (msg.tft) { _esp32TftDraw(msg.tft); return; }
|
||||
const t = msg.t;
|
||||
if (!t) return;
|
||||
@@ -2912,10 +2926,8 @@ function connectEsp32Output() {
|
||||
if (msg.motor) { _motorAttach(msg.motor); return; }
|
||||
if (msg.motor_state) { _motorUpdateState(msg.motor_state); return; }
|
||||
if (msg.wifi) { _wifiHandleEvent(msg.wifi); return; }
|
||||
if (msg.tft) {
|
||||
_esp32TftDraw(msg.tft);
|
||||
return;
|
||||
}
|
||||
if (msg.http_port) { _showHttpPortLink(msg.http_port); return; }
|
||||
if (msg.tft) { _esp32TftDraw(msg.tft); return; }
|
||||
const t = msg.t;
|
||||
if (!t) return;
|
||||
_esp32BlinkRx();
|
||||
|
||||
Reference in New Issue
Block a user