main-site/interfaces/CardTypes.ts
Neshura 4880bb1df9
Added additional optional entries to card type
Now includes 1-liner description, optional warning, optional external link and optional external name
2023-01-06 00:34:00 +01:00

46 lines
711 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,
desc1?: string,
desc: string,
warn?: string,
extLink?: string,
extName?: 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",
other = ""
}
export enum ServiceType {
docker = "docker",
app = "app"
}