diff --git a/.env.development b/.env.development index ebd8cef..10bfce2 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.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) diff --git a/.env.production b/.env.production index 0e41954..ac437cc 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.699 +NEXT_PUBLIC_APP_VERSION=1.6.700 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index acad8bb..5be9714 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package-lock.json b/package-lock.json index b86ea76..b55d315 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 3541684..dce8d5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cpl-v4", - "version": "1.6.699", + "version": "1.6.700", "private": true, "scripts": { "dev": "next dev", diff --git a/services/fetchMessagesService.ts b/services/fetchMessagesService.ts index 4eb2955..8c6150b 100644 --- a/services/fetchMessagesService.ts +++ b/services/fetchMessagesService.ts @@ -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`;