Progress on #18
This commit is contained in:
parent
a9130c1af8
commit
6a2dc0d4d8
7 changed files with 167 additions and 109 deletions
interfaces
|
@ -1,3 +1,16 @@
|
|||
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,
|
||||
|
@ -7,10 +20,10 @@ export interface Service {
|
|||
type: ServiceType,
|
||||
docker_container_name: string,
|
||||
location: ServiceLocation,
|
||||
status: ServiceStatus
|
||||
status: Status,
|
||||
}
|
||||
|
||||
export enum ServiceStatus {
|
||||
export enum Status {
|
||||
online = "Online",
|
||||
offline = "Offline",
|
||||
loading = "Loading",
|
||||
|
@ -25,4 +38,5 @@ export enum ServiceLocation {
|
|||
export enum ServiceType {
|
||||
docker = "docker",
|
||||
app = "app"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
import { Service } from "./Services"
|
||||
|
||||
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
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue