diff --git a/interfaces/LinkTypes.ts b/interfaces/LinkTypes.ts index 07932fb..9aabf4a 100644 --- a/interfaces/LinkTypes.ts +++ b/interfaces/LinkTypes.ts @@ -1,15 +1,42 @@ -export interface LinkList { - services: CustomLink[], +export interface EntryList { + services: Service[], games: CustomLink[] } export interface CustomLink { + name: string, + href: string, + desc: string, + ip: string, type: string, + location: string, + status: string, + docker_container_name: string +} + +export interface Service { name: string, href: string, desc: string, warn: string, - ip: string, - location: string, - status: string, - docker_container_name: string + type: ServiceType, + docker_container_name: string, + location: ServiceLocation, + status: ServiceStatus +} + +export enum ServiceStatus { + online = "Online", + offline = "Offline", + loading = "Loading", + error = "ERROR" +} + +export enum ServiceLocation { + brr7_4800u = "brr7-4800u", + other = "" +} + +export enum ServiceType { + docker = "docker", + app = "app" } \ No newline at end of file