diff --git a/biome.json b/biome.json index dfb432ef8..9e8c379b2 100644 --- a/biome.json +++ b/biome.json @@ -17,7 +17,8 @@ "enabled": true, "indentStyle": "space", "indentWidth": 2, - "lineWidth": 80 + "lineWidth": 80, + "lineEnding": "auto" }, "javascript": { "formatter": { diff --git a/src/components/home/current-proxy-card.tsx b/src/components/home/current-proxy-card.tsx index a5090fe08..f6c0a441c 100644 --- a/src/components/home/current-proxy-card.tsx +++ b/src/components/home/current-proxy-card.tsx @@ -28,7 +28,7 @@ import { useTheme, } from '@mui/material' import { useLockFn } from 'ahooks' -import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react' +import { useCallback, useEffect, useMemo, useRef, useState } from 'react' import { useTranslation } from 'react-i18next' import { useNavigate } from 'react-router' import { delayGroup } from 'tauri-plugin-mihomo-api' @@ -380,7 +380,9 @@ export const CurrentProxyCard = () => { (g: { type?: string }) => g?.type === 'Selector' || g?.type === 'URLTest', ) - .forEach((selectableGroup: any) => registerGroup(selectableGroup)) + .forEach((selectableGroup: any) => { + registerGroup(selectableGroup) + }) const filteredGroups = Array.from(groupsMap.values()) @@ -582,7 +584,6 @@ export const CurrentProxyCard = () => { state.selection.group, state.selection.proxy, sortType, - setDelaySortRefresh, ]) useEffect(() => { @@ -883,7 +884,7 @@ export const CurrentProxyCard = () => { } > {isCoreDataPending ? ( - + ) : currentProxy ? ( {/* 代理节点信息显示 */} @@ -1049,7 +1050,11 @@ export const CurrentProxyCard = () => { ) : ( - + {t('home.components.currentProxy.labels.noActiveNode')}