diff --git a/.env.development b/.env.development index c732e7c..2b573ba 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.736 +NEXT_PUBLIC_APP_VERSION=1.6.737 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 0e1dc05..32435c5 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.736 +NEXT_PUBLIC_APP_VERSION=1.6.737 NEXT_PUBLIC_CPL_MODE=production \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b97b2f4..169bf4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [1.6.737] – 2025-08-18 + +- feat: playwright scraper + +--- ## [1.6.736] – 2025-08-18 - fix: window.location.pathname statt gestes Wert diff --git a/components/header/Header.tsx b/components/header/Header.tsx index c2bcdc7..d7dd9b8 100644 --- a/components/header/Header.tsx +++ b/components/header/Header.tsx @@ -1,5 +1,6 @@ "use client"; // components/Header.jsx import React, { useState, useEffect } from "react"; +import { Icon } from "@iconify/react"; import Image from "next/image"; import { useRouter } from "next/router"; import "bootstrap-icons/font/bootstrap-icons.css"; @@ -56,8 +57,21 @@ function Header() { }, [deviceName, dispatch]); //---------------------------------------------------------------- + // Dark/Light Mode Toggle + const [isDark, setIsDark] = useState(false); + useEffect(() => { + if (typeof window !== "undefined") { + const html = document.documentElement; + if (isDark) { + html.classList.add("dark"); + } else { + html.classList.remove("dark"); + } + } + }, [isDark]); + return ( -
+
-
- {/* Admin-Login */} - {/* +
+ {/* Dark/Light Mode Toggle */} - */}
{/* Logout-Button - nur anzeigen wenn Admin eingeloggt ist */} diff --git a/components/navigation/Navigation.tsx b/components/navigation/Navigation.tsx index 138a8f5..14e898f 100644 --- a/components/navigation/Navigation.tsx +++ b/components/navigation/Navigation.tsx @@ -36,23 +36,23 @@ const Navigation: React.FC = ({ className }) => { ]; return ( -