refactorring dashboard

This commit is contained in:
ISA
2025-06-27 07:23:34 +02:00
parent 7da872ae07
commit d3a8556b2f
18 changed files with 63 additions and 56 deletions

View File

@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false NEXT_PUBLIC_USE_CGI=false
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.486 NEXT_PUBLIC_APP_VERSION=1.6.487
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) 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_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.486 NEXT_PUBLIC_APP_VERSION=1.6.487
NEXT_PUBLIC_CPL_MODE=production NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.487] 2025-06-27
- refactor
---
## [1.6.486] 2025-06-27 ## [1.6.486] 2025-06-27
- refactor: rename einausgange to digitalOtputs and digitalInputs - refactor: rename einausgange to digitalOtputs and digitalInputs

View File

@@ -39,6 +39,7 @@ const NetworkInfo: React.FC = () => {
return ( return (
<div className="w-full flex-direction: row flex"> <div className="w-full flex-direction: row flex">
<div className=" flex-grow flex justify-between items-center mt-1 bg-white p-2 rounded-lg shadow-md border border-gray-200 laptop:m-0 laptop:scale-y-75 2xl:scale-y-75"> <div className=" flex-grow flex justify-between items-center mt-1 bg-white p-2 rounded-lg shadow-md border border-gray-200 laptop:m-0 laptop:scale-y-75 2xl:scale-y-75">
<div className="flex items-center space-x-4">
<Image <Image
src="/images/IP-icon.svg" src="/images/IP-icon.svg"
alt="IP Address" alt="IP Address"
@@ -102,6 +103,7 @@ const NetworkInfo: React.FC = () => {
</div> </div>
*/} */}
</div> </div>
</div>
); );
}; };

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.486", "version": "1.6.487",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.486", "version": "1.6.487",
"dependencies": { "dependencies": {
"@fontsource/roboto": "^5.1.0", "@fontsource/roboto": "^5.1.0",
"@iconify-icons/ri": "^1.2.10", "@iconify-icons/ri": "^1.2.10",

View File

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

View File

@@ -4,10 +4,10 @@ import "tailwindcss/tailwind.css";
import "@fontsource/roboto"; import "@fontsource/roboto";
import "bootstrap-icons/font/bootstrap-icons.css"; import "bootstrap-icons/font/bootstrap-icons.css";
import { Icon } from "@iconify/react"; import { Icon } from "@iconify/react";
import Last20MessagesTable from "../components/main/uebersicht/Last20MessagesTable"; import Last20MessagesTable from "../components/main/dashboard/Last20MessagesTable";
import NetworkInfo from "../components/main/uebersicht/NetworkInfo"; import NetworkInfo from "../components/main/dashboard/NetworkInfo";
import VersionInfo from "../components/main/uebersicht/VersionInfo"; import VersionInfo from "../components/main/dashboard/VersionInfo";
import Baugruppentraeger from "../components/main/uebersicht/Baugruppentraeger"; import Baugruppentraeger from "../components/main/dashboard/Baugruppentraeger";
import { getLast20MessagesThunk } from "../redux/thunks/getLast20MessagesThunk"; import { getLast20MessagesThunk } from "../redux/thunks/getLast20MessagesThunk";
import { useAppDispatch } from "../redux/store"; import { useAppDispatch } from "../redux/store";

View File

@@ -1,7 +1,7 @@
"use client"; "use client";
// /pages/meldungen.tsx // /pages/meldungen.tsx
import React, { useState, useEffect } from "react"; import React, { useState, useEffect } from "react";
import DateRangePickerMeldungen from "@/components/main/meldungen/DateRangePickerMeldungen"; import DateRangePickerMeldungen from "@/components/main/reports/DateRangePickerMeldungen";
type Meldung = { type Meldung = {
t: string; t: string;