Upgrade deps
This commit is contained in:
parent
6a745db0b9
commit
fc3728ad4e
5 changed files with 410 additions and 288 deletions
|
@ -36,7 +36,7 @@ docker run -p 1234:80 -d --name yacd --rm ghcr.io/haishanh/yacd:master
|
|||
pnpm i
|
||||
|
||||
# start the dev server
|
||||
# then go to http://127.0.0.1:3000
|
||||
# then go to the url printed on the screen
|
||||
pnpm start
|
||||
|
||||
|
||||
|
|
32
package.json
32
package.json
|
@ -34,13 +34,13 @@
|
|||
"@reach/tooltip": "0.17.0",
|
||||
"@reach/visually-hidden": "0.17.0",
|
||||
"@tanstack/react-query": "4.0.10",
|
||||
"chart.js": "3.8.0",
|
||||
"chart.js": "3.9.1",
|
||||
"clsx": "^1.2.1",
|
||||
"core-js": "3.23.5",
|
||||
"core-js": "3.24.1",
|
||||
"date-fns": "2.29.1",
|
||||
"framer-motion": "6.5.1",
|
||||
"framer-motion": "7.0.0",
|
||||
"history": "5.3.0",
|
||||
"i18next": "21.8.14",
|
||||
"i18next": "21.8.16",
|
||||
"i18next-browser-languagedetector": "6.1.4",
|
||||
"i18next-http-backend": "1.4.1",
|
||||
"immer": "9.0.15",
|
||||
|
@ -52,7 +52,7 @@
|
|||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-feather": "^2.0.10",
|
||||
"react-i18next": "11.18.1",
|
||||
"react-i18next": "11.18.3",
|
||||
"react-icons": "4.4.0",
|
||||
"react-modal": "3.15.1",
|
||||
"react-router": "6.3.0",
|
||||
|
@ -67,11 +67,11 @@
|
|||
"reselect": "4.1.6",
|
||||
"tslib": "2.4.0",
|
||||
"use-asset": "1.0.4",
|
||||
"workbox-core": "6.5.3",
|
||||
"workbox-expiration": "6.5.3",
|
||||
"workbox-precaching": "6.5.3",
|
||||
"workbox-routing": "6.5.3",
|
||||
"workbox-strategies": "6.5.3"
|
||||
"workbox-core": "6.5.4",
|
||||
"workbox-expiration": "6.5.4",
|
||||
"workbox-precaching": "6.5.4",
|
||||
"workbox-routing": "6.5.4",
|
||||
"workbox-strategies": "6.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@fontsource/inter": "4.5.11",
|
||||
|
@ -81,11 +81,11 @@
|
|||
"@types/react-dom": "18.0.6",
|
||||
"@types/react-modal": "3.13.1",
|
||||
"@types/react-window": "1.8.5",
|
||||
"@typescript-eslint/eslint-plugin": "5.30.7",
|
||||
"@typescript-eslint/parser": "5.30.7",
|
||||
"@typescript-eslint/eslint-plugin": "5.32.0",
|
||||
"@typescript-eslint/parser": "5.32.0",
|
||||
"@vitejs/plugin-react": "2.0.0",
|
||||
"autoprefixer": "10.4.7",
|
||||
"eslint": "8.20.0",
|
||||
"autoprefixer": "10.4.8",
|
||||
"eslint": "8.21.0",
|
||||
"eslint-config-airbnb-base": "15.0.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-config-react-app": "7.0.1",
|
||||
|
@ -101,9 +101,9 @@
|
|||
"postcss-simple-vars": "^6.0.3",
|
||||
"prettier": "2.7.1",
|
||||
"resize-observer-polyfill": "^1.5.1",
|
||||
"sass": "1.54.0",
|
||||
"sass": "1.54.2",
|
||||
"typescript": "4.7.4",
|
||||
"vite": "3.0.2",
|
||||
"vite": "3.0.4",
|
||||
"vite-plugin-pwa": "0.12.3"
|
||||
}
|
||||
}
|
||||
|
|
655
pnpm-lock.yaml
655
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -19,7 +19,7 @@ export function useUpdateRuleProviderItem(
|
|||
const queryClient = useQueryClient();
|
||||
const { mutate, isLoading } = useMutation(refreshRuleProviderByName, {
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries('/providers/rules');
|
||||
queryClient.invalidateQueries(['/providers/rules']);
|
||||
},
|
||||
});
|
||||
const onClickRefreshButton = (ev: React.MouseEvent<HTMLButtonElement>) => {
|
||||
|
@ -36,7 +36,7 @@ export function useUpdateAllRuleProviderItems(
|
|||
const { data: provider } = useRuleProviderQuery(apiConfig);
|
||||
const { mutate, isLoading } = useMutation(updateRuleProviders, {
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries('/providers/rules');
|
||||
queryClient.invalidateQueries(['/providers/rules']);
|
||||
},
|
||||
});
|
||||
const onClickRefreshButton = (ev: React.MouseEvent<HTMLButtonElement>) => {
|
||||
|
@ -49,8 +49,8 @@ export function useUpdateAllRuleProviderItems(
|
|||
export function useInvalidateQueries() {
|
||||
const queryClient = useQueryClient();
|
||||
return useCallback(() => {
|
||||
queryClient.invalidateQueries('/rules');
|
||||
queryClient.invalidateQueries('/providers/rules');
|
||||
queryClient.invalidateQueries(['/rules']);
|
||||
queryClient.invalidateQueries(['/providers/rules']);
|
||||
}, [queryClient]);
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ export const DOES_NOT_SUPPORT_FETCH = 0;
|
|||
export class YacdError extends Error {
|
||||
constructor(public message: string, public code?: string | number) {
|
||||
super(message);
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue