From 93c3bc612d5f9557f591a84971ad8ed62e52c738 Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 8 Jul 2025 13:55:55 +0200 Subject: [PATCH] =?UTF-8?q?Bei=20den=20Kabel=C3=BCberwachung=20kann=20nebe?= =?UTF-8?q?n=20den=20Button=20=E2=80=9CFirmware=20Update=E2=80=9D=20noch?= =?UTF-8?q?=20zwei=20Button=20=E2=80=9CKonfiguration=20sichern=E2=80=9D=20?= =?UTF-8?q?und=20=E2=80=9CKonfiguration=20zur=C3=BCcksichern=E2=80=9D=20im?= =?UTF-8?q?=20Admin-Modus=20hinzukommen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Store: Befehl KSB%i=%i z.B. KSB03=1 sichert die Konfiguration der KÜ 4 Restore: Befehl KSR%i=%i z.B. KSR03=1 sichert die Konfiguration der KÜ 4 zurück --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 5 +++ .../kue705FO/modals/KueEinstellung.tsx | 40 +++++++++++++++++-- package-lock.json | 4 +- package.json | 2 +- 6 files changed, 47 insertions(+), 8 deletions(-) diff --git a/.env.development b/.env.development index 16abac4..7a14d3e 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.563 +NEXT_PUBLIC_APP_VERSION=1.6.564 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 a2618a9..486112f 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.563 +NEXT_PUBLIC_APP_VERSION=1.6.564 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b8e9dd7..81293ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.564] – 2025-07-08 + +- refactor: extract Kabelueberwachung logic into KabelueberwachungView for better structure + +--- ## [1.6.563] – 2025-07-08 - refactor: move analog inputs logic to AnalogInputsView component diff --git a/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx b/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx index 6390e30..6cae8e2 100644 --- a/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx +++ b/components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx @@ -2,9 +2,9 @@ // components/main/kabelueberwachung/kue705FO/modals/KueEinstellung.tsx import { useState } from "react"; import { useDispatch, useSelector } from "react-redux"; -import type { RootState, AppDispatch } from "../../../../../redux/store"; +import type { RootState, AppDispatch } from "@/redux/store"; import handleSave from "../handlers/handleSave"; -import handleDisplayEinschalten from "../handlers/handleDisplayEinschalten"; +import handleDisplayEinschalten from "@/components/main/kabelueberwachung/kue705FO/handlers/handleDisplayEinschalten"; import firmwareUpdate from "../handlers/firmwareUpdate"; import ProgressModal from "@/components/main/settingsPageComponents/modals/ProgressModal"; import { toast } from "react-toastify"; @@ -286,7 +286,7 @@ export default function KueEinstellung({ -
+
{isAdminLoggedIn && ( <> + + {/* Konfiguration sichern */} + + + {/* Konfiguration zurücksichern */} + )} {showConfirmModal && ( diff --git a/package-lock.json b/package-lock.json index 2503a5f..5916a5a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.563", + "version": "1.6.564", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.563", + "version": "1.6.564", "dependencies": { "@fontsource/roboto": "^5.1.0", "@headlessui/react": "^2.2.4", diff --git a/package.json b/package.json index 27ff339..f1d499a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.563", + "version": "1.6.564", "private": true, "scripts": { "dev": "next dev",