feat: sort type add name uptime system

This commit is contained in:
hamster1963
2024-12-16 22:50:14 +08:00
parent e988be502e
commit 27322c9d23
2 changed files with 34 additions and 4 deletions
+15 -1
View File
@@ -1,9 +1,23 @@
import { createContext } from "react"
export type SortType = "default" | "cpu" | "mem" | "stg" | "up" | "down" | "up total" | "down total"
export type SortType =
| "default"
| "name"
| "uptime"
| "system"
| "cpu"
| "mem"
| "stg"
| "up"
| "down"
| "up total"
| "down total"
export const SORT_TYPES: SortType[] = [
"default",
"name",
"uptime",
"system",
"cpu",
"mem",
"stg",