Skip to content

Commit b469658

Browse files
authored
Merge pull request #1285 from PADAS/ERA-11293
ERA-11293: Evaluate client-side memory consumption
2 parents c9d6107 + 1603a6c commit b469658

File tree

382 files changed

+6280
-7467
lines changed

Some content is hidden

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

382 files changed

+6280
-7467
lines changed

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
"plugin:react/recommended"
99
],
1010
"parserOptions": {
11+
"babelOptions": {
12+
"presets": [
13+
["babel-preset-react-app", false],
14+
"babel-preset-react-app/prod"
15+
]
16+
},
1117
"ecmaVersion": 2018
1218
},
1319
"rules": {

.githooks/pre-commit

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

__mocks__/css.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {};

__mocks__/scss.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = new Proxy(
2+
{},
3+
{
4+
get: (_target, key) => {
5+
if (key === '__esModule') {
6+
return true;
7+
}
8+
return key;
9+
},
10+
}
11+
);

__mocks__/svg.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const svgURL = 'SvgrURL';
2+
3+
export default svgURL;
4+
5+
export const ReactComponent = 'div';

package.json

Lines changed: 95 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -5,126 +5,176 @@
55
"buildbranch": "generated_by_build",
66
"buildnum": "also_generated_by_build",
77
"dependencies": {
8+
"@babel/core": "^7.16.0",
89
"@dnd-kit/core": "^6.3.1",
910
"@dnd-kit/sortable": "^10.0.0",
1011
"@dnd-kit/utilities": "^3.2.2",
12+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
1113
"@rjsf/bootstrap-4": "^5.24.8",
1214
"@rjsf/core": "^5.24.8",
1315
"@rjsf/utils": "^5.24.8",
1416
"@rjsf/validator-ajv6": "^5.24.8",
17+
"@svgr/webpack": "^8.1.0",
1518
"@turf/turf": "^7.1.0",
1619
"ajv": "^8.17.1",
1720
"ajv-draft-04": "^1.0.0",
1821
"ajv-formats": "^3.0.1",
1922
"axios": "1.8.4",
2023
"axios-progress-bar": "^1.2.0",
21-
"bootstrap": "5.3.3",
24+
"babel-jest": "^29.7.0",
25+
"babel-loader": "^10.0.0",
26+
"babel-plugin-named-asset-import": "^0.3.8",
27+
"babel-preset-react-app": "^10.0.1",
28+
"bfj": "^9.1.2",
29+
"bootstrap": "5.3.5",
30+
"browserslist": "^4.18.1",
2231
"buffer": "^6.0.3",
32+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
33+
"css-loader": "^7.1.2",
34+
"css-minimizer-webpack-plugin": "^7.0.2",
2335
"date-fns": "^4.1.0",
36+
"dotenv": "^16.4.7",
37+
"dotenv-expand": "^12.0.1",
38+
"eslint": "^8.10.0",
39+
"eslint-config-react-app": "^7.0.1",
40+
"eslint-webpack-plugin": "^5.0.1",
41+
"file-loader": "^6.2.0",
42+
"fs-extra": "^11.3.0",
2443
"geodesy": "^2.4.0",
44+
"html-webpack-plugin": "^5.5.0",
2545
"humanize-duration": "^3.32.1",
26-
"i18next": "^24.0.2",
46+
"i18next": "^25.0.0",
2747
"i18next-browser-languagedetector": "^8.0.0",
2848
"i18next-chained-backend": "^4.6.2",
2949
"i18next-http-backend": "^3.0.1",
3050
"i18next-localstorage-backend": "^4.2.0",
51+
"jest": "^29.7.0",
52+
"jest-resolve": "^29.7.0",
53+
"jest-watch-typeahead": "^2.2.2",
3154
"legacy-socket.io-client": "npm:socket.io-client@2.2.0",
3255
"localforage": "^1.10.0",
3356
"lodash-es": "^4.17.21",
3457
"mapbox-gl": "^3.8.0",
58+
"mini-css-extract-plugin": "^2.4.5",
3559
"pluralize": "^8.0.0",
36-
"prop-types": "^15.8.1",
37-
"react": "^18.3.1",
60+
"postcss": "^8.4.4",
61+
"postcss-flexbugs-fixes": "^5.0.2",
62+
"postcss-loader": "^8.1.1",
63+
"postcss-normalize": "^13.0.1",
64+
"postcss-preset-env": "^10.1.5",
65+
"prompts": "^2.4.2",
66+
"react": "^19.1.0",
3867
"react-bootstrap": "2.10.9",
3968
"react-collapsible": "^2.10.0",
40-
"react-datepicker": "^7.5.0",
69+
"react-datepicker": "^8.3.0",
4170
"react-debounce-render": "^8.0.2",
42-
"react-dom": "^18.3.1",
43-
"react-error-boundary": "^4.1.2",
71+
"react-dev-utils": "^12.0.1",
72+
"react-dom": "^19.1.0",
73+
"react-error-boundary": "^5.0.0",
4474
"react-fast-compare": "^3.2.2",
4575
"react-flip-toolkit": "^7.2.4",
4676
"react-ga4": "^2.1.0",
4777
"react-i18next": "^15.1.2",
4878
"react-infinite-scroller": "^1.2.6",
4979
"react-js-pagination": "^3.0.3",
50-
"react-pin-field": "^3.1.5",
80+
"react-pin-field": "^4.0.2",
5181
"react-redux": "^9.1.2",
82+
"react-refresh": "^0.17.0",
5283
"react-router-dom": "^7.0.1",
53-
"react-scripts": "5.0.1",
5484
"react-select": "^5.8.3",
55-
"react-spinners": "^0.15.0",
56-
"react-to-print": "^3.0.2",
57-
"react-toastify": "^10.0.6",
85+
"react-spinners": "^0.16.1",
86+
"react-to-print": "^3.0.6",
87+
"react-toastify": "^11.0.5",
5888
"react-window": "^1.8.10",
5989
"redux": "^5.0.1",
6090
"redux-persist": "^5.10.0",
6191
"redux-promise": "^0.6.0",
6292
"redux-thunk": "^3.1.0",
6393
"reselect": "^5.1.1",
94+
"resolve": "^1.20.0",
95+
"resolve-url-loader": "^5.0.0",
96+
"sass-loader": "^16.0.5",
97+
"semver": "^7.3.5",
6498
"socket.io-client": "^4.8.1",
99+
"source-map-loader": "^5.0.0",
100+
"style-loader": "^4.0.0",
65101
"suncalc": "^1.9.0",
102+
"tailwindcss": "^4.1.4",
103+
"terser-webpack-plugin": "^5.2.5",
66104
"use-sound": "^5.0.0",
67-
"uuid": "^11.0.3"
105+
"uuid": "^11.0.3",
106+
"webpack": "^5.98.0",
107+
"webpack-dev-server": "^5.2.1",
108+
"webpack-manifest-plugin": "^5.0.1",
109+
"workbox-webpack-plugin": "^7.3.0"
68110
},
69111
"scripts": {
70-
"start": "react-scripts start",
112+
"start": "node react-scripts/start.js",
71113
"build-sw": "node ./src/sw-build.js",
72114
"clean-cra-sw": "rm -f build/precache-manifest.*.js && rm -f build/service-worker.js",
73-
"build": "GENERATE_SOURCEMAP=false react-scripts build && npm run build-sw && npm run clean-cra-sw",
74-
"test": "react-scripts test --transformIgnorePatterns \"node_modules/(?!geodesy)/\"",
75-
"eject": "react-scripts eject",
115+
"build": "GENERATE_SOURCEMAP=false node react-scripts/build.js && yarn build-sw && yarn clean-cra-sw",
116+
"test": "node react-scripts/test.js",
76117
"lint": "CI=true eslint src",
77118
"stylelint": "node ./node_modules/stylelint/bin/stylelint.js ./src/**/*.scss",
78-
"test-ci": "CI=true react-scripts test --silent --detectOpenHandles --forceExit --transformIgnorePatterns \"node_modules/(?!geodesy)/\"",
79-
"test-cov": "yarn test-ci --coverage",
80-
"posttest-cov": "jest-coverage-thresholds-bumper --margin=1",
119+
"test-ci": "CI=true node react-scripts/test.js --silent --detectOpenHandles --forceExit",
81120
"postinstall": "sh setUpLocalGitConfig.sh"
82121
},
83122
"devDependencies": {
84123
"@babel/eslint-parser": "^7.27.0",
85124
"@babel/runtime": "^7.27.0",
86-
"@testing-library/dom": "^8.1.0",
87-
"@testing-library/jest-dom": "^5.14.1",
88-
"@testing-library/react": "^12.0.0",
89-
"@testing-library/react-hooks": "^8.0.1",
90-
"@testing-library/user-event": "^13.0.16",
91-
"eslint": "^8.10.0",
125+
"@testing-library/dom": "^10.4.0",
126+
"@testing-library/jest-dom": "^6.6.3",
127+
"@testing-library/react": "^16.3.0",
128+
"@testing-library/user-event": "^14.6.1",
92129
"eslint-config-airbnb": "^19.0.4",
93130
"eslint-plugin-react": "^7.12.4",
94131
"eslint-plugin-react-hooks": "^5.2.0",
95-
"jest-coverage-thresholds-bumper": "^1.0.1",
96-
"jest-webgl-canvas-mock": "^0.2.3",
97-
"madge": "^8.0.0",
98-
"msw": "^2.7.3",
132+
"jest-environment-jsdom": "^29.7.0",
133+
"jest-fixed-jsdom": "^0.0.9",
134+
"jest-webgl-canvas-mock": "^2.5.3",
135+
"msw": "^2.7.4",
99136
"redux-mock-store": "^1.5.3",
100137
"sass": "^1.86.0",
101138
"socket.io-mock": "^1.3.2",
102139
"stylelint": "^16.17.0",
103140
"stylelint-config-css-modules": "^4.4.0",
104-
"stylelint-config-standard": "^37.0.0",
105-
"stylelint-scss": "^6.11.1",
106-
"undici": "5.0.0"
141+
"stylelint-config-standard": "^38.0.0",
142+
"stylelint-scss": "^6.11.1"
107143
},
108144
"jest": {
109-
"coverageThreshold": {
110-
"global": {
111-
"branches": 45.52,
112-
"functions": 49.78,
113-
"lines": 59.28,
114-
"statements": 58.03
115-
}
145+
"moduleNameMapper": {
146+
"\\.css": "<rootDir>/__mocks__/css.js",
147+
".+\\.module\\.scss": "<rootDir>/__mocks__/scss.js",
148+
"\\.svg": "<rootDir>/__mocks__/svg.js"
116149
},
117-
"coverageReporters": [
118-
"html",
119-
"json-summary"
150+
"resetMocks": true,
151+
"setupFilesAfterEnv": [
152+
"<rootDir>/src/setupTests.js"
153+
],
154+
"testEnvironment": "jest-fixed-jsdom",
155+
"testMatch": [
156+
"<rootDir>/src/**/*.test.{js,jsx}"
157+
],
158+
"transform": {
159+
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/react-app-config/jest/babelTransform.js",
160+
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|json)$)": "<rootDir>/react-app-config/jest/fileTransform.js"
161+
},
162+
"transformIgnorePatterns": [
163+
"/node_modules/(?!(geodesy|lodash-es|nanoid|react-debounce-render|uuid)/)"
164+
],
165+
"watchPlugins": [
166+
"jest-watch-typeahead/filename",
167+
"jest-watch-typeahead/testname"
120168
]
121169
},
122170
"browserslist": [
123171
"last 1 chrome version",
124172
"last 1 firefox version",
125173
"last 1 safari version"
126174
],
127-
"resolutions": {
128-
"resolve-url-loader": "5.0.0"
175+
"babel": {
176+
"presets": [
177+
"react-app"
178+
]
129179
}
130180
}

0 commit comments

Comments
 (0)