// Telas globais da sidebar, cada uma numa seção por valor de view: Monitoring,
// Ingress, Deploy Engine, Docker (e Registry), Settings, Schedules e Suporte.
component {
resources {
link(rel = import, href = "home/monitoring.gvb", as = HomeMonitoring)
link(rel = import, href = "home/ingress.gvb", as = HomeIngress)
link(rel = import, href = "home/deploy_engine.gvb", as = HomeDeployEngine)
link(rel = import, href = "home/docker.gvb", as = HomeDocker)
link(rel = import, href = "home/settings.gvb", as = HomeSettings)
link(rel = import, href = "home/schedules.gvb", as = HomeSchedules)
style """
.col_icon { width: 28; }
.content_center { width: fill; height: fill; align-x: center; align-y: center; }
/* Botão "Remover" compacto por-linha nas sub-abas Docker. */
.dk_rm { color: var(--danger); padding: 5 12; border-radius: 3; }
.col_act { width: 120; align-x: end; text-align: end; }
.col_act_2 { width: 90; align-x: end; text-align: end; spacing: 8; }
.col_act_4 { width: 170; align-x: end; text-align: end; spacing: 8; }
/* Mesma linha de job acima, +1 controle (editar). */
.col_act_5 { width: 210; align-x: end; text-align: end; spacing: 8; }
"""
}
column(class = content) {
// ── Monitoring ─────────────────────────────────────────────────────
if @view == "monitoring" {
HomeMonitoring
}
// ── Ingress ────────────────────────────────────────────────────────
if @view == "ingress" {
HomeIngress
}
// ── Deploy Engine ──────────────────────────────────────────────────
if @view == "deploy_engine" {
HomeDeployEngine
}
// ── Docker ─────────────────────────────────────────────────────────
if @view == "docker" {
HomeDocker
}
// ── Settings: sub-abas Web Server | Git ────────────────────────────
if @view == "settings" {
HomeSettings
}
// ── Schedules: jobs one-shot via docker-compose, de todos os projetos ──
if @view == "schedules" {
HomeSchedules
}
column(class = content_center, if = @view, equals = support) {
text(class = title, content = "Support")
text(class = subtitle, content = "github.com/antoniofernandodj/rustploy")
}
}
}