Skip to content

Commit 4cbd6ec

Browse files
tech: keep lodash as dependencies because rsuite
1 parent 81c8578 commit 4cbd6ec

9 files changed

Lines changed: 696 additions & 593 deletions

File tree

frontend/package-lock.json

Lines changed: 686 additions & 563 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"jsts": "2.12.1",
4848
"jszip": "^3.10.1",
4949
"lodash-es": "4.17.21",
50+
"lodash": "4.17.21",
5051
"oidc-client-ts": "2.4.1",
5152
"ol": "10.5.0",
5253
"ol-mapbox-style": "12.3.3",

frontend/src/features/Dashboard/components/DashboardForm/ToggleSelectAll/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Accent, Icon, IconButton, THEME } from '@mtes-mct/monitor-ui'
2-
import React from 'react'
32
import { difference, intersection, isEqual } from 'lodash-es'
3+
import React from 'react'
44

55
import type { SelectionState } from '.'
66
import type { NearbyUnit } from '@features/Dashboard/components/DashboardForm/NearbyUnits/types'

frontend/src/features/Dashboard/components/Layers/DrawDashboardLayer.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ import { Layers } from 'domain/entities/layers/constants'
55
import { drawFeature } from 'domain/use_cases/draw/drawFeature'
66
import { DrawEvent } from 'ol/interaction/Draw'
77
import React from 'react'
8-
import { useDrawVectorLayer } from '@hooks/useDrawVectorLayer'
9-
import { convertToGeoJSONGeometryObject } from 'domain/entities/layers'
10-
import { InteractionType, OLGeometryType } from 'domain/entities/map/constants'
11-
import { isEmpty } from 'lodash-es'
12-
import { Modify } from 'ol/interaction'
13-
import Draw, { createBox, createRegularPolygon, type GeometryFunction } from 'ol/interaction/Draw'
14-
import React, { useCallback, useEffect } from 'react'
158

169
import { dashboardActions } from '../../slice'
1710

frontend/src/features/Mission/components/MissionForm/ActionForm/ControlForm/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import {
2222
} from '@mtes-mct/monitor-ui'
2323
import { displayThemes } from '@utils/getThemesAsOptions'
2424
import { FieldArray, type FormikErrors, useFormikContext } from 'formik'
25-
import { omit } from 'lodash'
26-
import { FieldArray, useFormikContext, type FormikErrors } from 'formik'
2725
import { omit } from 'lodash-es'
2826
import { useCallback, useEffect, useMemo, useState } from 'react'
2927
import styled from 'styled-components'

frontend/src/features/Station/components/StationLayer/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { overlayStroke } from '@features/map/overlays/style'
22
import { OPENLAYERS_PROJECTION, THEME, WSG84_PROJECTION } from '@mtes-mct/monitor-ui'
3-
import { uniq } from 'lodash-es'
43
import { Layers } from 'domain/entities/layers/constants'
4+
import { uniq } from 'lodash-es'
55
import { Feature } from 'ol'
66
import { GeoJSON } from 'ol/format'
77
import { Fill, Icon, Style, Text } from 'ol/style'

frontend/src/features/VigilanceArea/components/VigilanceAreaLayer/DrawVigilanceAreaLayer.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ import { useDrawLayer } from '@hooks/useDrawLayer'
66
import { Layers } from 'domain/entities/layers/constants'
77
import { DrawEvent } from 'ol/interaction/Draw'
88
import React from 'react'
9-
import { useDrawVectorLayer } from '@hooks/useDrawVectorLayer'
10-
import { convertToGeoJSONGeometryObject } from 'domain/entities/layers'
11-
import { InteractionType, OLGeometryType } from 'domain/entities/map/constants'
12-
import { isEmpty } from 'lodash-es'
13-
import { Modify } from 'ol/interaction'
14-
import Draw, { createBox, createRegularPolygon, type GeometryFunction } from 'ol/interaction/Draw'
15-
import React, { useCallback, useEffect } from 'react'
169

1710
import type { BaseMapChildrenProps } from '@features/map/BaseMap'
1811
import type { GeoJSON } from 'domain/types/GeoJSON'

frontend/src/features/map/layers/DrawLayer.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1+
import { useAppDispatch } from '@hooks/useAppDispatch'
2+
import { useAppSelector } from '@hooks/useAppSelector'
13
import { useDrawLayer } from '@hooks/useDrawLayer'
24
import { Layers } from 'domain/entities/layers/constants'
35
import { DrawEvent } from 'ol/interaction/Draw'
46
import React from 'react'
5-
import { useDrawVectorLayer } from '@hooks/useDrawVectorLayer'
6-
import { isEmpty } from 'lodash-es'
7-
import { Modify } from 'ol/interaction'
8-
import Draw, { createBox, createRegularPolygon, type GeometryFunction } from 'ol/interaction/Draw'
9-
import React, { useCallback, useEffect } from 'react'
107

118
import { addFeatureToDrawedFeature } from '../../../domain/use_cases/draw/addFeatureToDrawedFeature'
129
import { setGeometry } from '../../../domain/use_cases/draw/setGeometry'
13-
import { useAppDispatch } from '../../../hooks/useAppDispatch'
14-
import { useAppSelector } from '../../../hooks/useAppSelector'
1510

1611
import type { BaseMapChildrenProps } from '../BaseMap'
1712
import type { GeoJSON as GeoJSONType } from 'domain/types/GeoJSON'

frontend/vite.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export default defineConfig(
2020
treeshake: true,
2121
input: {
2222
index: './index.html'
23+
},
24+
output: {
25+
manualChunks: {
26+
'monitor-ui': ['@mtes-mct/monitor-ui']
27+
}
2328
}
24-
// output: {
25-
// manualChunks: {
26-
// 'monitor-ui': ['@mtes-mct/monitor-ui']
27-
// }
28-
// }
2929
},
3030
target: 'esnext'
3131
},

0 commit comments

Comments
 (0)