mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 06:48:32 +08:00
chore: delete clash core, update CI, change profile name, change URL test link
This commit is contained in:
1 parent
b767caa704
commit
01be65a624
31 files changed
+1327
-974
No files matched your search
+1
-1
@@ -66,7 +66,7 @@ export const getRules = async () => {
|
||||
export const getProxyDelay = async (name: string, url?: string) => {
|
||||
const params = {
|
||||
timeout: 10000,
|
||||
url: url || "http://www.gstatic.com/generate_204",
|
||||
url: url || "http://1.1.1.1",
|
||||
};
|
||||
const instance = await getAxios();
|
||||
const result = await instance.get(
|
||||
|
||||
@@ -116,10 +116,10 @@ class DelayManager {
|
||||
}
|
||||
|
||||
formatDelayColor(delay: number) {
|
||||
if (delay <= 0) return "text.secondary";
|
||||
if (delay >= 10000) return "error.main";
|
||||
/*if (delay <= 0) return "text.secondary";
|
||||
if (delay > 500) return "warning.main";
|
||||
if (delay > 100) return "text.secondary";
|
||||
if (delay > 100) return "text.secondary";*/
|
||||
return "success.main";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user