main-site/interfaces/CardTypes.ts
Neshura a1bf08ddce
Switched over to using Docker API
ToDo: Change location to actual location
2023-03-14 22:13:49 +01:00

44 lines
675 B
TypeScript

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,
status: Status,
}
export enum Status {
online = "Online",
offline = "Offline",
loading = "Loading",
error = "ERROR"
}
export enum ServiceLocation {
brr7_4800u = "brr7-4800u",
tower_0 = "tower-0",
other = ""
}
export enum ServiceType {
docker = "docker",
app = "app"
}