From 7da872ae07b2f3e52adf4de0eb627a7199b9ce17 Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 27 Jun 2025 07:12:01 +0200 Subject: [PATCH] refactor --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 5 +++++ components/main/digitalInputs/DigitalInputsWidget.tsx | 5 ++++- package-lock.json | 4 ++-- package.json | 2 +- pages/digitalInputs.tsx | 10 +++++----- pages/digitalOutputs.tsx | 8 ++++---- 8 files changed, 23 insertions(+), 15 deletions(-) diff --git a/.env.development b/.env.development index 234a03d..e69348e 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.485 +NEXT_PUBLIC_APP_VERSION=1.6.486 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 fecb297..f0d96a2 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.485 +NEXT_PUBLIC_APP_VERSION=1.6.486 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e5bef3b..39b3a09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.486] – 2025-06-27 + +- refactor: rename einausgange to digitalOtputs and digitalInputs + +--- ## [1.6.485] – 2025-06-27 - esLint diff --git a/components/main/digitalInputs/DigitalInputsWidget.tsx b/components/main/digitalInputs/DigitalInputsWidget.tsx index ba61756..4fc6806 100644 --- a/components/main/digitalInputs/DigitalInputsWidget.tsx +++ b/components/main/digitalInputs/DigitalInputsWidget.tsx @@ -18,7 +18,10 @@ type Props = { inputRange: { start: number; end: number }; }; -export default function DigitalInputs({ openInputModal, inputRange }: Props) { +export default function DigitalInputsWidget({ + openInputModal, + inputRange, +}: Props) { const digitalInputs = useSelector( (state: RootState) => state.digitalInputsSlice.inputs ); diff --git a/package-lock.json b/package-lock.json index 5f14974..6789968 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "cpl-v4", - "version": "1.6.485", + "version": "1.6.486", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "cpl-v4", - "version": "1.6.485", + "version": "1.6.486", "dependencies": { "@fontsource/roboto": "^5.1.0", "@iconify-icons/ri": "^1.2.10", diff --git a/package.json b/package.json index 3a691d5..b50dfaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.485", + "version": "1.6.486", "private": true, "scripts": { "dev": "next dev", diff --git a/pages/digitalInputs.tsx b/pages/digitalInputs.tsx index be78729..b8fe737 100644 --- a/pages/digitalInputs.tsx +++ b/pages/digitalInputs.tsx @@ -8,9 +8,9 @@ import InputModal from "@/components/main/digitalInputs/digitalInputsModal"; import { getDigitalInputsThunk } from "@/redux/thunks/getDigitalInputsThunk"; -import DigitalInputs from "@/components/main/digitalInputs/DigitalInputsWidget"; +import DigitalInputsWidget from "@/components/main/digitalInputs/DigitalInputsWidget"; -const digitalInputs: React.FC = () => { +const DigitalInputs: React.FC = () => { const dispatch = useDispatch(); interface DigitalInput { id: number; @@ -49,11 +49,11 @@ const digitalInputs: React.FC = () => {

Meldungseingänge

- - @@ -70,4 +70,4 @@ const digitalInputs: React.FC = () => { ); }; -export default digitalInputs; +export default DigitalInputs; diff --git a/pages/digitalOutputs.tsx b/pages/digitalOutputs.tsx index c02391f..6dd0a74 100644 --- a/pages/digitalOutputs.tsx +++ b/pages/digitalOutputs.tsx @@ -5,14 +5,14 @@ import { useDispatch } from "react-redux"; import { AppDispatch } from "@/redux/store"; import DigitalOutputsModal from "../components/main/digitalOutputs/DigitalOutputsModal"; -import DigitalOutputs from "../components/main/digitalOutputs/DigitalOutputsWidget"; +import DigitalOutputsWidget from "../components/main/digitalOutputs/DigitalOutputsWidget"; import { getDigitalInputsThunk } from "@/redux/thunks/getDigitalInputsThunk"; import { getDigitalOutputsThunk } from "@/redux/thunks/getDigitalOutputsThunk"; import type { DigitalOutput } from "@/types/digitalOutput"; -const digitalOutputs: React.FC = () => { +const DigitalOutputs: React.FC = () => { const dispatch = useDispatch(); const [selectedOutput, setSelectedOutput] = useState( null @@ -45,7 +45,7 @@ const digitalOutputs: React.FC = () => {

Schaltausgänge

- +
{selectedOutput && ( @@ -59,4 +59,4 @@ const digitalOutputs: React.FC = () => { ); }; -export default digitalOutputs; +export default DigitalOutputs;