Nach Betriebsferien einmal sichern

This commit is contained in:
ISA
2025-07-21 08:58:24 +02:00
parent 311d47211e
commit 528773128d
6 changed files with 10 additions and 60 deletions

View File

@@ -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.604
NEXT_PUBLIC_APP_VERSION=1.6.605
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)

View File

@@ -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.604
NEXT_PUBLIC_APP_VERSION=1.6.605
NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.605] 2025-07-21
- Nach Betriebsferien einmal sichern
---
## [1.6.604] 2025-07-21
- feat(analogInputs): automatisches Laden der Chart-Daten bei Tabellenklick via Redux

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "cpl-v4",
"version": "1.6.604",
"version": "1.6.605",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cpl-v4",
"version": "1.6.604",
"version": "1.6.605",
"dependencies": {
"@fontsource/roboto": "^5.1.0",
"@headlessui/react": "^2.2.4",

View File

@@ -1,6 +1,6 @@
{
"name": "cpl-v4",
"version": "1.6.604",
"version": "1.6.605",
"private": true,
"scripts": {
"dev": "next dev",

View File

@@ -1,55 +0,0 @@
import React, { useState, useEffect } from "react";
import { Chart } from "some-chart-library"; // Replace with actual chart library import
const AnalogInputsChart = () => {
const [startDate, setStartDate] = useState("2025-06-27");
const [endDate, setEndDate] = useState("2025-07-01");
const [chartData, setChartData] = useState([]);
const fetchData = async () => {
// Replace with actual API call or data fetching logic
const response = await fetch(`/api/data?start=${startDate}&end=${endDate}`);
const data = await response.json();
setChartData(data);
};
useEffect(() => {
fetchData(); // Fetch data initially
}, []);
const handleLoadData = () => {
fetchData(); // Fetch data when button is clicked
};
return (
<div>
<div>
<label>Von</label>
<input
type="date"
value={startDate}
onChange={(e) => setStartDate(e.target.value)}
/>
<label>Bis</label>
<input
type="date"
value={endDate}
onChange={(e) => setEndDate(e.target.value)}
/>
<button onClick={handleLoadData}>Daten laden</button>
</div>
<Chart
data={chartData}
xAxis={{
type: "datetime",
title: "Zeit",
}}
yAxis={{
title: "Messwert V",
}}
/>
</div>
);
};
export default AnalogInputsChart;