update web ui
Some checks failed
ESP-IDF Build / build (esp32c6, release-v5.4) (push) Failing after 4m6s
ESP-IDF Build / build (esp32c6, release-v5.5) (push) Failing after 4m19s
ESP-IDF Build / build (esp32s3, release-v5.4) (push) Failing after 3m52s
ESP-IDF Build / build (esp32s3, release-v5.5) (push) Failing after 4m4s
Some checks failed
ESP-IDF Build / build (esp32c6, release-v5.4) (push) Failing after 4m6s
ESP-IDF Build / build (esp32c6, release-v5.5) (push) Failing after 4m19s
ESP-IDF Build / build (esp32s3, release-v5.4) (push) Failing after 3m52s
ESP-IDF Build / build (esp32s3, release-v5.5) (push) Failing after 4m4s
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
<span class="mode-icon">🌙</span>
|
||||
<span class="mode-name" data-i18n="mode.night">Nacht</span>
|
||||
</button>
|
||||
<button class="mode-btn active" id="mode-simulation" onclick="setMode('simulation')">
|
||||
<button class="mode-btn" id="mode-simulation" onclick="setMode('simulation')">
|
||||
<span class="mode-icon">🔄</span>
|
||||
<span class="mode-name" data-i18n="mode.simulation">Simulation</span>
|
||||
</button>
|
||||
@@ -109,7 +109,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Szenen Card -->
|
||||
<div class="card" id="scenes-control-card">
|
||||
<div class="card" id="scenes-control-card" style="display: none;">
|
||||
<h2 data-i18n="scenes.title">Szenen</h2>
|
||||
<div id="scenes-control-list" class="scenes-grid">
|
||||
<!-- Wird dynamisch gefüllt -->
|
||||
@@ -123,7 +123,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Externe Geräte Card -->
|
||||
<div class="card" id="devices-control-card">
|
||||
<div class="card" id="devices-control-card" style="display: none;">
|
||||
<h2 data-i18n="devices.external">Externe Geräte</h2>
|
||||
<div id="devices-control-list" class="devices-control-grid">
|
||||
<!-- Wird dynamisch gefüllt -->
|
||||
|
||||
@@ -108,12 +108,16 @@ const translations = {
|
||||
'wifi.disconnected': '❌ Nicht verbunden',
|
||||
'wifi.unavailable': '⚠️ Status nicht verfügbar',
|
||||
'wifi.searching': 'Suche läuft...',
|
||||
'wifi.scan.error': 'Fehler beim Scannen',
|
||||
'wifi.scan.error': 'Fehler beim WLAN-Scan',
|
||||
'wifi.scan.failed': 'Netzwerksuche fehlgeschlagen',
|
||||
'wifi.saved': 'WLAN-Konfiguration gespeichert! Gerät verbindet sich...',
|
||||
'wifi.error.ssid': 'Bitte WLAN-Name eingeben',
|
||||
'wifi.error.save': 'Fehler beim Speichern',
|
||||
'wifi.networks.found': '{count} Netzwerk(e) gefunden',
|
||||
'wifi.networks.notfound': 'Keine Netzwerke gefunden.',
|
||||
'wifi.signal': 'Signal',
|
||||
'wifi.secure': 'Gesichert',
|
||||
'wifi.open': 'Offen',
|
||||
|
||||
// Schema Editor
|
||||
'schema.editor.title': 'Licht-Schema Editor',
|
||||
@@ -285,6 +289,10 @@ const translations = {
|
||||
'wifi.error.ssid': 'Please enter WiFi name',
|
||||
'wifi.error.save': 'Error saving',
|
||||
'wifi.networks.found': '{count} network(s) found',
|
||||
'wifi.networks.notfound': 'No networks found.',
|
||||
'wifi.signal': 'Signal',
|
||||
'wifi.secure': 'Secured',
|
||||
'wifi.open': 'Open',
|
||||
|
||||
// Schema Editor
|
||||
'schema.editor.title': 'Light Schema Editor',
|
||||
@@ -440,6 +448,10 @@ function updatePageLanguage() {
|
||||
if (titleEl) {
|
||||
document.title = t(titleEl.getAttribute('data-i18n'));
|
||||
}
|
||||
// WLAN-Optionen dynamisch übersetzen
|
||||
if (typeof updateWifiOptionsLanguage === 'function') {
|
||||
updateWifiOptionsLanguage();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,7 +45,7 @@ function switchSubTab(subTabName) {
|
||||
document.querySelector(`.sub-tab[onclick="switchSubTab('${subTabName}')"]`).classList.add('active');
|
||||
document.getElementById(`subtab-${subTabName}`).classList.add('active');
|
||||
|
||||
if (subTabName === 'schema' && schemaData.length === 0) {
|
||||
if (subTabName === 'schema' && typeof schemaData !== 'undefined' && schemaData.length === 0) {
|
||||
loadSchema();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user