feat: Clash配置、Merge配置提供JSON Schema语法支持、[连接]界面调整 (#887)

This commit is contained in:
dongchengjie
2024-04-17 21:19:37 +08:00
committed by GitHub
parent e5b82dca4d
commit 0686781359
10 changed files with 67 additions and 20 deletions

View File

@@ -38,7 +38,12 @@ const ConnectionsPage = () => {
const isTableLayout = setting.layout === "table";
const orderOpts: Record<string, OrderFunc> = {
Default: (list) => list,
Default: (list) =>
list.sort(
(a, b) =>
new Date(b.start || "0").getTime()! -
new Date(a.start || "0").getTime()!
),
"Upload Speed": (list) => list.sort((a, b) => b.curUpload! - a.curUpload!),
"Download Speed": (list) =>
list.sort((a, b) => b.curDownload! - a.curDownload!),