From acba477fdb6236e36bae52b63c055a088e02bd83 Mon Sep 17 00:00:00 2001 From: Ismail Ali Date: Thu, 1 May 2025 14:17:47 +0200 Subject: [PATCH] TDR-Aktivieren und oder TDR-deaktivieren in Mock datei --- .../SERVICE/kabelueberwachungMockData.js | 9 ++++----- .../kue705FO/modals/TdrEinstellung.tsx | 18 ++++++++++-------- config/webVersion.ts | 2 +- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/apiMockData/SERVICE/kabelueberwachungMockData.js b/apiMockData/SERVICE/kabelueberwachungMockData.js index 8787cab..83bfb58 100644 --- a/apiMockData/SERVICE/kabelueberwachungMockData.js +++ b/apiMockData/SERVICE/kabelueberwachungMockData.js @@ -135,18 +135,17 @@ var win_kueID = [ //-------------TDR--------------------------------------------------- var win_tdrActive = [ - 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, 1 ]; //---------------------------------------------------- var win_tdrAtten = [ - 9, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0 + 10, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0 ]; var win_tdrSpeed = [ - 109, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100 + 110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100 ]; var win_tdrTrigger = [ - 89, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80 + 100, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80 ]; //---------------------------------------------------- var win_tdrPulse = [ diff --git a/components/main/kabelueberwachung/kue705FO/modals/TdrEinstellung.tsx b/components/main/kabelueberwachung/kue705FO/modals/TdrEinstellung.tsx index b74e98c..9ab98cc 100644 --- a/components/main/kabelueberwachung/kue705FO/modals/TdrEinstellung.tsx +++ b/components/main/kabelueberwachung/kue705FO/modals/TdrEinstellung.tsx @@ -110,17 +110,19 @@ export default function TdrEinstellung({ slot }: Props) { const slotParam = `KTX${slot}=${newState ? 1 : 0}`; if (isDev) { - fetch( - `/api/cpl/updateTdrSettingsDataAPIHandler?key=win_tdrActive&slot=${slot}&value=${ - newState ? 1 : 0 - }` - ) + const updates = [{ key: "win_tdrActive", slot, value: newState ? 1 : 0 }]; + + fetch("/api/cpl/updateTdrSettingsDataAPIHandler", { + method: "POST", + headers: { "Content-Type": "application/json" }, + body: JSON.stringify({ updates }), + }) .then((res) => res.json()) - .then((data) => { - console.log("Mock-Status aktualisiert:", data); + .then(() => { + console.log("TDR-Aktiv-Status gespeichert."); }) .catch((err) => { - console.error("Fehler in DEV-API:", err); + console.error("Fehler beim Speichern von TDR aktiv:", err); }); } else { const url = `${window.location.origin}/CPL?/kabelueberwachung.html&${slotParam}`; diff --git a/config/webVersion.ts b/config/webVersion.ts index bb1b4c0..cdde7bc 100644 --- a/config/webVersion.ts +++ b/config/webVersion.ts @@ -6,5 +6,5 @@ 2: Patch oder Hotfix (Bugfixes oder kleine Änderungen). */ -const webVersion = "1.6.323"; +const webVersion = "1.6.324"; export default webVersion;