연결 방법 표시 위치 정리

This commit is contained in:
seo
2026-06-29 05:27:41 +09:00
parent b1307b5544
commit ddbd193276
+17 -2
View File
@@ -57,7 +57,7 @@ const deviceLang = (navigator.language || navigator.userLanguage || "en").starts
notifications: "알림", notifications: "알림",
alerts: "알림/통화", alerts: "알림/통화",
environment: "센서", environment: "센서",
networkType: "네트워크", networkType: "연결",
wifiState: "Wi-Fi 상태", wifiState: "Wi-Fi 상태",
wifiBssid: "Wi-Fi BSSID", wifiBssid: "Wi-Fi BSSID",
mobileDataRoaming: "데이터 로밍", mobileDataRoaming: "데이터 로밍",
@@ -264,7 +264,7 @@ const deviceLang = (navigator.language || navigator.userLanguage || "en").starts
notifications: "Notifications", notifications: "Notifications",
alerts: "Alerts & Calls", alerts: "Alerts & Calls",
environment: "Sensors", environment: "Sensors",
networkType: "Network Type", networkType: "Connection Type",
wifiState: "Wi-Fi State", wifiState: "Wi-Fi State",
wifiBssid: "Wi-Fi BSSID", wifiBssid: "Wi-Fi BSSID",
mobileDataRoaming: "Data Roaming", mobileDataRoaming: "Data Roaming",
@@ -909,6 +909,7 @@ function applyLanguage(langCode) {
const el = document.getElementById(id); const el = document.getElementById(id);
if (el) el.textContent = labelMap[id]; if (el) el.textContent = labelMap[id];
} }
cleanupLegacyConnectionRow();
document.querySelectorAll('[data-sensor-title="1"]').forEach(title => { document.querySelectorAll('[data-sensor-title="1"]').forEach(title => {
const sectionKey = title.dataset.sensorSection; const sectionKey = title.dataset.sensorSection;
@@ -958,6 +959,20 @@ function updateDOM(data) {
toggleOptionalRow('WbatteryStatus', data.wstate); toggleOptionalRow('WbatteryStatus', data.wstate);
toggleOptionalRow('WBattery', data.wlevel); toggleOptionalRow('WBattery', data.wlevel);
updateSensorSections(data.sensors || {}); updateSensorSections(data.sensors || {});
cleanupLegacyConnectionRow();
}
function cleanupLegacyConnectionRow() {
const valueEl = document.getElementById('connectionType');
const row = valueEl?.closest('.settingRow');
row?.remove();
const title = document.getElementById('titleEtc');
const nextSection = title?.nextElementSibling;
if (title && nextSection?.classList?.contains('settingSection') && !nextSection.querySelector('.settingRow')) {
nextSection.remove();
title.remove();
}
} }
function updateSensorSections(sections) { function updateSensorSections(sections) {