refactoring
This commit is contained in:
@@ -31,7 +31,7 @@ import MapLayersControlPanel from "../uiWidgets/mapLayersControlPanel/MapLayersC
|
||||
import CoordinateInput from "../uiWidgets/CoordinateInput.js";
|
||||
import VersionInfoModal from "../uiWidgets/VersionInfoModal.js";
|
||||
//----------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 { enablePolylineEvents, disablePolylineEvents } from "../../utils/polylines/eventHandlers";
|
||||
//----------MapComponent.js hooks--------------------
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
// /config/appVersion
|
||||
export const APP_VERSION = "1.1.167";
|
||||
export const APP_VERSION = "1.1.168";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// hooks/useMapComponentState.js
|
||||
// /hooks/useMapComponentState.js
|
||||
// POI -> Kontextmenü -> POI bearbeiten -> Dropdown Geräteauswahl
|
||||
import { useState, useEffect } from "react";
|
||||
import { useSelector } from "react-redux";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// /redux/thunks/database/addPoiThunk.js
|
||||
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) => {
|
||||
try {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// /redux/thunks/database/deletePoiThunk.js
|
||||
|
||||
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) => {
|
||||
try {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// /redux/thunks/database/fetchGisLinesThunk.js
|
||||
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 () => {
|
||||
return await fetchGisLinesService();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// /redux/thunks/database/fetchPoiIconsDataThunk.js
|
||||
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) => {
|
||||
try {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// /redux/thunks/database/fetchPoiTypThunk.js
|
||||
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) => {
|
||||
try {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// /redux/thunks/database/updatePoiThunk.js
|
||||
|
||||
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) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user