Skip to content

Commit 94047a4

Browse files
committed
reduce changes
1 parent f1dc299 commit 94047a4

File tree

12 files changed

+18
-16
lines changed

12 files changed

+18
-16
lines changed

src/Converters.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { GeocodingHit } from '@/api/graphhopper'
2+
23
import { Coordinate } from '@/stores/QueryStore'
34

45
export function milliSecondsToText(ms: number) {

src/NavBar.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import QueryStore, { getBBoxFromCoord, QueryPoint, QueryPointType, QueryStoreSta
77
import MapOptionsStore, { MapOptionsStoreState } from './stores/MapOptionsStore'
88
import { ApiImpl, getApi } from '@/api/Api'
99
import { AddressParseResult } from '@/pois/AddressParseResult'
10+
import { getQueryStore } from '@/stores/Stores'
1011

1112
export default class NavBar {
1213
private readonly queryStore: QueryStore

src/api/Api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
import { LineString } from 'geojson'
1818
import { getTranslation, tr } from '@/translation/Translation'
1919
import * as config from 'config'
20-
import { POIQuery } from '@/pois/AddressParseResult'
2120
import { Coordinate } from '@/stores/QueryStore'
21+
import { POIQuery } from '@/pois/AddressParseResult'
2222

2323
interface ApiProfile {
2424
name: string
File renamed without changes.

src/map/findNextWayPoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { calcDist } from '@/utils'
21
import { Coordinate } from '@/stores/QueryStore'
2+
import { calcDist } from '@/distUtils'
33

44
/**
55
* Finds the way-point that follows the part of a route that is closest to a given location

src/pathDetails/PathDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Dispatcher from '@/stores/Dispatcher'
77
import { PathDetailsElevationSelected, PathDetailsHover, PathDetailsRangeSelected } from '@/actions/Actions'
88
import QueryStore, { Coordinate, QueryPointType } from '@/stores/QueryStore'
99
import { Position } from 'geojson'
10-
import { calcDist } from '@/utils'
10+
import { calcDist } from '@/distUtils'
1111
import { tr } from '@/translation/Translation'
1212
import { SettingsContext } from '@/contexts/SettingsContext'
1313

src/pois/AddressParseResult.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { ApiImpl } from '@/api/Api'
12
import Dispatcher from '@/stores/Dispatcher'
23
import { SetBBox, SetPOIs } from '@/actions/Actions'
34
import { hitToItem } from '@/Converters'
45
import { GeocodingHit, ReverseGeocodingHit } from '@/api/graphhopper'
56
import { tr, Translation } from '@/translation/Translation'
67
import { POI } from '@/stores/POIsStore'
7-
import { ApiImpl } from '@/api/Api'
88

99
export class AddressParseResult {
1010
location: string

src/sidebar/RoutingResults.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Details from '@/sidebar/list.svg'
1010
import GPXDownload from '@/sidebar/file_download.svg'
1111
import Instructions from '@/sidebar/instructions/Instructions'
1212
import { LineString, Position } from 'geojson'
13-
import { calcDist } from '@/utils'
13+
import { calcDist } from '@/distUtils'
1414
import { useMediaQuery } from 'react-responsive'
1515
import { tr } from '@/translation/Translation'
1616
import { ApiImpl } from '@/api/Api'

src/sidebar/SettingsBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useContext } from 'react'
99
import { SettingsContext } from '@/contexts/SettingsContext'
1010
import { RoutingProfile } from '@/api/graphhopper'
1111
import * as config from 'config'
12-
import { ProfileGroupMap } from '@/utils'
12+
import { ProfileGroupMap } from '@/distUtils'
1313

1414
export default function SettingsBox({ profile }: { profile: RoutingProfile }) {
1515
const settings = useContext(SettingsContext)

src/sidebar/search/routingProfiles/RoutingProfiles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { tr } from '@/translation/Translation'
99
import CustomModelBoxSVG from '@/sidebar/open_custom_model.svg'
1010
import { icons } from '@/sidebar/search/routingProfiles/profileIcons'
1111
import * as config from 'config'
12-
import { ProfileGroupMap } from '@/utils'
12+
import { ProfileGroupMap } from '@/distUtils'
1313

1414
export default function ({
1515
routingProfiles,

0 commit comments

Comments
 (0)