mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-19 06:21:56 +08:00
Chore: update dependencies
This commit is contained in:
parent
45818c1273
commit
cc111b69d3
@ -33,4 +33,5 @@ rules:
|
||||
'@typescript-eslint/no-floating-promises': off
|
||||
'@typescript-eslint/no-invalid-void-type': off
|
||||
'@typescript-eslint/no-misused-promises': off
|
||||
'@typescript-eslint/no-confusing-void-expression': off
|
||||
'@typescript-eslint/comma-dangle': [error, only-multiline]
|
||||
|
44
package.json
44
package.json
@ -27,52 +27,52 @@
|
||||
"devDependencies": {
|
||||
"@types/lodash-es": "^4.17.6",
|
||||
"@types/node": "^18.11.18",
|
||||
"@types/react": "^18.0.26",
|
||||
"@types/react": "^18.0.27",
|
||||
"@types/react-dom": "^18.0.10",
|
||||
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
||||
"@types/react-window": "^1.8.5",
|
||||
"@typescript-eslint/eslint-plugin": "^5.47.1",
|
||||
"@typescript-eslint/parser": "^5.47.1",
|
||||
"@vitejs/plugin-react": "^3.0.0",
|
||||
"eslint": "^8.31.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.48.2",
|
||||
"@typescript-eslint/parser": "^5.48.2",
|
||||
"@vitejs/plugin-react": "^3.0.1",
|
||||
"eslint": "^8.32.0",
|
||||
"eslint-config-airbnb": "^19.0.4",
|
||||
"eslint-config-airbnb-typescript": "^17.0.0",
|
||||
"eslint-config-standard-with-typescript": "^24.0.0",
|
||||
"eslint-import-resolver-typescript": "^3.5.2",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.6.1",
|
||||
"eslint-plugin-n": "^15.6.0",
|
||||
"eslint-config-standard-with-typescript": "^31.0.0",
|
||||
"eslint-import-resolver-typescript": "^3.5.3",
|
||||
"eslint-plugin-import": "^2.27.5",
|
||||
"eslint-plugin-jsx-a11y": "^6.7.1",
|
||||
"eslint-plugin-n": "^15.6.1",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"eslint-plugin-react": "^7.31.11",
|
||||
"eslint-plugin-react": "^7.32.1",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"eslint-plugin-tailwindcss": "^3.8.0",
|
||||
"sass": "^1.57.1",
|
||||
"type-fest": "^3.5.0",
|
||||
"type-fest": "^3.5.2",
|
||||
"typescript": "^4.9.4",
|
||||
"vite": "^4.0.3",
|
||||
"vite-plugin-pwa": "^0.14.0",
|
||||
"vite": "^4.0.4",
|
||||
"vite-plugin-pwa": "^0.14.1",
|
||||
"vite-plugin-windicss": "^1.8.10",
|
||||
"vite-tsconfig-paths": "^4.0.3",
|
||||
"vite-tsconfig-paths": "^4.0.5",
|
||||
"windicss": "^3.5.6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-hookz/web": "^20.0.3",
|
||||
"@tanstack/react-table": "^8.7.4",
|
||||
"axios": "^1.2.2",
|
||||
"@react-hookz/web": "^22.0.0",
|
||||
"@tanstack/react-table": "^8.7.6",
|
||||
"axios": "^1.2.3",
|
||||
"classnames": "^2.3.2",
|
||||
"dayjs": "^1.11.7",
|
||||
"eventemitter3": "^5.0.0",
|
||||
"immer": "^9.0.16",
|
||||
"jotai": "^1.12.1",
|
||||
"immer": "^9.0.18",
|
||||
"jotai": "^1.13.1",
|
||||
"jotai-immer": "^0.1.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"neverthrow": "^6.0.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "^6.6.1",
|
||||
"react-router-dom": "^6.7.0",
|
||||
"react-virtualized-auto-sizer": "^1.0.7",
|
||||
"react-window": "^1.8.8",
|
||||
"swr": "^2.0.0",
|
||||
"swr": "^2.0.1",
|
||||
"use-immer": "^0.8.1"
|
||||
}
|
||||
}
|
||||
|
1509
pnpm-lock.yaml
generated
1509
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
import { useIntersectionObserver, useSyncedRef, useUnmountEffect } from '@react-hookz/web/esm'
|
||||
import { useIntersectionObserver, useSyncedRef, useUnmountEffect } from '@react-hookz/web'
|
||||
import { useReactTable, getSortedRowModel, getFilteredRowModel, getCoreRowModel, flexRender, createColumnHelper } from '@tanstack/react-table'
|
||||
import classnames from 'classnames'
|
||||
import { groupBy } from 'lodash-es'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { useAtom, useSetAtom } from 'jotai'
|
||||
import { useAtom } from 'jotai'
|
||||
import { useEffect } from 'react'
|
||||
|
||||
import { Modal, Input, Alert, Button, error } from '@components'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import type{ AxiosError } from 'axios'
|
||||
import type { AxiosError } from 'axios'
|
||||
import classnames from 'classnames'
|
||||
import { ResultAsync } from 'neverthrow'
|
||||
import { useMemo, useLayoutEffect, useCallback } from 'react'
|
||||
|
@ -7,7 +7,7 @@ import { Header, Card, Switch, ButtonSelect, ButtonSelectOptions, Input, Select
|
||||
import { Lang } from '@i18n'
|
||||
import { useObject } from '@lib/hook'
|
||||
import { jsBridge } from '@lib/jsBridge'
|
||||
import { useI18n, useClashXData, useAPIInfo, useGeneral, useVersion, useClient, identityAtom, hostSelectIdxStorageAtom, hostsStorageAtom } from '@stores'
|
||||
import { useI18n, useClashXData, useGeneral, useVersion, useClient, identityAtom, hostSelectIdxStorageAtom, hostsStorageAtom } from '@stores'
|
||||
import './style.scss'
|
||||
|
||||
const languageOptions: ButtonSelectOptions[] = [{ label: '中文', value: 'zh_CN' }, { label: 'English', value: 'en_US' }]
|
||||
@ -19,7 +19,6 @@ export default function Settings () {
|
||||
const setIdentity = useSetAtom(identityAtom)
|
||||
const [hostSelectIdx, setHostSelectIdx] = useAtom(hostSelectIdxStorageAtom)
|
||||
const hostsStorage = useAtomValue(hostsStorageAtom)
|
||||
const apiInfo = useAPIInfo()
|
||||
const { translation, setLang, lang } = useI18n()
|
||||
const { t } = translation('Settings')
|
||||
const client = useClient()
|
||||
@ -74,11 +73,6 @@ export default function Settings () {
|
||||
await fetchGeneral()
|
||||
}
|
||||
|
||||
const {
|
||||
hostname: externalControllerHost,
|
||||
port: externalControllerPort,
|
||||
} = apiInfo
|
||||
|
||||
const { allowLan, mode } = general
|
||||
|
||||
const startAtLogin = clashXData?.startAtLogin ?? false
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { usePreviousDistinct, useSyncedRef } from '@react-hookz/web/esm'
|
||||
import { usePreviousDistinct, useSyncedRef } from '@react-hookz/web'
|
||||
import { AxiosError } from 'axios'
|
||||
import produce from 'immer'
|
||||
import { atom, useAtom, useAtomValue, useSetAtom } from 'jotai'
|
||||
import { atomWithImmer } from 'jotai-immer'
|
||||
import { atomWithStorage } from 'jotai/utils'
|
||||
import { atomWithImmer } from 'jotai-immer'
|
||||
import { get } from 'lodash-es'
|
||||
import { ResultAsync } from 'neverthrow'
|
||||
import { useCallback, useEffect, useMemo, useRef } from 'react'
|
||||
|
Loading…
x
Reference in New Issue
Block a user