deat: KVz anzeigen
This commit is contained in:
@@ -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.655
|
||||
NEXT_PUBLIC_APP_VERSION=1.6.656
|
||||
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)
|
||||
|
||||
|
||||
@@ -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.655
|
||||
NEXT_PUBLIC_APP_VERSION=1.6.656
|
||||
NEXT_PUBLIC_CPL_MODE=production
|
||||
@@ -1,3 +1,8 @@
|
||||
## [1.6.656] – 2025-07-28
|
||||
|
||||
- fix: Chart Titel Isolationsmessung zu schleifenmessung
|
||||
|
||||
---
|
||||
## [1.6.655] – 2025-07-28
|
||||
|
||||
- cleanup: Kue705FO
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import React, { useState, useMemo } from "react";
|
||||
import { useSelector } from "react-redux";
|
||||
import KueModal from "./modals/SettingsModalWrapper";
|
||||
import FallSensors from "../../fall-detection-sensors/FallSensors";
|
||||
import "bootstrap-icons/font/bootstrap-icons.css"; // Import Bootstrap Icons
|
||||
import { Kue705FOProps } from "../../../../types/Kue705FOProps";
|
||||
// Import the new specialized ChartView components
|
||||
@@ -63,6 +64,7 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
|
||||
const [showIsoModal, setShowIsoModal] = useState(false);
|
||||
const [showRslModal, setShowRslModal] = useState(false);
|
||||
const [showTdrModal, setShowTdrModal] = useState(false);
|
||||
const [showKvzPanel, setShowKvzPanel] = useState(false);
|
||||
// Keep original showChartModal for backwards compatibility if needed
|
||||
// const [showChartModal, setShowChartModal] = useState(false);
|
||||
// Removed unused loopMeasurementCurveChartData state
|
||||
@@ -162,6 +164,14 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
|
||||
const closeTdrModal = () => {
|
||||
setShowTdrModal(false);
|
||||
};
|
||||
|
||||
const openKvzModal = () => {
|
||||
setShowKvzPanel(!showKvzPanel);
|
||||
};
|
||||
|
||||
const closeKvzModal = () => {
|
||||
setShowKvzPanel(false);
|
||||
};
|
||||
//----------------------------------
|
||||
//hooks einbinden
|
||||
const kueVersion = useKueVersion(slotIndex, reduxKueVersion);
|
||||
@@ -388,7 +398,10 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
|
||||
>
|
||||
TDR
|
||||
</button>
|
||||
<button className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2">
|
||||
<button
|
||||
onClick={openKvzModal}
|
||||
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
|
||||
>
|
||||
KVz
|
||||
</button>
|
||||
</div>
|
||||
@@ -399,6 +412,9 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
|
||||
<div className="flex flex-col space-y-2 w-full"></div>
|
||||
</div>
|
||||
|
||||
{/* ISO Chart Modal */}
|
||||
<div className="absolute bottom-0 left-0 right-0 h-[0.125rem] bg-gray-400"></div>
|
||||
|
||||
{/* ISO Chart Modal */}
|
||||
<IsoChartView
|
||||
isOpen={showIsoModal}
|
||||
@@ -421,9 +437,17 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
{/* KVz Panel - Anzeige ganz unten */}
|
||||
{showKvzPanel && (
|
||||
<div className=" bg-gray-400 mt-4 border p-1">
|
||||
<FallSensors />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Offline-View */}
|
||||
{kueOnline !== 1 && (
|
||||
<div className="flex items-center justify-center h-full text-gray-500">
|
||||
<div className="flex items-center justify-center ">
|
||||
{/* Das soll rausgenommen werden
|
||||
<p>Kein Modul im Slot {slotIndex + 0}</p>
|
||||
*/}
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "cpl-v4",
|
||||
"version": "1.6.655",
|
||||
"version": "1.6.656",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "cpl-v4",
|
||||
"version": "1.6.655",
|
||||
"version": "1.6.656",
|
||||
"dependencies": {
|
||||
"@fontsource/roboto": "^5.1.0",
|
||||
"@headlessui/react": "^2.2.4",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cpl-v4",
|
||||
"version": "1.6.655",
|
||||
"version": "1.6.656",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
|
||||
Reference in New Issue
Block a user