mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 08:45:41 +08:00
chore: adjust type
This commit is contained in:
@@ -13,7 +13,7 @@ import ProxyItem from "./proxy-item";
|
||||
interface Props {
|
||||
groupName: string;
|
||||
curProxy?: string;
|
||||
proxies: ApiType.ProxyItem[];
|
||||
proxies: IProxyItem[];
|
||||
}
|
||||
|
||||
// this component will be used for DIRECT/GLOBAL
|
||||
|
||||
@@ -30,7 +30,7 @@ import ProxyHead from "./proxy-head";
|
||||
import ProxyItem from "./proxy-item";
|
||||
|
||||
interface Props {
|
||||
group: ApiType.ProxyGroupItem;
|
||||
group: IProxyGroupItem;
|
||||
}
|
||||
|
||||
const ProxyGroup = ({ group }: Props) => {
|
||||
|
||||
@@ -17,7 +17,7 @@ import BaseLoading from "../base/base-loading";
|
||||
|
||||
interface Props {
|
||||
groupName: string;
|
||||
proxy: ApiType.ProxyItem;
|
||||
proxy: IProxyItem;
|
||||
selected: boolean;
|
||||
showType?: boolean;
|
||||
sx?: SxProps<Theme>;
|
||||
|
||||
@@ -5,7 +5,7 @@ import delayManager from "@/services/delay";
|
||||
export type ProxySortType = 0 | 1 | 2;
|
||||
|
||||
export default function useFilterSort(
|
||||
proxies: ApiType.ProxyItem[],
|
||||
proxies: IProxyItem[],
|
||||
groupName: string,
|
||||
filterText: string,
|
||||
sortType: ProxySortType
|
||||
@@ -47,7 +47,7 @@ const regex2 = /type=(.*)/i;
|
||||
* according to the regular conditions
|
||||
*/
|
||||
function filterProxies(
|
||||
proxies: ApiType.ProxyItem[],
|
||||
proxies: IProxyItem[],
|
||||
groupName: string,
|
||||
filterText: string
|
||||
) {
|
||||
@@ -87,7 +87,7 @@ function filterProxies(
|
||||
* sort the proxy
|
||||
*/
|
||||
function sortProxies(
|
||||
proxies: ApiType.ProxyItem[],
|
||||
proxies: IProxyItem[],
|
||||
groupName: string,
|
||||
sortType: ProxySortType
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user