* Update dependency "react-router-dom" to v6.x Update to v6.11.2 * Update dependency "react-router-dom" to v6.x - Replace "Switch" with "Routes" * Update dependency "react-router-dom" to v6.x - Relative paths * Update dependency "react-router-dom" to v6.x - Nested routes * Update dependency "react-router-dom" to v6.x - Prevent route warnings - Route without an element causes a warning message. - Routes with non-matching Route causes a warning message. * Update dependency "react-router-dom" to v6.x - Replace "useHistory" with "useNavigate" * Update dependency "react-router-dom" to v6.x - Fix "Link" usage * Update dependency "react-router-dom" to v6.x - Overwrite "useParams" and "useLocations" typing For both functions it's the users fault if they are getting used incorrectly. It's inconvenient to always have to make sure the params exist (useParam) or to cast the return object to a specific type (useLocation) - "useParams": Make generic type non-optional - "useLocation": Add generic type * Update dependency "react-router-dom" to v6.x - Fix use-query-params provider
68 lines
2.1 KiB
JSON
68 lines
2.1 KiB
JSON
{
|
|
"name": "project",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"build": "react-scripts build",
|
|
"build-md5": "find build -type f | sort | xargs md5sum | awk '{ print $1 }' | tr -d '\n' | md5sum| awk '{ print $1 }' > buildZip/md5sum ",
|
|
"build-zip": "cd build && rev=$(git rev-list HEAD --count) && echo r$rev > revision && zip -9 -r ../buildZip/Tachidesk-WebUI-r$rev *",
|
|
"test": "react-scripts test",
|
|
"eject": "react-scripts eject",
|
|
"lint": "eslint src --ext .ts,.tsx,.js,.jsx"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@emotion/react": "^11.11.0",
|
|
"@emotion/styled": "^11.11.0",
|
|
"@fontsource/roboto": "^4.3.0",
|
|
"@mui/icons-material": "^5.0.5",
|
|
"@mui/material": "^5.13.3",
|
|
"axios": "^1.4.0",
|
|
"file-selector": "^0.2.4",
|
|
"i18next": "^22.5.0",
|
|
"i18next-browser-languagedetector": "^7.0.2",
|
|
"react": "^17.0.2",
|
|
"react-beautiful-dnd": "^13.1.1",
|
|
"react-dom": "^17.0.2",
|
|
"react-i18next": "^12.3.1",
|
|
"react-router-dom": "^6.11.2",
|
|
"react-scripts": "^5.0.1",
|
|
"react-virtuoso": "^1.8.6",
|
|
"swr": "^2.1.5",
|
|
"use-query-params": "^2.2.1",
|
|
"web-vitals": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^17.0.2",
|
|
"@types/react-beautiful-dnd": "^13.1.4",
|
|
"@types/react-dom": "^17.0.2",
|
|
"@typescript-eslint/eslint-plugin": "^5.59.8",
|
|
"@typescript-eslint/parser": "^5.59.8",
|
|
"eslint": "^8.35.0",
|
|
"eslint-config-airbnb": "^19.0.4",
|
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-plugin-header": "^3.1.1",
|
|
"eslint-plugin-import": "^2.27.5",
|
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
"eslint-plugin-no-relative-import-paths": "^1.5.2",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-react": "^7.32.2",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"prettier": "^2.8.8",
|
|
"typescript": "^4.8.4"
|
|
}
|
|
}
|