From f25063074d802ff28317a44cc87d88bdb4f4fa09 Mon Sep 17 00:00:00 2001 From: ISA Date: Wed, 10 Sep 2025 11:45:36 +0200 Subject: [PATCH] =?UTF-8?q?style:=20Digitale=20Ausg=C3=A4nge=20Switch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- CHANGELOG.md | 5 +++ .../main/digitalInputs/digitalInputsModal.tsx | 36 ++++++++++++++----- .../digitalOutputs/DigitalOutputsWidget.tsx | 18 +++++----- package-lock.json | 4 +-- package.json | 2 +- 7 files changed, 47 insertions(+), 22 deletions(-) diff --git a/.env.development b/.env.development index 28977f4..bf242b0 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.894 +NEXT_PUBLIC_APP_VERSION=1.6.895 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 2121390..5858c04 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.894 +NEXT_PUBLIC_APP_VERSION=1.6.895 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index fbbb823..e1f7007 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.895] – 2025-09-10 + +- style: DigitalInputsModal dark mode + +--- ## [1.6.894] – 2025-09-10 - style: DigitalInputsModal dark mode diff --git a/components/main/digitalInputs/digitalInputsModal.tsx b/components/main/digitalInputs/digitalInputsModal.tsx index ceb04f3..ad59419 100644 --- a/components/main/digitalInputs/digitalInputsModal.tsx +++ b/components/main/digitalInputs/digitalInputsModal.tsx @@ -184,7 +184,9 @@ export default function InputModal({
-

Einstellungen Meldungseingang {selectedInput.id}

+

+ Einstellungen Meldungseingang {selectedInput.id} +

{invertiert ? "Ein" : "Aus"} @@ -243,7 +253,9 @@ export default function InputModal({ className="border border-base rounded px-2 py-1 pr-10 w-full text-right bg-[var(--color-surface-alt)] text-fg" title="Maximal 2000 ms erlaubt" /> - ms + + ms +
Gewichtung: @@ -265,7 +277,9 @@ export default function InputModal({ />
- Out of Service: + + Out of Service: +
{eingangOffline ? "Ein" : "Aus"} diff --git a/components/main/digitalOutputs/DigitalOutputsWidget.tsx b/components/main/digitalOutputs/DigitalOutputsWidget.tsx index f6c34c0..9b382af 100644 --- a/components/main/digitalOutputs/DigitalOutputsWidget.tsx +++ b/components/main/digitalOutputs/DigitalOutputsWidget.tsx @@ -108,15 +108,17 @@ export default function DigitalOutputsWidget({ {output.label} - handleToggle(output.id)} - /> + className={`relative inline-flex h-4 w-7 items-center rounded-full border border-base transition-colors duration-200 ${output.status ? "bg-littwin-blue" : "bg-base-muted"}`} + > + +