main-site/interfaces/CardTypes.ts

43 lines
652 B
TypeScript
Raw Normal View History

2022-12-17 00:20:58 +00:00
export interface EntryList {
services: Service[],
games: Game[]
}
export interface Game {
name: string,
icon: string,
href: string,
desc: string,
ip: string,
status: Status,
}
export interface Service {
name: string,
icon: string,
href: string,
desc: string,
warn: string,
type: ServiceType,
docker_container_name: string,
location: ServiceLocation,
2022-12-17 00:20:58 +00:00
status: Status,
}
2022-12-17 00:20:58 +00:00
export enum Status {
online = "Online",
offline = "Offline",
loading = "Loading",
error = "ERROR"
}
export enum ServiceLocation {
brr7_4800u = "brr7-4800u",
other = ""
}
export enum ServiceType {
docker = "docker",
app = "app"
2022-12-17 00:20:58 +00:00
}