From a0b97d403e82a5c3948f30afe49132289041b550 Mon Sep 17 00:00:00 2001 From: bigserver Date: Thu, 9 Apr 2026 08:29:43 +0200 Subject: [PATCH] Umlaute in Dashboard und Infrastruktur korrigieren closes #27 --- app/assets/js/dashboard.js | 12 ++++---- app/modules/dashboard/list.php | 36 +++++++++++------------ app/modules/floor_infrastructure/list.php | 32 ++++++++++---------- 3 files changed, 40 insertions(+), 40 deletions(-) diff --git a/app/assets/js/dashboard.js b/app/assets/js/dashboard.js index 2237c25..146eb7a 100644 --- a/app/assets/js/dashboard.js +++ b/app/assets/js/dashboard.js @@ -4,10 +4,10 @@ window.Dashboard = (function () { const modules = [ - { id: 'device_types', label: 'Geraetetypen', description: 'Geraetetypen und Port-Definitionen', url: '?module=device_types&action=list', icon: 'DT' }, - { id: 'devices', label: 'Geraete', description: 'Physische Geraete in Racks und Raeumen', url: '?module=devices&action=list', icon: 'DV' }, + { id: 'device_types', label: 'Gerätetypen', description: 'Gerätetypen und Port-Definitionen', url: '?module=device_types&action=list', icon: 'DT' }, + { id: 'devices', label: 'Geräte', description: 'Physische Geräte in Racks und Räumen', url: '?module=devices&action=list', icon: 'DV' }, { id: 'connections', label: 'Verbindungen', description: 'Kabel, Ports und VLANs', url: '?module=connections&action=list', icon: 'CN' }, - { id: 'floors', label: 'Stockwerke', description: 'Standorte, Gebaeude und Etagen', url: '?module=floors&action=list', icon: 'FL' }, + { id: 'floors', label: 'Stockwerke', description: 'Standorte, Gebäude und Etagen', url: '?module=floors&action=list', icon: 'FL' }, { id: 'racks', label: 'Racks', description: 'Racks und Positionierung', url: '?module=racks&action=list', icon: 'RK' }, { id: 'infra', label: 'Infrastruktur', description: 'Patchpanels und Wandbuchsen', url: '?module=floor_infrastructure&action=list', icon: 'IF' } ]; @@ -53,7 +53,7 @@ window.Dashboard = (function () { return; } - target.textContent = `Geraete: ${stats.devices} | Verbindungen: ${stats.connections} | Infrastruktur-Eintraege: ${stats.outlets}`; + target.textContent = `Geräte: ${stats.devices} | Verbindungen: ${stats.connections} | Infrastruktur-Einträge: ${stats.outlets}`; } function showWarnings() { @@ -64,7 +64,7 @@ window.Dashboard = (function () { const warnings = []; if (countRows('.device-list tbody tr') === 0) { - warnings.push('Noch keine Geraete vorhanden'); + warnings.push('Noch keine Geräte vorhanden'); } if (countRows('.connection-list tbody tr') === 0) { warnings.push('Noch keine Verbindungen vorhanden'); @@ -79,7 +79,7 @@ window.Dashboard = (function () { return; } - target.textContent = 'Letzte Aenderungen werden serverseitig noch nicht protokolliert.'; + target.textContent = 'Letzte Änderungen werden serverseitig noch nicht protokolliert.'; } function countRows(selector) { diff --git a/app/modules/dashboard/list.php b/app/modules/dashboard/list.php index 52935d5..f26ac56 100644 --- a/app/modules/dashboard/list.php +++ b/app/modules/dashboard/list.php @@ -1,7 +1,7 @@ Reset -

Hierarchie: Standort → Gebaeude → Stockwerk → Rack → Geraet. Linien zeigen Rack-Verbindungen (dicker = mehr Links).

+

Hierarchie: Standort → Gebäude → Stockwerk → Rack → Gerät. Linien zeigen Rack-Verbindungen (dicker = mehr Links).

@@ -272,12 +272,12 @@ foreach ($rackLinksByKey as $entry) { - +