* Use "fetch" instead of "axios"
Axios does not support prioritizing requests
* Deprioritize image requests
The browser requests images (<img>) with low priority by default.
Due to switching to loading images via axios (f852ce70e7), the image requests had the same priority as other requests and thus blocked e.g. xhr requests
91 lines
3.3 KiB
JSON
91 lines
3.3 KiB
JSON
{
|
|
"name": "project",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"preview": "vite preview",
|
|
"build": "vite build",
|
|
"test": "node -e \"console.log('imagine')\"",
|
|
"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/Suwayomi-WebUI-r$rev *",
|
|
"lint": "eslint src --ext .ts,.tsx,.js,.jsx --max-warnings=0",
|
|
"createChangelog": "ts-node tools/scripts/createReleaseChangelog.ts",
|
|
"updateDeps": "yarn upgrade && yarn syncyarnlock -s -k && yarn && git add package.json yarn.lock && git commit -m \"Update dependencies\" && echo Updated non breaking dependencies. Check potential breaking changes below... && yarn outdated",
|
|
"gql:codegen-base": "graphql-codegen --config gql_codegen.ts",
|
|
"gql:codegen-formatter": "ts-node tools/scripts/codegenFormatter.ts",
|
|
"gql:codegen": "yarn gql:codegen-base & yarn gql:codegen-formatter"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@apollo/client": "^3.8.10",
|
|
"@emotion/react": "^11.11.3",
|
|
"@emotion/styled": "^11.11.0",
|
|
"@fontsource/roboto": "^5.0.8",
|
|
"@mui/icons-material": "^5.15.6",
|
|
"@mui/material": "^5.15.6",
|
|
"@mui/x-date-pickers": "^6.19.2",
|
|
"@vitejs/plugin-react-swc": "^3.5.0",
|
|
"apollo-upload-client": "^17.0.0",
|
|
"dayjs": "^1.11.10",
|
|
"file-selector": "^0.6.0",
|
|
"graphql-tag": "^2.12.6",
|
|
"graphql-ws": "^5.14.3",
|
|
"i18next": "^23.8.1",
|
|
"i18next-browser-languagedetector": "^7.2.0",
|
|
"material-ui-popup-state": "^5.0.10",
|
|
"react": "^18.2.0",
|
|
"react-beautiful-dnd": "^13.1.1",
|
|
"react-device-detect": "^2.2.3",
|
|
"react-dom": "^18.2.0",
|
|
"react-i18next": "^14.0.1",
|
|
"react-router-dom": "^6.21.3",
|
|
"react-virtuoso": "^4.6.3",
|
|
"use-query-params": "^2.2.1",
|
|
"vite": "^5.0.12",
|
|
"vite-tsconfig-paths": "^4.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"@graphql-codegen/cli": "^5.0.0",
|
|
"@graphql-codegen/client-preset": "^4.1.0",
|
|
"@graphql-codegen/typescript-apollo-client-helpers": "^3.0.0",
|
|
"@graphql-codegen/typescript-operations": "^4.0.1",
|
|
"@types/apollo-upload-client": "^17.0.5",
|
|
"@types/node": "^20.11.10",
|
|
"@types/react": "^18.2.48",
|
|
"@types/react-beautiful-dnd": "^13.1.8",
|
|
"@types/react-dom": "^18.2.18",
|
|
"@types/yargs": "^17.0.32",
|
|
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
|
"@typescript-eslint/parser": "^6.20.0",
|
|
"eslint": "^8.56.0",
|
|
"eslint-config-airbnb": "^19.0.4",
|
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-header": "^3.1.1",
|
|
"eslint-plugin-import": "^2.29.1",
|
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
"eslint-plugin-no-relative-import-paths": "^1.5.3",
|
|
"eslint-plugin-prettier": "^5.1.3",
|
|
"eslint-plugin-react": "^7.33.2",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
"prettier": "^3.2.4",
|
|
"syncyarnlock": "^1.0.19",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.3.3",
|
|
"yargs": "^17.7.2"
|
|
}
|
|
}
|