Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
Extract exposed ports from docker inspect and show them as badges (hostPort:containerPort) in the environment health section. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
609 B
TypeScript
35 lines
609 B
TypeScript
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 PortMapping = {
|
|
hostPort: string
|
|
containerPort: string
|
|
protocol: string
|
|
}
|
|
|
|
type EnvironmentHealth = {
|
|
status: string
|
|
version: string
|
|
startedAt: string
|
|
cpuPercent: number
|
|
memoryUsage: string
|
|
memoryLimit: string
|
|
memoryPercent: number
|
|
ports: PortMapping[]
|
|
}
|