Expanded Interfaces
Services got expanded, now uses Enums where sensible
This commit is contained in:
parent
13620efcd5
commit
39aaea05e5
1 changed files with 33 additions and 6 deletions
|
@ -1,15 +1,42 @@
|
||||||
export interface LinkList {
|
export interface EntryList {
|
||||||
services: CustomLink[],
|
services: Service[],
|
||||||
games: CustomLink[]
|
games: CustomLink[]
|
||||||
}
|
}
|
||||||
export interface CustomLink {
|
export interface CustomLink {
|
||||||
|
name: string,
|
||||||
|
href: string,
|
||||||
|
desc: string,
|
||||||
|
ip: string,
|
||||||
type: string,
|
type: string,
|
||||||
|
location: string,
|
||||||
|
status: string,
|
||||||
|
docker_container_name: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Service {
|
||||||
name: string,
|
name: string,
|
||||||
href: string,
|
href: string,
|
||||||
desc: string,
|
desc: string,
|
||||||
warn: string,
|
warn: string,
|
||||||
ip: string,
|
type: ServiceType,
|
||||||
location: string,
|
docker_container_name: string,
|
||||||
status: string,
|
location: ServiceLocation,
|
||||||
docker_container_name: string
|
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"
|
||||||
}
|
}
|
Loading…
Reference in a new issue