build: upgrade deps
This commit is contained in:
parent
3e50b5ba5b
commit
7ceca5be11
6 changed files with 1689 additions and 1053 deletions
|
@ -10,8 +10,7 @@ plugins:
|
|||
|
||||
extends:
|
||||
- 'plugin:@typescript-eslint/recommended'
|
||||
- 'prettier'
|
||||
- prettier/@typescript-eslint
|
||||
- prettier
|
||||
- react-app
|
||||
- 'plugin:jsx-a11y/recommended'
|
||||
|
||||
|
|
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
|
@ -11,14 +11,14 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2.1.4
|
||||
uses: actions/setup-node@v2.1.5
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Get yarn cache directory path
|
||||
id: yarn-cache-dir-path
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
- uses: actions/cache@v2
|
||||
- uses: actions/cache@v2.1.4
|
||||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
|
||||
with:
|
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
||||
|
|
|
@ -11,7 +11,6 @@ const presets = [
|
|||
},
|
||||
],
|
||||
['@babel/preset-react', { runtime: 'automatic' }],
|
||||
'@babel/preset-flow',
|
||||
'@babel/preset-typescript',
|
||||
];
|
||||
|
||||
|
|
116
package.json
116
package.json
|
@ -21,24 +21,24 @@
|
|||
"private": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@babel/runtime": "^7.13.8",
|
||||
"@hsjs/react-cache": "0.0.0-alpha.aa94237",
|
||||
"@reach/tooltip": "^0.12.1",
|
||||
"@sentry/browser": "^5.29.2",
|
||||
"@reach/tooltip": "^0.13.2",
|
||||
"@sentry/browser": "^6.2.0",
|
||||
"chart.js": "^2.9.2",
|
||||
"clsx": "^1.1.0",
|
||||
"core-js": "^3.8.2",
|
||||
"date-fns": "^2.16.0",
|
||||
"core-js": "^3.9.0",
|
||||
"date-fns": "^2.17.0",
|
||||
"fontsource-open-sans": "^4.0.0",
|
||||
"fontsource-roboto-mono": "^4.0.0",
|
||||
"framer-motion": "^3.1.2",
|
||||
"framer-motion": "^3.7.0",
|
||||
"history": "^5.0.0",
|
||||
"i18next": "^19.8.4",
|
||||
"i18next": "^19.9.0",
|
||||
"i18next-browser-languagedetector": "^6.0.1",
|
||||
"i18next-http-backend": "^1.0.21",
|
||||
"immer": "^8.0.0",
|
||||
"i18next-http-backend": "^1.1.1",
|
||||
"immer": "^8.0.1",
|
||||
"invariant": "^2.2.4",
|
||||
"lodash-es": "^4.17.20",
|
||||
"lodash-es": "^4.17.21",
|
||||
"memoize-one": "^5.1.1",
|
||||
"modern-normalize": "^1.0.0",
|
||||
"prop-types": "^15.5.10",
|
||||
|
@ -46,64 +46,64 @@
|
|||
"react-dom": "0.0.0-experimental-94c0244ba",
|
||||
"react-feather": "^2.0.9",
|
||||
"react-helmet": "^6.1.0",
|
||||
"react-i18next": "^11.8.5",
|
||||
"react-icons": "^4.1.0",
|
||||
"react-i18next": "^11.8.8",
|
||||
"react-icons": "^4.2.0",
|
||||
"react-modal": "^3.12.1",
|
||||
"react-query": "^3.5.9",
|
||||
"react-query": "^3.12.0",
|
||||
"react-router": "6.0.0-beta.0",
|
||||
"react-router-dom": "6.0.0-beta.0",
|
||||
"react-switch": "^5.0.1",
|
||||
"react-table": "^7.6.2",
|
||||
"react-tabs": "^3.1.2",
|
||||
"react-switch": "^6.0.0",
|
||||
"react-table": "^7.6.3",
|
||||
"react-tabs": "^3.2.0",
|
||||
"react-tiny-fab": "^4.0.2",
|
||||
"react-window": "^1.8.5",
|
||||
"recoil": "^0.1.2",
|
||||
"regenerator-runtime": "^0.13.7",
|
||||
"reselect": "^4.0.0",
|
||||
"workbox-core": "^6.0.2",
|
||||
"workbox-expiration": "^6.0.2",
|
||||
"workbox-precaching": "^6.0.2",
|
||||
"workbox-routing": "^6.0.2",
|
||||
"workbox-strategies": "^6.0.2"
|
||||
"tslib": "^2.1.0",
|
||||
"workbox-core": "^6.1.1",
|
||||
"workbox-expiration": "^6.1.1",
|
||||
"workbox-precaching": "^6.1.1",
|
||||
"workbox-routing": "^6.1.1",
|
||||
"workbox-strategies": "^6.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.10",
|
||||
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
||||
"@babel/plugin-proposal-do-expressions": "^7.7.4",
|
||||
"@babel/core": "^7.13.8",
|
||||
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
||||
"@babel/plugin-proposal-do-expressions": "^7.12.13",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
|
||||
"@babel/plugin-transform-runtime": "^7.12.10",
|
||||
"@babel/preset-env": "^7.12.11",
|
||||
"@babel/preset-flow": "^7.7.4",
|
||||
"@babel/preset-react": "^7.12.10",
|
||||
"@babel/preset-typescript": "^7.12.7",
|
||||
"@babel/plugin-transform-runtime": "^7.13.8",
|
||||
"@babel/preset-env": "^7.13.8",
|
||||
"@babel/preset-react": "^7.12.13",
|
||||
"@babel/preset-typescript": "^7.13.0",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
||||
"@types/invariant": "^2.2.33",
|
||||
"@types/jest": "^26.0.19",
|
||||
"@types/jest": "^26.0.20",
|
||||
"@types/lodash-es": "^4.17.4",
|
||||
"@types/react": "^17.0.0",
|
||||
"@types/react-dom": "^17.0.0",
|
||||
"@types/react": "^17.0.2",
|
||||
"@types/react-dom": "^17.0.1",
|
||||
"@types/react-helmet": "^6.1.0",
|
||||
"@types/react-modal": "^3.10.6",
|
||||
"@types/react-modal": "^3.12.0",
|
||||
"@types/react-tabs": "^2.3.2",
|
||||
"@types/react-window": "^1.8.2",
|
||||
"@typescript-eslint/eslint-plugin": "^4.11.1",
|
||||
"@typescript-eslint/parser": "^4.11.1",
|
||||
"autoprefixer": "^10.1.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.15.2",
|
||||
"@typescript-eslint/parser": "^4.15.2",
|
||||
"autoprefixer": "^10.2.4",
|
||||
"babel-eslint": "10.x",
|
||||
"babel-loader": "^8.2.2",
|
||||
"clean-webpack-plugin": "^3.0.0",
|
||||
"copy-webpack-plugin": "^7.0.0",
|
||||
"css-loader": "^5.0.1",
|
||||
"css-minimizer-webpack-plugin": "^1.1.5",
|
||||
"css-loader": "^5.1.0",
|
||||
"css-minimizer-webpack-plugin": "^1.2.0",
|
||||
"cssnano": "^4.1.7",
|
||||
"eslint": "^7.17.0",
|
||||
"eslint": "^7.21.0",
|
||||
"eslint-config-airbnb-base": "^14.2.1",
|
||||
"eslint-config-prettier": "^7.1.0",
|
||||
"eslint-config-prettier": "^8.1.0",
|
||||
"eslint-config-react-app": "^6.0.0",
|
||||
"eslint-import-resolver-webpack": "^0.13.0",
|
||||
"eslint-plugin-flowtype": "^5.2.0",
|
||||
"eslint-plugin-flowtype": "^5.3.1",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-jest": "^24.1.3",
|
||||
"eslint-plugin-jest": "^24.1.5",
|
||||
"eslint-plugin-jsx-a11y": "^6.3.1",
|
||||
"eslint-plugin-react": "^7.22.0",
|
||||
"eslint-plugin-react-hooks": "^4.1.2",
|
||||
|
@ -111,28 +111,28 @@
|
|||
"express": "^4.17.1",
|
||||
"file-loader": "^6.1.1",
|
||||
"fork-ts-checker-notifier-webpack-plugin": "^3.0.0",
|
||||
"fork-ts-checker-webpack-plugin": "^6.0.8",
|
||||
"html-webpack-plugin": "^4.5.1",
|
||||
"mini-css-extract-plugin": "^1.3.3",
|
||||
"postcss": "^8.2.2",
|
||||
"postcss-custom-media": "^7.0.8",
|
||||
"fork-ts-checker-webpack-plugin": "^6.1.0",
|
||||
"html-webpack-plugin": "^5.2.0",
|
||||
"mini-css-extract-plugin": "^1.3.9",
|
||||
"postcss": "^8.2.6",
|
||||
"postcss-custom-media": "^8.0.0",
|
||||
"postcss-extend-rule": "^3.0.0",
|
||||
"postcss-import": "^14.0.0",
|
||||
"postcss-loader": "^4.1.0",
|
||||
"postcss-nested": "^5.0.3",
|
||||
"postcss-simple-vars": "^6.0.2",
|
||||
"postcss-loader": "^5.0.0",
|
||||
"postcss-nested": "^5.0.4",
|
||||
"postcss-simple-vars": "^6.0.3",
|
||||
"prettier": "^2.2.1",
|
||||
"react-refresh": "^0.9.0",
|
||||
"resize-observer-polyfill": "^1.5.1",
|
||||
"style-loader": "^2.0.0",
|
||||
"terser-webpack-plugin": "^5.0.0",
|
||||
"ts-loader": "^8.0.13",
|
||||
"typescript": "^4.1.3",
|
||||
"webpack": "^5.11.1",
|
||||
"webpack-bundle-analyzer": "^4.3.0",
|
||||
"webpack-cli": "^4.3.1",
|
||||
"webpack-dev-middleware": "^4.0.2",
|
||||
"terser-webpack-plugin": "^5.1.1",
|
||||
"ts-loader": "^8.0.17",
|
||||
"typescript": "^4.2.2",
|
||||
"webpack": "^5.24.2",
|
||||
"webpack-bundle-analyzer": "^4.4.0",
|
||||
"webpack-cli": "^4.5.0",
|
||||
"webpack-dev-middleware": "^4.1.0",
|
||||
"webpack-hot-middleware": "^2.22.2",
|
||||
"workbox-webpack-plugin": "^6.0.2"
|
||||
"workbox-webpack-plugin": "^6.1.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,10 +52,7 @@ export function removeClashAPIConfig({ baseURL, secret }) {
|
|||
return async (dispatch: DispatchFn, getState: GetStateFn) => {
|
||||
const idx = findClashAPIConfigIndex(getState, { baseURL, secret });
|
||||
dispatch('removeClashAPIConfig', (s) => {
|
||||
s.app.clashAPIConfigs = [
|
||||
...s.app.clashAPIConfigs.slice(0, idx),
|
||||
...s.app.clashAPIConfigs.slice(idx + 1),
|
||||
];
|
||||
s.app.clashAPIConfigs.splice(idx, 1);
|
||||
});
|
||||
// side effect
|
||||
saveState(getState().app);
|
||||
|
@ -160,7 +157,9 @@ export function updateCollapsibleIsOpen(
|
|||
}
|
||||
|
||||
const defaultClashAPIConfig = {
|
||||
baseURL: document.getElementById('app')?.getAttribute('data-base-url') ?? 'http://127.0.0.1:9090',
|
||||
baseURL:
|
||||
document.getElementById('app')?.getAttribute('data-base-url') ??
|
||||
'http://127.0.0.1:9090',
|
||||
secret: '',
|
||||
addedAt: 0,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue