- App: make getValues an arrow field so its `this` survives being passed as the `update` prop (the post-edit statistics refresh was broken). - DataProcessingSettings: guard prop sync with last_downloaded_s + _.isEqual so the 1 s statistics poll no longer overwrites a slider mid-edit (reference `!=` on a freshly-parsed object was always true → snap-back). - DataCollection: collapse nested setState in grid-scan callbacks. - PreviewImage: build an immutable settings copy instead of mutating state in place; fix stale comment. - MultiLinePlotWrapper: drop per-render console.log; render via a custom Plot built on plotly.js-cartesian-dist-min (scatter+heatmap only), cutting the main bundle 6.0->2.6 MB (1.8->0.8 MB gzip). - package.json: remove dead react-scripts test/eject scripts and CRA eslintConfig, move @redocly/cli to devDependencies. - Delete unused CRA scaffolding (serviceWorker.js, react-app-env.d.ts, setupTests.js). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
60 lines
1.7 KiB
JSON
60 lines
1.7 KiB
JSON
{
|
|
"name": "jungfraujoch-frontend",
|
|
"version": "1.0.0-rc.148",
|
|
"license": "GPL-3.0",
|
|
"private": true,
|
|
"homepage": "/frontend",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@emotion/react": "^11.10.4",
|
|
"@emotion/styled": "^11.10.4",
|
|
"@mui/icons-material": "^6.1.2",
|
|
"@mui/material": "^6.1.2",
|
|
"@mui/x-data-grid": "^7.19.0",
|
|
"@types/node": "^25.2.3",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react-swc": "^4.2.3",
|
|
"lodash": "^4.17.23",
|
|
"plotly.js-cartesian-dist-min": "^3.3.1",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"react-plotly.js": "^2.6.0",
|
|
"react-zoom-pan-pinch": "^3.4.3",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.3.1",
|
|
"vite-plugin-svgr": "^4.5.0",
|
|
"vite-tsconfig-paths": "^6.1.1"
|
|
},
|
|
"scripts": {
|
|
"start": "vite",
|
|
"build": "tsc && vite build",
|
|
"serve": "vite preview",
|
|
"redocly": "redocly build-docs ../broker/jfjoch_api.yaml --output=dist/openapi.html",
|
|
"redocly4broker": "redocly build-docs ../broker/jfjoch_api.yaml --output=../broker/redoc-static.html",
|
|
"openapi": "./node_modules/openapi-typescript-codegen/bin/index.js -i ../broker/jfjoch_api.yaml --output ./src/openapi"
|
|
},
|
|
"overrides": {
|
|
"styled-components": "5.3.11"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@redocly/cli": "^2.28.1",
|
|
"@types/lodash": "^4.17.10",
|
|
"@types/react-plotly.js": "^2.6.3",
|
|
"esbuild-style-plugin": "^1.6.3",
|
|
"openapi-typescript-codegen": "^0.25.0"
|
|
}
|
|
}
|