lint
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
:active="
|
||||
(locationQueueData as Record<string, any>)[key]?.loc_id === currentLocation?.loc_id
|
||||
"
|
||||
:index="index"
|
||||
:isLast="index != locationQueueOrder.length - 1"
|
||||
:start="(locationQueueData as Record<string, any>)[key]?.start ?? ''"
|
||||
:address="(locationQueueData as Record<string, any>)[key]?.address ?? ''"
|
||||
@@ -191,7 +192,12 @@ import { useMarkerContextMenu } from '../composables/useMarkerContextMenu';
|
||||
import type { IRouter } from 'leaflet-routing-machine';
|
||||
|
||||
// Types
|
||||
import type { coords, SearchControlProps, NominatimAddress } from 'components/models';
|
||||
import type {
|
||||
coords,
|
||||
SearchControlProps,
|
||||
NominatimAddress,
|
||||
routeSegments,
|
||||
} from 'components/models';
|
||||
import type { LeafletMouseEvent, Map } from 'leaflet';
|
||||
|
||||
// Stores
|
||||
@@ -200,7 +206,6 @@ import { useSocketioStore } from 'stores/socketio';
|
||||
import { useLeafletStore } from 'stores/leaflet';
|
||||
|
||||
import { favorites } from 'constants/favorites';
|
||||
import { route } from 'quasar/wrappers';
|
||||
|
||||
const leafletStore = useLeafletStore();
|
||||
const { zoom, center, markerLatLng, qLocDrawer, routeSet, routeSegments } =
|
||||
@@ -214,14 +219,12 @@ const {
|
||||
locationQueueOrder,
|
||||
findMyUpdate,
|
||||
simulationState,
|
||||
testMode,
|
||||
} = storeToRefs(socketStore);
|
||||
|
||||
const $q = useQuasar();
|
||||
|
||||
const mapRef = ref();
|
||||
const responseMessage = ref('');
|
||||
const routeLayer = ref(false);
|
||||
const miniState = ref(true);
|
||||
const loading = ref(false);
|
||||
const safeCenter = computed<[number, number]>(() => {
|
||||
@@ -322,7 +325,7 @@ function routeToQueue() {
|
||||
if (routeSet.value.start && routeSet.value.end && routeSegments.value) {
|
||||
console.log('routeToQueue: start: ', routeSet.value.start);
|
||||
setLocation({ lat: routeSet.value.start.lat, lng: routeSet.value.start.lng }, 0);
|
||||
routeSegments.value.forEach((segment: any, index: number) => {
|
||||
routeSegments.value.forEach((segment: routeSegments) => {
|
||||
console.log('routeToQueue: segment: ', segment);
|
||||
setLocation(
|
||||
{ lat: segment.toCoordinates.lat, lng: segment.toCoordinates.lng },
|
||||
|
||||
Reference in New Issue
Block a user