From 67d7ce8e0f428c521d3d032e8145108c9b2a5f45 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 22 May 2022 09:57:51 -0700 Subject: Rename map plugins --- modern/src/main/MainPage.js | 28 +++--- modern/src/map/CurrentLocationMap.js | 21 ----- modern/src/map/GeofenceEditMap.js | 141 ---------------------------- modern/src/map/MapCurrentLocation.js | 21 +++++ modern/src/map/MapGeofenceEdit.js | 141 ++++++++++++++++++++++++++++ modern/src/map/MapPositions.js | 142 +++++++++++++++++++++++++++++ modern/src/map/MapReplayPath.js | 65 +++++++++++++ modern/src/map/PositionsMap.js | 142 ----------------------------- modern/src/map/ReplayPathMap.js | 65 ------------- modern/src/map/main/AccuracyMap.js | 55 ----------- modern/src/map/main/CurrentPositionsMap.js | 18 ---- modern/src/map/main/DefaultCameraMap.js | 52 ----------- modern/src/map/main/GeofenceMap.js | 84 ----------------- modern/src/map/main/LiveRoutesMap.js | 80 ---------------- modern/src/map/main/MapAccuracy.js | 55 +++++++++++ modern/src/map/main/MapCurrentPositions.js | 18 ++++ modern/src/map/main/MapDefaultCamera.js | 52 +++++++++++ modern/src/map/main/MapGeofence.js | 84 +++++++++++++++++ modern/src/map/main/MapLiveRoutes.js | 80 ++++++++++++++++ modern/src/map/main/MapSelectedDevice.js | 30 ++++++ modern/src/map/main/SelectedDeviceMap.js | 30 ------ modern/src/other/EventPage.js | 4 +- modern/src/other/GeofencesPage.js | 8 +- modern/src/other/ReplayPage.js | 8 +- 24 files changed, 712 insertions(+), 712 deletions(-) delete mode 100644 modern/src/map/CurrentLocationMap.js delete mode 100644 modern/src/map/GeofenceEditMap.js create mode 100644 modern/src/map/MapCurrentLocation.js create mode 100644 modern/src/map/MapGeofenceEdit.js create mode 100644 modern/src/map/MapPositions.js create mode 100644 modern/src/map/MapReplayPath.js delete mode 100644 modern/src/map/PositionsMap.js delete mode 100644 modern/src/map/ReplayPathMap.js delete mode 100644 modern/src/map/main/AccuracyMap.js delete mode 100644 modern/src/map/main/CurrentPositionsMap.js delete mode 100644 modern/src/map/main/DefaultCameraMap.js delete mode 100644 modern/src/map/main/GeofenceMap.js delete mode 100644 modern/src/map/main/LiveRoutesMap.js create mode 100644 modern/src/map/main/MapAccuracy.js create mode 100644 modern/src/map/main/MapCurrentPositions.js create mode 100644 modern/src/map/main/MapDefaultCamera.js create mode 100644 modern/src/map/main/MapGeofence.js create mode 100644 modern/src/map/main/MapLiveRoutes.js create mode 100644 modern/src/map/main/MapSelectedDevice.js delete mode 100644 modern/src/map/main/SelectedDeviceMap.js diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js index c6879e9c..c6a0909b 100644 --- a/modern/src/main/MainPage.js +++ b/modern/src/main/MainPage.js @@ -14,20 +14,20 @@ import ListIcon from '@material-ui/icons/ViewList'; import { useDispatch, useSelector } from 'react-redux'; import DevicesList from './DevicesList'; import Map from '../map/core/Map'; -import SelectedDeviceMap from '../map/main/SelectedDeviceMap'; -import AccuracyMap from '../map/main/AccuracyMap'; -import GeofenceMap from '../map/main/GeofenceMap'; -import CurrentPositionsMap from '../map/main/CurrentPositionsMap'; -import CurrentLocationMap from '../map/CurrentLocationMap'; +import MapSelectedDevice from '../map/main/MapSelectedDevice'; +import MapAccuracy from '../map/main/MapAccuracy'; +import MapGeofence from '../map/main/MapGeofence'; +import MapCurrentPositions from '../map/main/MapCurrentPositions'; +import MapCurrentLocation from '../map/MapCurrentLocation'; import BottomMenu from '../common/components/BottomMenu'; import { useTranslation } from '../common/components/LocalizationProvider'; import PoiMap from '../map/main/PoiMap'; import MapPadding from '../map/MapPadding'; import StatusCard from './StatusCard'; import { devicesActions } from '../store'; -import DefaultCameraMap from '../map/main/DefaultCameraMap'; +import MapDefaultCamera from '../map/main/MapDefaultCamera'; import usePersistedState from '../common/util/usePersistedState'; -import LiveRoutesMap from '../map/main/LiveRoutesMap'; +import MapLiveRoutes from '../map/main/MapLiveRoutes'; import { useDeviceReadonly } from '../common/util/permissions'; const useStyles = makeStyles((theme) => ({ @@ -140,15 +140,15 @@ const MainPage = () => { return (
- - - - {mapLiveRoutes && } - - - + + + {mapLiveRoutes && } + + + + {!isTablet && }