File tree Expand file tree Collapse file tree 5 files changed +43
-5
lines changed Expand file tree Collapse file tree 5 files changed +43
-5
lines changed Original file line number Diff line number Diff line change 1
- v22.13.0
1
+ v22
Original file line number Diff line number Diff line change 1
1
# ARG for the base image
2
- ARG NODE_BASE=22.13.0-bullseye -slim
2
+ ARG NODE_BASE=22-slim
3
3
ARG MINIO_TAG=RELEASE.2024-08-03T04-33-23Z
4
4
ARG BASE64_ARGS_TO_ENV=ENV_VARS_BASE64_ENCODED_FOR_LIVE
5
5
6
6
# Base image with frontend code
7
7
FROM node:${NODE_BASE} AS base
8
+ ENV PNPM_HOME="/pnpm"
9
+ ENV PATH="$PNPM_HOME:$PATH"
8
10
RUN mkdir -p /app
9
11
WORKDIR /app
10
12
13
+
11
14
# Run development environment
12
15
FROM base AS development
16
+ COPY ./package.json pnpm-lock.yaml .
17
+ # FIXME this npm install is a workaround due to https://github.com/nodejs/corepack/issues/627
18
+ RUN npm install -g corepack@0.31.0
19
+ # FIXME delete this line after fixed upstream
20
+ RUN corepack prepare pnpm@9.15.5 --activate && corepack enable && corepack install
13
21
ENTRYPOINT ["/bin/sh" , "-c" , "pnpm install; pnpm run start --host 0.0.0.0;" ]
14
22
23
+
24
+
15
25
# Generate frontend build files
16
26
FROM base AS build
17
27
ARG BASE64_ARGS_TO_ENV
18
-
19
28
COPY ./package.json pnpm-lock.yaml .
20
29
# FIXME this npm install is a workaround due to https://github.com/nodejs/corepack/issues/627
21
30
RUN npm install -g corepack@0.31.0
@@ -26,6 +35,8 @@ COPY . /app
26
35
RUN ( echo ${BASE64_ARGS_TO_ENV} | base64 -di ) > .env
27
36
RUN pnpm run build
28
37
38
+
39
+
29
40
# Copy static files to minio and generated index.html to volume
30
41
FROM docker.io/minio/minio:${MINIO_TAG} AS live
31
42
COPY --from=build /app/dist /tmp/dist
Original file line number Diff line number Diff line change 3
3
"@cyntler/react-doc-viewer" : " ^1.17.0" ,
4
4
"@geomatico/maplibre-cog-protocol" : " ^0.3.1" ,
5
5
"@hotosm/gcp-editor" : " ^0.0.9" ,
6
- "@hotosm/ui" : " 0.2.0-b6" ,
7
6
"@mapbox/mapbox-gl-draw" : " ^1.4.2" ,
8
7
"@mapbox/mapbox-gl-draw-static-mode" : " ^1.0.1" ,
9
8
"@radix-ui/react-popover" : " ^1.0.6" ,
58
57
"wkt" : " ^0.1.1"
59
58
},
60
59
"devDependencies" : {
60
+ "@babel/preset-env" : " ^7.26.7" ,
61
+ "@babel/preset-react" : " ^7.26.3" ,
62
+ "@babel/preset-typescript" : " ^7.26.0" ,
61
63
"@tanstack/eslint-plugin-query" : " ^4.29.4" ,
62
64
"@types/file-saver" : " ^2.0.5" ,
63
65
"@types/geojson" : " ^7946.0.10" ,
90
92
"typescript" : " ^4.9.3" ,
91
93
"vite" : " ^4.2.0"
92
94
},
95
+ "peerDependencies" : {
96
+ "@hotosm/ui" : " 0.2.0-b6"
97
+ },
93
98
"lint-staged" : {
94
99
"*.{js,jsx,ts,tsx}" : [
95
100
" eslint --fix" ,
107
112
},
108
113
"type" : " module" ,
109
114
"version" : " 0.0.0" ,
110
- "packageManager" : " pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
115
+ "packageManager" : " pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
111
116
}
Original file line number Diff line number Diff line change
1
+ import '@hotosm/ui/dist/style.css' ;
2
+
3
+ // Workaround required, as @hotosm/gcp-editor already imports all components
4
+ if ( ! customElements . get ( 'hot-tracking' ) ) {
5
+ import ( '@hotosm/ui/components/tracking/tracking' ) ;
6
+ }
7
+
1
8
import { useLocation } from 'react-router-dom' ;
2
9
import { initDomToCode } from 'dom-to-code' ;
3
10
import { ToastContainer } from 'react-toastify' ;
11
+
4
12
import { useTypedDispatch , useTypedSelector } from '@Store/hooks' ;
5
13
import generateRoutes from '@Routes/generateRoutes' ;
6
14
import appRoutes from '@Routes/appRoutes' ;
@@ -99,6 +107,11 @@ export default function App() {
99
107
</ div >
100
108
< ScrollToTop />
101
109
</ div >
110
+ < hot-tracking
111
+ style = { { position : 'fixed' , bottom : '0%' } }
112
+ site-id = { '35' } domain = { 'dronetm.org' }
113
+ force = { true } >
114
+ </ hot-tracking >
102
115
</ >
103
116
) ;
104
117
}
You can’t perform that action at this time.
0 commit comments