Skip to content

Commit 2070210

Browse files
authored
Merge pull request #1196 from PADAS/ERA-10572
ERA-10572: Support EFB schemas in ER > Add ajv validation library
2 parents f8dc7e9 + db3b6d4 commit 2070210

File tree

137 files changed

+7018
-7289
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+7018
-7289
lines changed

.github/workflows/develop-workflow.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Setup Node
3434
uses: actions/setup-node@v4
3535
with:
36-
node-version: 14
36+
node-version: 20
3737

3838
- name: "Configure python"
3939
uses: actions/setup-python@v5
@@ -59,10 +59,6 @@ jobs:
5959
if [[ ${SITE} =~ das-2-*-* ]]; then export SITE="stage"; else export SITE=$(echo ${SITE} | tr '[:upper:]' '[:lower:]'); fi
6060
if $(wget -q --method=HEAD "https://${SITE}.pamdas.org"); then echo "::set-output name=site_exists::true"; else echo "::set-output name=site_exists::false"; fi
6161
62-
- name: Rebuild Node SASS
63-
if: steps.validate_env.outputs.site_exists == 'true'
64-
run: npm rebuild node-sass
65-
6662
- name: Yarn build
6763
if: steps.validate_env.outputs.site_exists == 'true'
6864
run: CI=false yarn build

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Setup Node
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: 18
16+
node-version: 20
1717
- run: |
1818
npm pkg set "buildbranch"="${{ github.head_ref || github.ref_name }}"
1919
npm pkg set "buildnum"="${{ github.run_number }}"

.github/workflows/pr-envs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
- run: |
2323
npm pkg set "buildbranch"="${{ github.event.pull_request.head.sha }}"
2424
npm pkg set "buildnum"="${{ github.run_number }}"

Dockerfile.dev

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
FROM node:14.19.0-alpine
1+
FROM node:20-alpine
22
WORKDIR /app
3-
RUN apk add --no-cache --virtual .build-deps git alpine-sdk python2
4-
COPY ./package.json ./
5-
COPY ./yarn.lock ./
3+
4+
RUN apk add --no-cache git alpine-sdk python3
5+
6+
COPY package.json .
7+
COPY yarn.lock .
68
RUN yarn --ignore-scripts
7-
RUN npm rebuild node-sass
8-
COPY ./ ./
99

10+
COPY . .
1011

1112
EXPOSE 3000
1213

13-
CMD ["yarn", "start"]
14+
CMD ["yarn", "start"]

Dockerfile.mt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
FROM node:14.21.0-alpine as build
1+
FROM node:20-alpine as build
22
WORKDIR /app
33

44
RUN apk add --no-cache git alpine-sdk python3
55

66
COPY package.json .
77
COPY yarn.lock .
8-
RUN yarn --ignore-scripts && \
9-
npm rebuild node-sass
8+
RUN yarn --ignore-scripts
109

1110
COPY . .
1211
RUN ls -la && yarn build

package.json

