WIP: Meldungen

This commit is contained in:
ISA
2025-08-12 12:18:06 +02:00
parent b8b5c36a60
commit 2765d06836
6 changed files with 19 additions and 8 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.699
NEXT_PUBLIC_APP_VERSION=1.6.700
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.699
NEXT_PUBLIC_APP_VERSION=1.6.700
NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.700] 2025-08-12
- Isolatioswiderstand Chart abhängig von dropdown menu select name und nicht von Titel
---
## [1.6.699] 2025-08-12
- chore(eslint): ignore irregular whitespace in comments (keep rule strict for code)

4
package-lock.json generated
View File

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

View File

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

View File

@@ -13,9 +13,15 @@ export const fetchMessagesService = async (
const tm = String(to.getMonth() + 1).padStart(2, "0");
const td = String(to.getDate()).padStart(2, "0");
const isDev =
typeof window !== "undefined" && window.location.hostname === "localhost";
const url = isDev
const isLocalHost =
typeof window !== "undefined" &&
["localhost", "127.0.0.1", "::1"].includes(window.location.hostname);
const forceMocks =
typeof process !== "undefined" &&
process.env.NEXT_PUBLIC_USE_MOCKS === "1";
const useMocks = forceMocks || isLocalHost;
const url = useMocks
? `/api/cpl/messages?fromDate=${fromDate}&toDate=${toDate}`
: `/CPL?Service/ae.ACP&MSS1=${fy};${fm};${fd};${ty};${tm};${td};All`;