feat/ajout-de-fonctionnalites (#1)
All checks were successful
Auto Tag Develop / tag (push) Successful in 6s
All checks were successful
Auto Tag Develop / tag (push) Successful in 6s
Reviewed-on: #1 Co-authored-by: tristan <tristan@yuno.malio.fr> Co-committed-by: tristan <tristan@yuno.malio.fr>
This commit was merged in pull request #1.
This commit is contained in:
46
frontend/services/dto/application.ts
Normal file
46
frontend/services/dto/application.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
type LogFile = {
|
||||
id?: number
|
||||
label: string
|
||||
path: string
|
||||
}
|
||||
|
||||
type Environment = {
|
||||
id?: number
|
||||
'@id'?: string
|
||||
name: string
|
||||
containerName: string
|
||||
deployScriptPath: string
|
||||
maintenanceFilePath: string
|
||||
appUrl?: string
|
||||
logFiles: LogFile[]
|
||||
maintenance: boolean
|
||||
}
|
||||
|
||||
type EnvironmentWrite = {
|
||||
name: string
|
||||
containerName: string
|
||||
deployScriptPath: string
|
||||
maintenanceFilePath: string
|
||||
appUrl?: string
|
||||
logFiles: LogFile[]
|
||||
}
|
||||
|
||||
type Application = {
|
||||
id?: number
|
||||
'@id'?: string
|
||||
slug: string
|
||||
name: string
|
||||
registryImage: string
|
||||
description?: string
|
||||
giteaUrl?: string
|
||||
createdAt?: string
|
||||
environments?: Environment[]
|
||||
}
|
||||
|
||||
type ApplicationWrite = {
|
||||
name: string
|
||||
slug: string
|
||||
registryImage: string
|
||||
description?: string
|
||||
giteaUrl?: string
|
||||
}
|
||||
27
frontend/services/dto/dashboard.ts
Normal file
27
frontend/services/dto/dashboard.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
type DashboardEnvironment = {
|
||||
id: number
|
||||
name: string
|
||||
status: string
|
||||
version: string
|
||||
}
|
||||
|
||||
type DashboardApplication = {
|
||||
name: string
|
||||
slug: string
|
||||
giteaUrl?: string
|
||||
environments: DashboardEnvironment[]
|
||||
}
|
||||
|
||||
type DashboardResponse = {
|
||||
applications: DashboardApplication[]
|
||||
}
|
||||
|
||||
type EnvironmentHealth = {
|
||||
status: string
|
||||
version: string
|
||||
startedAt: string
|
||||
cpuPercent: number
|
||||
memoryUsage: string
|
||||
memoryLimit: string
|
||||
memoryPercent: number
|
||||
}
|
||||
9
frontend/services/dto/deploy.ts
Normal file
9
frontend/services/dto/deploy.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
type TagListResponse = {
|
||||
tags: string[]
|
||||
}
|
||||
|
||||
type DeployResult = {
|
||||
success: boolean
|
||||
output: string
|
||||
tag: string
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
export type ManagedApplication = {
|
||||
slug: string
|
||||
name: string
|
||||
maintenance: boolean
|
||||
}
|
||||
|
||||
export type ManagedApplicationCollection = {
|
||||
'hydra:member'?: ManagedApplication[]
|
||||
member?: ManagedApplication[]
|
||||
}
|
||||
Reference in New Issue
Block a user