refactoring

This commit is contained in:
ISA
2025-05-26 09:05:31 +02:00
parent 1a37aa7a3a
commit 34f460902e
17 changed files with 9 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ import MapLayersControlPanel from "../uiWidgets/mapLayersControlPanel/MapLayersC
import CoordinateInput from "../uiWidgets/CoordinateInput.js"; import CoordinateInput from "../uiWidgets/CoordinateInput.js";
import VersionInfoModal from "../uiWidgets/VersionInfoModal.js"; import VersionInfoModal from "../uiWidgets/VersionInfoModal.js";
//----------Daten aus API-------------------- //----------Daten aus API--------------------
import { fetchPoiDataService } from "../../services/database/fetchPoiDataByIdService.js"; import { fetchPoiDataService } from "../../services/database/pois/fetchPoiDataByIdService.js";
import AddPOIModal from "../pois/AddPOIModal.js"; import AddPOIModal from "../pois/AddPOIModal.js";
import { enablePolylineEvents, disablePolylineEvents } from "../../utils/polylines/eventHandlers"; import { enablePolylineEvents, disablePolylineEvents } from "../../utils/polylines/eventHandlers";
//----------MapComponent.js hooks-------------------- //----------MapComponent.js hooks--------------------

View File

@@ -1,2 +1,2 @@
// /config/appVersion // /config/appVersion
export const APP_VERSION = "1.1.167"; export const APP_VERSION = "1.1.168";

View File

@@ -1,4 +1,4 @@
// hooks/useMapComponentState.js // /hooks/useMapComponentState.js
// POI -> Kontextmenü -> POI bearbeiten -> Dropdown Geräteauswahl // POI -> Kontextmenü -> POI bearbeiten -> Dropdown Geräteauswahl
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { useSelector } from "react-redux"; import { useSelector } from "react-redux";

View File

@@ -1,6 +1,6 @@
// /redux/thunks/database/addPoiThunk.js // /redux/thunks/database/addPoiThunk.js
import { createAsyncThunk } from "@reduxjs/toolkit"; import { createAsyncThunk } from "@reduxjs/toolkit";
import { addPoiService } from "../../../services/database/addPoiService"; import { addPoiService } from "../../../services/database/pois/addPoiService";
export const addPoiThunk = createAsyncThunk("poi/add", async (formData, thunkAPI) => { export const addPoiThunk = createAsyncThunk("poi/add", async (formData, thunkAPI) => {
try { try {

View File

@@ -1,7 +1,7 @@
// /redux/thunks/database/deletePoiThunk.js // /redux/thunks/database/deletePoiThunk.js
import { createAsyncThunk } from "@reduxjs/toolkit"; import { createAsyncThunk } from "@reduxjs/toolkit";
import { deletePoiService } from "../../../services/database/deletePoiService"; import { deletePoiService } from "../../../services/database/pois/deletePoiService";
export const deletePoiThunk = createAsyncThunk("poi/delete", async (id, thunkAPI) => { export const deletePoiThunk = createAsyncThunk("poi/delete", async (id, thunkAPI) => {
try { try {

View File

@@ -1,6 +1,6 @@
// /redux/thunks/database/fetchGisLinesThunk.js // /redux/thunks/database/fetchGisLinesThunk.js
import { createAsyncThunk } from "@reduxjs/toolkit"; import { createAsyncThunk } from "@reduxjs/toolkit";
import { fetchGisLinesService } from "../../../services/database/fetchGisLinesService"; import { fetchGisLinesService } from "../../../services/database/polylines/fetchGisLinesService";
export const fetchGisLinesThunk = createAsyncThunk("gisLines/fetch", async () => { export const fetchGisLinesThunk = createAsyncThunk("gisLines/fetch", async () => {
return await fetchGisLinesService(); return await fetchGisLinesService();

View File

@@ -1,6 +1,6 @@
// /redux/thunks/database/fetchPoiIconsDataThunk.js // /redux/thunks/database/fetchPoiIconsDataThunk.js
import { createAsyncThunk } from "@reduxjs/toolkit"; import { createAsyncThunk } from "@reduxjs/toolkit";
import { fetchPoiIconsDataService } from "../../../services/database/fetchPoiIconsDataService"; import { fetchPoiIconsDataService } from "../../../services/database/pois/fetchPoiIconsDataService";
export const fetchPoiIconsDataThunk = createAsyncThunk("poiIconsData/fetch", async (_, thunkAPI) => { export const fetchPoiIconsDataThunk = createAsyncThunk("poiIconsData/fetch", async (_, thunkAPI) => {
try { try {

View File

@@ -1,6 +1,6 @@
// /redux/thunks/database/fetchPoiTypThunk.js // /redux/thunks/database/fetchPoiTypThunk.js
import { createAsyncThunk } from "@reduxjs/toolkit"; import { createAsyncThunk } from "@reduxjs/toolkit";
import { fetchPoiTypService } from "../../../services/database/fetchPoiTypService"; import { fetchPoiTypService } from "../../../services/database/pois/fetchPoiTypService";
export const fetchPoiTypThunk = createAsyncThunk("poiTyp/fetch", async (_, thunkAPI) => { export const fetchPoiTypThunk = createAsyncThunk("poiTyp/fetch", async (_, thunkAPI) => {
try { try {

View File

@@ -1,7 +1,7 @@
// /redux/thunks/database/updatePoiThunk.js // /redux/thunks/database/updatePoiThunk.js
import { createAsyncThunk } from "@reduxjs/toolkit"; import { createAsyncThunk } from "@reduxjs/toolkit";
import { updatePoiService } from "../../../services/database/updatePoiService"; import { updatePoiService } from "../../../services/database/pois/updatePoiService";
export const updatePoiThunk = createAsyncThunk("pois/update", async (poi, thunkAPI) => { export const updatePoiThunk = createAsyncThunk("pois/update", async (poi, thunkAPI) => {
try { try {