Skip to content

Commit 5718748

Browse files
committed
please type checker
1 parent e728d24 commit 5718748

File tree

4 files changed

+39
-44
lines changed

4 files changed

+39
-44
lines changed
Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
import {FunctionComponent} from "react"
2-
3-
import {Icon, LatLng} from 'leaflet'
4-
import markerIcon2xPng from 'leaflet/dist/images/marker-icon-2x.png'
5-
6-
import markerIconPng from 'leaflet/dist/images/marker-icon.png'
7-
import markerShadowPng from 'leaflet/dist/images/marker-shadow.png'
8-
import 'leaflet/dist/leaflet.css'
9-
10-
import { MapContainer, TileLayer} from 'react-leaflet'
11-
12-
const disruptorBuildingLocation = new LatLng(51.44971831403754, 5.4947035381928035)
13-
14-
// fix marker image (not sure we're ever gonna use this)
15-
// alternatively assign to Marker.prototype.options.icon.options
16-
Icon.Default.mergeOptions({
17-
iconUrl: markerIconPng,
18-
iconRetinaUrl: markerIcon2xPng,
19-
shadowUrl: markerShadowPng,
20-
})
21-
22-
export const Map: FunctionComponent = () => (
23-
<MapContainer center={disruptorBuildingLocation}
24-
zoom={13}
25-
scrollWheelZoom={true}
26-
style={{height: "500px"}}>
27-
<TileLayer
28-
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
29-
// TODO: option to use BAG WMS tiles
30-
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
31-
/>
32-
</MapContainer>
33-
)
1+
// import {FunctionComponent} from "react"
2+
//
3+
// import {Icon, LatLng} from 'leaflet'
4+
// import markerIcon2xPng from 'leaflet/dist/images/marker-icon-2x.png'
5+
//
6+
// import markerIconPng from 'leaflet/dist/images/marker-icon.png'
7+
// import markerShadowPng from 'leaflet/dist/images/marker-shadow.png'
8+
// import 'leaflet/dist/leaflet.css'
9+
//
10+
// import { MapContainer, TileLayer} from 'react-leaflet'
11+
//
12+
// const disruptorBuildingLocation = new LatLng(51.44971831403754, 5.4947035381928035)
13+
//
14+
// // fix marker image (not sure we're ever gonna use this)
15+
// // alternatively assign to Marker.prototype.options.icon.options
16+
// Icon.Default.mergeOptions({
17+
// iconUrl: markerIconPng,
18+
// iconRetinaUrl: markerIcon2xPng,
19+
// shadowUrl: markerShadowPng,
20+
// })
21+
//
22+
// export const Map: FunctionComponent = () => (
23+
// <MapContainer center={disruptorBuildingLocation}
24+
// zoom={13}
25+
// scrollWheelZoom={true}
26+
// style={{height: "500px"}}>
27+
// <TileLayer
28+
// attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
29+
// // TODO: option to use BAG WMS tiles
30+
// url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
31+
// />
32+
// </MapContainer>
33+
// )

webtool/frontend/src/components/main-content.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ export const MainContent: FunctionComponent<EmotionProps> = ({css, className}) =
3535
simulationRef.current = await startSimulation(anylogicElementId, sessionId)
3636
}
3737

38-
const onClickExport = async () => {
39-
const coopReport = await simulationRef.current.callFunction("experiment.root.f_getCoopReport", [])
40-
console.log(coopReport)
41-
}
38+
// const onClickExport = async () => {
39+
// const coopReport = await simulationRef.current.callFunction("experiment.root.f_getCoopReport", [])
40+
// console.log(coopReport)
41+
// }
4242

4343
const enableResourcefully = new URLSearchParams(window.location.search).has("resourcefully-preview");
4444

webtool/frontend/src/components/resourcefully/dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {createDeeplink} from "../deeplink.ts"
88
export const ResourcefullyDialog: FunctionComponent<{
99
anyLogicAnimation?: Animation,
1010
pilot: Pilot,
11-
}> = ({anyLogicAnimation, pilot}) => {
11+
}> = ({pilot}) => {
1212
const onSubmit: FormEventHandler<HTMLFormElement> = (submitEvent) => {
1313
submitEvent.preventDefault()
1414
const form = new FormData(submitEvent.target as HTMLFormElement)
@@ -21,7 +21,7 @@ export const ResourcefullyDialog: FunctionComponent<{
2121

2222
const resourceFullyExport = ResourcefullyExport.create(pilot, exportMetadata, createDeeplink(pilot))
2323

24-
const action = form.get("action") as string
24+
// const action = form.get("action") as string
2525

2626
const x = window.open() as Window
2727
x.document.open();

webtool/frontend/src/components/resourcefully/preview.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)