Lines changed: 48 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -5,63 +5,62 @@
55
"buildbranch": "generated_by_build",
66
"buildnum": "also_generated_by_build",
77
"dependencies": {
8-
"@rjsf/bootstrap-4": "^5.0.0-beta.13",
9-
"@rjsf/core": "^5.0.0-beta.13",
10-
"@rjsf/utils": "^5.0.0-beta.13",
11-
"@rjsf/validator-ajv6": "^5.0.0-beta.13",
12-
"@turf/boolean-intersects": "^6.3.0",
13-
"@turf/turf": "^5.1.6",
14-
"axios": "1.6.0",
8+
"@rjsf/bootstrap-4": "^5.23.1",
9+
"@rjsf/core": "^5.23.1",
10+
"@rjsf/utils": "^5.23.1",
11+
"@rjsf/validator-ajv6": "^5.23.1",
12+
"@turf/turf": "^7.1.0",
13+
"ajv": "^8.17.1",
14+
"ajv-draft-04": "^1.0.0",
15+
"axios": "1.7.8",
1516
"axios-progress-bar": "^1.2.0",
16-
"bootstrap": "5.2.2",
17+
"bootstrap": "5.3.3",
1718
"buffer": "^6.0.3",
18-
"date-fns": "^3.3.1",
19-
"geodesy": "^2.0.1",
20-
"humanize-duration": "^3.27.1",
21-
"i18next": "^23.7.9",
22-
"i18next-browser-languagedetector": "^7.2.0",
23-
"i18next-http-backend": "^2.4.2",
19+
"date-fns": "^4.1.0",
20+
"geodesy": "^2.4.0",
21+
"humanize-duration": "^3.32.1",
22+
"i18next": "^24.0.2",
23+
"i18next-browser-languagedetector": "^8.0.0",
2424
"i18next-chained-backend": "^4.6.2",
25+
"i18next-http-backend": "^3.0.1",
2526
"i18next-localstorage-backend": "^4.2.0",
2627
"legacy-socket.io-client": "npm:socket.io-client@2.2.0",
27-
"localforage": "^1.7.3",
28-
"lodash-es": "^4.17.11",
29-
"mapbox-gl": "^3.1.2",
30-
"mb-isochrone": "^0.1.0",
28+
"localforage": "^1.10.0",
29+
"lodash-es": "^4.17.21",
30+
"mapbox-gl": "^3.8.0",
3131
"pluralize": "^8.0.0",
32-
"prop-types": "^15.7.2",
33-
"react": "^18.2.0",
34-
"react-bootstrap": "2.5.0",
35-
"react-collapsible": "^2.6.2",
32+
"prop-types": "^15.8.1",
33+
"react": "^18.3.1",
34+
"react-bootstrap": "2.10.6",
35+
"react-collapsible": "^2.10.0",
3636
"react-css-loaders": "^0.0.5",
37-
"react-datepicker": "^6.1.0",
38-
"react-debounce-render": "^6.0.0",
39-
"react-dom": "^18.2.0",
40-
"react-error-boundary": "^1.2.5",
41-
"react-fast-compare": "^2.0.4",
42-
"react-flip-toolkit": "^7.0.13",
37+
"react-datepicker": "^7.5.0",
38+
"react-debounce-render": "^8.0.2",
39+
"react-dom": "^18.3.1",
40+
"react-error-boundary": "^4.1.2",
41+
"react-fast-compare": "^3.2.2",
42+
"react-flip-toolkit": "^7.2.4",
4343
"react-ga4": "^2.1.0",
44-
"react-i18next": "^13.5.0",
44+
"react-i18next": "^15.1.2",
4545
"react-infinite-scroller": "^1.2.6",
4646
"react-js-pagination": "^3.0.3",
47-
"react-pin-field": "^3.1.3",
48-
"react-redux": "^7.0.3",
49-
"react-router-dom": "^6.4.2",
47+
"react-pin-field": "^3.1.5",
48+
"react-redux": "^9.1.2",
49+
"react-router-dom": "^7.0.1",
5050
"react-scripts": "5.0.1",
51-
"react-select": "^5.8.0",
52-
"react-to-print": "^2.14.13",
53-
"react-toastify": "^5.4.0",
54-
"react-window": "^1.8.8",
55-
"redux": "^4.0.0",
51+
"react-select": "^5.8.3",
52+
"react-to-print": "^3.0.2",
53+
"react-toastify": "^10.0.6",
54+
"react-window": "^1.8.10",
55+
"redux": "^5.0.1",
5656
"redux-persist": "^5.10.0",
5757
"redux-promise": "^0.6.0",
58-
"redux-thunk": "^2.3.0",
59-
"reselect": "^4.0.0",
60-
"socket.io-client": "^4.7.2",
61-
"streamsaver": "^1.2.0",
58+
"redux-thunk": "^3.1.0",
59+
"reselect": "^5.1.1",
60+
"socket.io-client": "^4.8.1",
6261
"suncalc": "^1.9.0",
63-
"use-sound": "^4.0.1",
64-
"uuid": "^3.4.0"
62+
"use-sound": "^4.0.3",
63+
"uuid": "^11.0.3"
6564
},
6665
"scripts": {
6766
"start": "react-scripts start",
@@ -92,14 +91,15 @@
9291
"jest-coverage-thresholds-bumper": "^1.0.1",
9392
"jest-webgl-canvas-mock": "^0.2.3",
9493
"madge": "^5.0.1",
95-
"msw": "^0.47.3",
96-
"node-sass": "^6.0.1",
94+
"msw": "^2.6.6",
9795
"redux-mock-store": "^1.5.3",
96+
"sass": "^1.81.0",
9897
"socket.io-mock": "^1.3.2",
9998
"stylelint": "^13.13.1",
10099
"stylelint-config-css-modules": "^2.2.0",
101100
"stylelint-config-standard": "^22.0.0",
102-
"stylelint-scss": "^3.21.0"
101+
"stylelint-scss": "^3.21.0",
102+
"undici": "5.0.0"
103103
},
104104
"jest": {
105105
"coverageThreshold": {
@@ -121,8 +121,6 @@
121121
"last 1 safari version"
122122
],
123123
"resolutions": {
124-
"eslint-loader": "3.0.2",
125-
"node-fetch": "2.6.7",
126-
"loader-utils": "2.0.4"
124+
"resolve-url-loader": "5.0.0"
127125
}
128-
}
126+
}

public/locales/en-US/reports.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@
134134
"locationLabel": "Event Location",
135135
"priorityLabel": "Priority",
136136
"reportedByLabel": "Reported By",
137+
"schemaForm": {
138+
"errors": {
139+
"required": "This is a required field."
140+
}
141+
},
137142
"stateDropdown": {
138143
"active": "active",
139144
"resolved": "resolved"

public/locales/es/reports.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@
123123
"locationLabel": "Ubicación del evento",
124124
"priorityLabel": "Prioridad",
125125
"reportedByLabel": "Reportado por",
126+
"schemaForm": {
127+
"errors": {
128+
"required": "Este campo es obligatorio."
129+
}
130+
},
126131
"stateDropdown": {
127132
"active": "activo",
128133
"resolved": "resuelto"

public/locales/fr/reports.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@
123123
"locationLabel": "Emplacement",
124124
"priorityLabel": "Priorité",
125125
"reportedByLabel": "Complété Par",
126+
"schemaForm": {
127+
"errors": {
128+
"required": "Ceci est un champ obligatoire."
129+
}
130+
},
126131
"stateDropdown": {
127132
"active": "Actif",
128133
"resolved": "Résolu"

public/locales/ne-NP/reports.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@
131131
"locationLabel": "घटनाको लोकेसन",
132132
"priorityLabel": "प्राथमिकता",
133133
"reportedByLabel": "द्वारा रिपार्ट गरिएको",
134+
"schemaForm": {
135+
"errors": {
136+
"required": "यो आवश्यक फिल्ड हो।"
137+
}
138+
},
134139
"stateDropdown": {
135140
"active": "सक्रिय",
136141
"resolved": "समाधान गरिएको"

0 commit comments

Comments
 (0)