mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
Chore: update dependencies
This commit is contained in:
parent
5ba5058c70
commit
d0f61c9c57
38
package.json
38
package.json
@ -26,17 +26,15 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/lodash-es": "^4.17.6",
|
||||
"@types/node": "^17.0.23",
|
||||
"@types/react": "^17.0.43",
|
||||
"@types/react-dom": "^17.0.14",
|
||||
"@types/react-router-dom": "^5.3.3",
|
||||
"@types/react-table": "^7.7.10",
|
||||
"@types/node": "^17.0.25",
|
||||
"@types/react": "^18.0.6",
|
||||
"@types/react-dom": "^18.0.2",
|
||||
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
||||
"@types/react-window": "^1.8.5",
|
||||
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
||||
"@typescript-eslint/parser": "^5.18.0",
|
||||
"@vitejs/plugin-react": "^1.3.0",
|
||||
"eslint": "^8.12.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.20.0",
|
||||
"@typescript-eslint/parser": "^5.20.0",
|
||||
"@vitejs/plugin-react": "^1.3.1",
|
||||
"eslint": "^8.14.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-config-airbnb-typescript": "^17.0.0",
|
||||
"eslint-config-standard-with-typescript": "^21.0.1",
|
||||
@ -45,32 +43,32 @@
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-promise": "^6.0.0",
|
||||
"eslint-plugin-react-hooks": "^4.4.0",
|
||||
"sass": "^1.49.11",
|
||||
"sass": "^1.50.1",
|
||||
"type-fest": "^2.12.2",
|
||||
"typescript": "^4.6.3",
|
||||
"vite": "^2.9.1",
|
||||
"vite-plugin-pwa": "^0.11.13",
|
||||
"vite-plugin-windicss": "^1.8.3",
|
||||
"vite": "^2.9.5",
|
||||
"vite-plugin-pwa": "^0.12.0",
|
||||
"vite-plugin-windicss": "^1.8.4",
|
||||
"vite-tsconfig-paths": "^3.4.1",
|
||||
"windicss": "^3.5.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-hookz/web": "^13.2.0",
|
||||
"@tanstack/react-table": "^8.0.0-alpha.20",
|
||||
"@react-hookz/web": "^13.2.1",
|
||||
"@tanstack/react-table": "^8.0.0-alpha.45",
|
||||
"axios": "^0.26.1",
|
||||
"classnames": "^2.3.1",
|
||||
"dayjs": "^1.11.0",
|
||||
"dayjs": "^1.11.1",
|
||||
"eventemitter3": "^4.0.7",
|
||||
"immer": "^9.0.12",
|
||||
"jotai": "1.6.1",
|
||||
"jotai": "^1.6.4",
|
||||
"lodash-es": "^4.17.21",
|
||||
"neverthrow": "^4.3.1",
|
||||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0",
|
||||
"react-router-dom": "^6.3.0",
|
||||
"react-virtualized-auto-sizer": "^1.0.6",
|
||||
"react-window": "^1.8.6",
|
||||
"swr": "^1.2.2",
|
||||
"use-immer": "^0.6.0"
|
||||
"react-window": "^1.8.7",
|
||||
"swr": "^1.3.0",
|
||||
"use-immer": "^0.7.0"
|
||||
}
|
||||
}
|
||||
|
1565
pnpm-lock.yaml
generated
1565
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
import { useIntersectionObserver, useSyncedRef } from '@react-hookz/web/esm'
|
||||
import { useTable, columnFilterRowsFn, createTable, sortRowsFn } from '@tanstack/react-table'
|
||||
import { useTableInstance, createTable, getSortedRowModelSync, getColumnFilteredRowModelSync, getCoreRowModelSync } from '@tanstack/react-table'
|
||||
import classnames from 'classnames'
|
||||
import produce from 'immer'
|
||||
import { groupBy } from 'lodash-es'
|
||||
@ -160,11 +160,12 @@ export default function Connections () {
|
||||
}
|
||||
}, [connStreamReader, feed, setTraffic])
|
||||
|
||||
const instance = useTable(table, {
|
||||
const instance = useTableInstance(table, {
|
||||
data,
|
||||
columns,
|
||||
sortRowsFn,
|
||||
columnFilterRowsFn,
|
||||
getCoreRowModel: getCoreRowModelSync(),
|
||||
getSortedRowModel: getSortedRowModelSync(),
|
||||
getColumnFilteredRowModel: getColumnFilteredRowModelSync(),
|
||||
initialState: {
|
||||
sorting: [{ id: Columns.Time, desc: false }],
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user