diff --git a/.env.development b/.env.development
index 2d7bcf5c6..f1eadb417 100644
--- a/.env.development
+++ b/.env.development
@@ -25,4 +25,4 @@ NEXT_PUBLIC_USE_MOCKS=true
NEXT_PUBLIC_BASE_PATH=/talas5
# Oder leer lassen für direkten Zugriff -> NEXT_PUBLIC_BASE_PATH=
# App-Versionsnummer
-NEXT_PUBLIC_APP_VERSION=1.1.295
+NEXT_PUBLIC_APP_VERSION=1.1.296
diff --git a/.env.production b/.env.production
index 7140d4291..0ab757789 100644
--- a/.env.production
+++ b/.env.production
@@ -26,4 +26,4 @@ NEXT_PUBLIC_BASE_PATH=/talas5
# Oder leer lassen für direkten Zugriff -> NEXT_PUBLIC_BASE_PATH=
# App-Versionsnummer
-NEXT_PUBLIC_APP_VERSION=1.1.295
\ No newline at end of file
+NEXT_PUBLIC_APP_VERSION=1.1.296
\ No newline at end of file
diff --git a/hooks/useAreaMarkersLayer.js b/components/area/hooks/useAreaMarkersLayer.js
similarity index 100%
rename from hooks/useAreaMarkersLayer.js
rename to components/area/hooks/useAreaMarkersLayer.js
diff --git a/hooks/useDynamicDeviceLayers.js b/components/devices/hooks/useDynamicDeviceLayers.js
similarity index 96%
rename from hooks/useDynamicDeviceLayers.js
rename to components/devices/hooks/useDynamicDeviceLayers.js
index bfd501d45..8b4198b06 100644
--- a/hooks/useDynamicDeviceLayers.js
+++ b/components/devices/hooks/useDynamicDeviceLayers.js
@@ -1,8 +1,8 @@
// /hooks/layers/useDynamicDeviceLayers.js
import { useEffect, useRef, useState } from "react";
import L from "leaflet";
-import { createAndSetDevices } from "../utils/devices/createAndSetDevices";
-import { checkOverlappingMarkers } from "../utils/mapUtils";
+import { createAndSetDevices } from "@/utils/devices/createAndSetDevices";
+import { checkOverlappingMarkers } from "@/utils/mapUtils";
import plusRoundIcon from "@/components/icons/devices/overlapping/PlusRoundIcon";
import { useSelector } from "react-redux";
import { selectGisStationsStaticDistrict } from "@/redux/slices/webservice/gisStationsStaticDistrictSlice.js";
diff --git a/hooks/useLineData.js b/components/gisPolylines/tooltip/useLineData.js
similarity index 60%
rename from hooks/useLineData.js
rename to components/gisPolylines/tooltip/useLineData.js
index d1c7534e2..6c5471357 100644
--- a/hooks/useLineData.js
+++ b/components/gisPolylines/tooltip/useLineData.js
@@ -1,15 +1,15 @@
// hooks/useLineData.js //fix v1.0.8.1
import { useEffect, useState } from "react";
import { useSelector, useDispatch } from "react-redux";
-import { selectGisLinesStatusFromWebservice } from "../redux/slices/webservice/gisLinesStatusSlice";
-import { fetchGisLinesThunk } from "../redux/thunks/database/polylines/fetchGisLinesThunk";
-import { fetchGisLinesStatusThunk } from "../redux/thunks/webservice/fetchGisLinesStatusThunk";
+import { selectGisLinesStatusFromWebservice } from "@/redux/slices/webservice/gisLinesStatusSlice";
+import { fetchGisLinesThunk } from "@/redux/thunks/database/polylines/fetchGisLinesThunk";
+import { fetchGisLinesStatusThunk } from "@/../redux/thunks/webservice/fetchGisLinesStatusThunk";
const useLineData = () => {
const dispatch = useDispatch();
const { data: statisData } = useSelector(selectGisLinesStatusFromWebservice);
- const linesData = useSelector((state) => state.gisLinesFromDatabase.data);
+ const linesData = useSelector(state => state.gisLinesFromDatabase.data);
const [lineColors, setLineColors] = useState({});
const [tooltipContents, setTooltipContents] = useState({});
@@ -27,7 +27,7 @@ const useLineData = () => {
const sortedStatis = [...statisData].sort((a, b) => a.Level - b.Level);
- sortedStatis.forEach((statis) => {
+ sortedStatis.forEach(statis => {
const key = `${statis.IdLD}-${statis.Modul}`;
if (!valueMap[key]) {
valueMap[key] = {
@@ -37,7 +37,11 @@ const useLineData = () => {
};
}
- if (statis.DpName.endsWith("_Messwert") && statis.Value !== "True" && !valueMap[key].messwert) {
+ if (
+ statis.DpName.endsWith("_Messwert") &&
+ statis.Value !== "True" &&
+ !valueMap[key].messwert
+ ) {
valueMap[key].messwert = statis.Value;
}
@@ -48,37 +52,57 @@ const useLineData = () => {
if (statis.Message && statis.Message !== "?") {
valueMap[key].messages.push({
message: statis.Message,
- prioColor: statis.PrioColor && statis.PrioColor !== "#ffffff" ? statis.PrioColor : "green",
+ prioColor:
+ statis.PrioColor && statis.PrioColor !== "#ffffff" ? statis.PrioColor : "green",
});
}
});
- sortedStatis.forEach((statis) => {
+ sortedStatis.forEach(statis => {
const key = `${statis.IdLD}-${statis.Modul}`;
- const matchingLine = linesData.find((item) => item.idLD === statis.IdLD && item.idModul === statis.Modul);
+ const matchingLine = linesData.find(
+ item => item.idLD === statis.IdLD && item.idModul === statis.Modul
+ );
if (matchingLine) {
const values = valueMap[key];
- const messageDisplay = values.messages.map((msg) => `${msg.message}
`).join("");
+ const messageDisplay = values.messages
+ .map(
+ msg =>
+ `${msg.message}
`
+ )
+ .join("");
colorsByModule[key] = values.messages.length > 0 ? values.messages[0].prioColor : "green";
newTooltipContents[key] = `