From 357fb6c8164a27babbdc2ba0bf1c8d6a107b9be1 Mon Sep 17 00:00:00 2001 From: ISA Date: Thu, 24 Jul 2025 08:25:52 +0200 Subject: [PATCH] feat: Isowert und Schleifenwiderstanf in schwarzen Display zusammen --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 5 ++ .../kabelueberwachung/kue705FO/Kue705FO.tsx | 67 +++++++++++++------ package-lock.json | 4 +- package.json | 2 +- 6 files changed, 58 insertions(+), 24 deletions(-) diff --git a/.env.development b/.env.development index 9121667..38804fb 100644 --- a/.env.development +++ b/.env.development @@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_USE_CGI=false # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.640 +NEXT_PUBLIC_APP_VERSION=1.6.641 NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) diff --git a/.env.production b/.env.production index 44ae86d..23c26e7 100644 --- a/.env.production +++ b/.env.production @@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_USE_CGI=true # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.6.640 +NEXT_PUBLIC_APP_VERSION=1.6.641 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 416e1ce..b1ec4a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.641] – 2025-07-24 + +- Hide fallsensors + +--- ## [1.6.640] – 2025-07-23 - feat: Fallsensors diff --git a/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx b/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx index 0d2d376..a40ac51 100644 --- a/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx +++ b/components/main/kabelueberwachung/kue705FO/Kue705FO.tsx @@ -220,9 +220,9 @@ const Kue705FO: React.FC = ({ - {/* Anzeige des Isolation */} -
-
+ {/* Anzeige des Isolation und Schleifenwiderstand zusammen */} +
+
= ({ Number(kueGroundFault?.[slotIndex]) === 1 || Number(kueAlarm1?.[slotIndex]) === 1 || Number(kueAlarm2?.[slotIndex]) === 1 - ? "text-red-500 text-[0.875rem]" + ? "text-red-500 text-[0.65rem]" : Number(kueOverflow?.[slotIndex]) === 1 - ? "text-white text-[0.875rem]" + ? "text-white text-[0.65rem]" : "" } > @@ -244,27 +244,43 @@ const Kue705FO: React.FC = ({ "Erdschluss" ) : Number(kueAlarm1?.[slotIndex]) === 1 ? (
- + Isolationsfehler - + {isoDisplayValue} MOhm
) : Number(kueAlarm2?.[slotIndex]) === 1 ? ( "Schleifenfehler" ) : ( - isoDisplayValue + <> + + + ISO: {" "} + {isoDisplayValue} MOhm + + + )}
- + {/* Schleifenwiderstand immer anzeigen, außer bei Fehlern */} {![ Number(kuePSTmMinus96V?.[slotIndex]), Number(kueCableBreak?.[slotIndex]), Number(kueGroundFault?.[slotIndex]), Number(kueAlarm1?.[slotIndex]), Number(kueAlarm2?.[slotIndex]), - ].includes(1) &&
ISO MOhm
} + ].includes(1) && ( + <> + + + Sch.: {" "} + {loopDisplayValue} kOhm + + + + )}
@@ -333,7 +349,7 @@ const Kue705FO: React.FC = ({
{/* loopDisplay: Zeigt Schleifenwiderstand oder TDR-Distanz an, je nach Modus */} -
+
{loopTitleText} @@ -357,12 +373,7 @@ const Kue705FO: React.FC = ({
- + {/* Messkurven-Button moved below the module */} {/* Sensoren anzeigen */} { /* if Kabelüberwachungsmodul online (kue_online ) */ @@ -375,7 +386,23 @@ const Kue705FO: React.FC = ({
{/* Modal für Einstellungen */} - + + ) : ( +
+ {/* Das soll rausgenommen werden +

Kein Modul im Slot {slotIndex + 0}

+ */} +
+ )} + {/* Messkurven-Button unter dem Modul */} + {kueOnline === 1 && ( + <> + {/* Modal für Messkurve */} {showChartModal && ( = ({ /> )} - ) : ( + )} + {/* Offline-View */} + {kueOnline !== 1 && (
{/* Das soll rausgenommen werden

Kein Modul im Slot {slotIndex + 0}

diff --git a/package-lock.json b/package-lock.json index c85fa97..5857b12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.640", + "version": "1.6.641", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.640", + "version": "1.6.641", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index d590afd..6f931ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.640", + "version": "1.6.641", "private": true, "scripts": { "dev": "next dev",