From 992a0ff254b93cb74ebe4d0c00deae443f636680 Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 6 May 2025 11:24:19 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Kabel=C3=BCberwachung=20Modal=20style=20?= =?UTF-8?q?alle=20Buttons=20mit=20Littwinblue=20alle=20Buttons=20ohne=20Mo?= =?UTF-8?q?useover=20effect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SERVICE/kabelueberwachungMockData.js | 2 +- .../kue705FO/modals/KueEinstellung.tsx | 169 ++++++++---------- .../kue705FO/modals/SettingsModalWrapper.tsx | 12 +- .../kue705FO/modals/TdrEinstellung.tsx | 42 ++--- 4 files changed, 104 insertions(+), 121 deletions(-) diff --git a/apiMockData/SERVICE/kabelueberwachungMockData.js b/apiMockData/SERVICE/kabelueberwachungMockData.js index 95f59f8..b4f09e3 100644 --- a/apiMockData/SERVICE/kabelueberwachungMockData.js +++ b/apiMockData/SERVICE/kabelueberwachungMockData.js @@ -135,7 +135,7 @@ var win_kueID = [ //-------------TDR--------------------------------------------------- var win_tdrActive = [ - 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]; //---------------------------------------------------- var win_tdrAtten = [ diff --git a/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx b/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx index 9a405a9..9ba2fe0 100644 --- a/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx +++ b/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx @@ -133,123 +133,108 @@ export default function KueEinstellung({ }; return ( -
-
- +
+ {/* Kabelbezeichnung */} +
+ handleChange("name", e.target.value)} />
- -
-

Isolationsmessung

- - - - - - - - - - - - - -
Grenzwert (MOhm)Verzögerung (sek)
- handleChange("limit1", e.target.value)} - /> - - handleChange("delay1", e.target.value)} - /> -
+ {/* Speicherintervall */} +
+ +
- -
-

Schleifenmessung

- - - - - - - - - - - - - -
Grenzwert (kOhm)Schleifenintervall (h)
- handleChange("limit2Low", e.target.value)} - /> - - handleChange("loopInterval", e.target.value)} - /> -
- -
- - + {/* Isolationsmessung */} +
+

Isolationsmessung

+
+ +
+ handleChange("limit1", e.target.value)} + /> + MOhm +
+
+
+ +
+ handleChange("delay1", e.target.value)} + /> + Sekunden +
+
+
+ {/* Schleifenmessung */} +
+

Schleifenmessung

+
+ +
+ handleChange("limit2Low", e.target.value)} + /> + kOhm +
+
+
+ +
+ handleChange("loopInterval", e.target.value)} + /> + Stunden +
-
{isAdminLoggedIn && ( )} + Display einschalten + {" "}
diff --git a/components/main/kabelueberwachung/kue705FO/modals/SettingsModalWrapper.tsx b/components/main/kabelueberwachung/kue705FO/modals/SettingsModalWrapper.tsx index 7c6a96e..27e1774 100644 --- a/components/main/kabelueberwachung/kue705FO/modals/SettingsModalWrapper.tsx +++ b/components/main/kabelueberwachung/kue705FO/modals/SettingsModalWrapper.tsx @@ -58,16 +58,18 @@ export default function KueModal({ showModal, onClose, slot }: KueModalProps) { }} >
-

Steckplatz {slot + 1}

+

+ Einstellungen Steckplatz {slot + 1} +

-
+
{[ - { label: "KUE Einstellung", key: "kue" }, - { label: "TDR Einstellung", key: "tdr" }, + { label: "Allgemein", key: "kue" }, + { label: "TDR ", key: "tdr" }, { label: "Knotenpunkte", key: "knoten" }, ].map(({ label, key }) => (
-
-
- -
+
+

TDR Einstellungen

+ +
+ +
{ const updated = { ...tdrData, daempfung: e.target.value }; setTdrData(updated); updateCache(updated); }} - className="border px-2 py-1 rounded w-full pr-10" /> - - dB - + dB
-
- -
+
+ +
{ const updated = { ...tdrData, geschwindigkeit: e.target.value }; setTdrData(updated); updateCache(updated); }} - className="border px-2 py-1 rounded w-full pr-14" /> - - m/µs - + m/µs
-
- +
+ { const updated = { ...tdrData, trigger: e.target.value }; setTdrData(updated); updateCache(updated); }} - className="border px-2 py-1 rounded w-full" />
@@ -246,9 +242,9 @@ export default function TdrEinstellung({ slot, onClose }: Props) {