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
e4da18d01a
commit
c300880f91
@ -24,6 +24,7 @@ settings:
|
|||||||
rules:
|
rules:
|
||||||
'@typescript-eslint/indent': ['error', 4, { 'SwitchCase': 0 }]
|
'@typescript-eslint/indent': ['error', 4, { 'SwitchCase': 0 }]
|
||||||
'indent': 'off'
|
'indent': 'off'
|
||||||
|
'@typescript-eslint/explicit-module-boundary-types': 'off'
|
||||||
'@typescript-eslint/explicit-function-return-type': 'off'
|
'@typescript-eslint/explicit-function-return-type': 'off'
|
||||||
'@typescript-eslint/member-delimiter-style': ['warn', { multiline: { delimiter: 'none' }, singleline: { delimiter: 'comma' } }]
|
'@typescript-eslint/member-delimiter-style': ['warn', { multiline: { delimiter: 'none' }, singleline: { delimiter: 'comma' } }]
|
||||||
'@typescript-eslint/no-explicit-any': 'off'
|
'@typescript-eslint/no-explicit-any': 'off'
|
||||||
|
1683
package-lock.json
generated
1683
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -28,10 +28,10 @@
|
|||||||
"contributors:generate": "all-contributors generate"
|
"contributors:generate": "all-contributors generate"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.8.4",
|
"@babel/cli": "^7.10.1",
|
||||||
"@babel/core": "^7.9.6",
|
"@babel/core": "^7.10.1",
|
||||||
"@babel/preset-env": "^7.9.6",
|
"@babel/preset-env": "^7.10.1",
|
||||||
"@babel/preset-react": "^7.9.4",
|
"@babel/preset-react": "^7.10.1",
|
||||||
"@hot-loader/react-dom": "^16.13.0",
|
"@hot-loader/react-dom": "^16.13.0",
|
||||||
"@types/classnames": "^2.2.10",
|
"@types/classnames": "^2.2.10",
|
||||||
"@types/lodash-es": "^4.17.3",
|
"@types/lodash-es": "^4.17.3",
|
||||||
@ -43,14 +43,14 @@
|
|||||||
"@types/react-virtualized-auto-sizer": "^1.0.0",
|
"@types/react-virtualized-auto-sizer": "^1.0.0",
|
||||||
"@types/react-window": "^1.8.2",
|
"@types/react-window": "^1.8.2",
|
||||||
"@types/recoil": "0.0.0",
|
"@types/recoil": "0.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^2.29.0",
|
"@typescript-eslint/eslint-plugin": "^3.0.2",
|
||||||
"@typescript-eslint/parser": "^2.29.0",
|
"@typescript-eslint/parser": "^3.0.2",
|
||||||
"autoprefixer": "^9.8.0",
|
"autoprefixer": "^9.8.0",
|
||||||
"awesome-typescript-loader": "^5.2.1",
|
"awesome-typescript-loader": "^5.2.1",
|
||||||
"babel-loader": "^8.1.0",
|
"babel-loader": "^8.1.0",
|
||||||
"babel-preset-minify": "^0.5.1",
|
"babel-preset-minify": "^0.5.1",
|
||||||
"css-loader": "^3.5.3",
|
"css-loader": "^3.5.3",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^7.1.0",
|
||||||
"eslint-config-standard": "^14.1.1",
|
"eslint-config-standard": "^14.1.1",
|
||||||
"eslint-loader": "^4.0.2",
|
"eslint-loader": "^4.0.2",
|
||||||
"eslint-plugin-import": "^2.20.2",
|
"eslint-plugin-import": "^2.20.2",
|
||||||
@ -70,8 +70,8 @@
|
|||||||
"style-loader": "^1.2.1",
|
"style-loader": "^1.2.1",
|
||||||
"stylelint": "^13.5.0",
|
"stylelint": "^13.5.0",
|
||||||
"stylelint-config-standard": "^20.0.0",
|
"stylelint-config-standard": "^20.0.0",
|
||||||
"stylelint-webpack-plugin": "^1.2.3",
|
"stylelint-webpack-plugin": "^2.0.0",
|
||||||
"terser-webpack-plugin": "^2.3.5",
|
"terser-webpack-plugin": "^3.0.2",
|
||||||
"typescript": "^3.9.3",
|
"typescript": "^3.9.3",
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11",
|
"webpack-cli": "^3.3.11",
|
||||||
|
@ -154,7 +154,7 @@ export default function Connections () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
;(async function () {
|
(async function () {
|
||||||
const streamReader = await API.getConnectionStreamReader()
|
const streamReader = await API.getConnectionStreamReader()
|
||||||
streamReader.subscribe('data', handleConnection)
|
streamReader.subscribe('data', handleConnection)
|
||||||
}())
|
}())
|
||||||
|
@ -27,7 +27,7 @@ export default function Logs () {
|
|||||||
setLogs(logsRef.current)
|
setLogs(logsRef.current)
|
||||||
}
|
}
|
||||||
|
|
||||||
;(async function () {
|
(async function () {
|
||||||
const streamReader = await getLogsStreamReader()
|
const streamReader = await getLogsStreamReader()
|
||||||
logsRef.current = streamReader.buffer()
|
logsRef.current = streamReader.buffer()
|
||||||
setLogs(logsRef.current)
|
setLogs(logsRef.current)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
/* eslint-disable @typescript-eslint/camelcase */
|
|
||||||
import { getLocalStorageItem, setLocalStorageItem } from '@lib/helper'
|
import { getLocalStorageItem, setLocalStorageItem } from '@lib/helper'
|
||||||
|
|
||||||
import en_US from './en_US'
|
import en_US from './en_US'
|
||||||
|
@ -4,7 +4,7 @@ import { useRef, useEffect, useState, useMemo } from 'react'
|
|||||||
|
|
||||||
import { noop } from '@lib/helper'
|
import { noop } from '@lib/helper'
|
||||||
|
|
||||||
export function useObject<T extends object> (initialValue: T) {
|
export function useObject<T extends Record<string, unknown>> (initialValue: T) {
|
||||||
const [copy, rawSet] = useImmer(initialValue)
|
const [copy, rawSet] = useImmer(initialValue)
|
||||||
|
|
||||||
function set<K extends keyof Draft<T>> (key: K, value: Draft<T>[K]): void
|
function set<K extends keyof Draft<T>> (key: K, value: Draft<T>[K]): void
|
||||||
|
@ -46,7 +46,7 @@ declare global {
|
|||||||
/**
|
/**
|
||||||
* Global jsbridge init callback
|
* Global jsbridge init callback
|
||||||
*/
|
*/
|
||||||
WVJBCallbacks?: Function[]
|
WVJBCallbacks?: JsBridgeCallback[]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user