rustploy-gui 0.1.1

Rustploy — desktop client (glacier-ui) for the Rustploy PaaS daemon
--!strict
-- fmt.luau — fachada: reexporta os builders de views/scripts/fmt_*.luau sob um
-- único módulo, para os handlers seguirem fazendo `local fmt = require("fmt")`
-- + `fmt.foo(...)` sem precisar saber em qual submódulo cada builder mora.
-- Reimplementação Luau de `src/app/net/view.rs` (Rust pré-migração).

local Time = require("fmt/time")
local Util = require("fmt/util")
local Dashboard = require("fmt/dashboard")
local ServiceDetail = require("fmt/service_detail")
local Git = require("fmt/git")
local Jobs = require("fmt/jobs")
local Registry = require("fmt/registry")
local DockerCleanup = require("fmt/docker_cleanup")

local M = {}

-- Tempo / números (fmt/time.luau)
M.time_hms = Time.time_hms
M.date_dm_hm = Time.date_dm_hm
M.date_dm_hms = Time.date_dm_hms
M.fmt_secs = Time.fmt_secs
M.fmt_uptime = Time.fmt_uptime
M.fmt_bytes = Time.fmt_bytes
M.hm_join = Time.hm_join
M.hm_split = Time.hm_split
M.WEEKDAYS_JSON = Time.WEEKDAYS_JSON

-- Busca / codificação / estado (fmt/util.luau)
M.matches = Util.matches
M.ellipsis = Util.ellipsis
M.short_reason = Util.short_reason
M.enc_array = Util.enc_array
M.status_label_color = Util.status_label_color
M.pair_list = Util.pair_list

-- Dashboard: deployments/projects/services/docker/ingress/monitoring/engine
-- (fmt/dashboard.luau)
M.deployments = Dashboard.deployments
M.services = Dashboard.services
M.service_rows = Dashboard.service_rows
M.projects = Dashboard.projects
M.project_rows = Dashboard.project_rows
M.docker_rows = Dashboard.docker_rows
M.docker_containers = Dashboard.docker_containers
M.docker_images = Dashboard.docker_images
M.docker_volumes = Dashboard.docker_volumes
M.docker_networks = Dashboard.docker_networks
M.ingress = Dashboard.ingress
M.host_ports = Dashboard.host_ports
M.monitoring = Dashboard.monitoring
M.eng_active = Dashboard.eng_active
M.eng_detail = Dashboard.eng_detail
M.eng_detail_steps = Dashboard.eng_detail_steps
M.eng_queued = Dashboard.eng_queued
M.eng_recent = Dashboard.eng_recent

-- Service detail: source/healthcheck/env/logs/deployments/domains/connection
-- (fmt_service_detail.luau)
M.source_summary3 = ServiceDetail.source_summary3
M.healthcheck_summary = ServiceDetail.healthcheck_summary
M.env_json_with_comments = ServiceDetail.env_json_with_comments
M.secret_rows = ServiceDetail.secret_rows
M.env_dotenv_with_comments = ServiceDetail.env_dotenv_with_comments
M.logs_json = ServiceDetail.logs_json
M.build_logs_json = ServiceDetail.build_logs_json
M.join_log_lines = ServiceDetail.join_log_lines
M.deployments_detail = ServiceDetail.deployments_detail
M.domains_json = ServiceDetail.domains_json
M.safe_name = ServiceDetail.safe_name
M.internal_url = ServiceDetail.internal_url
M.compose_host = ServiceDetail.compose_host
M.external_url = ServiceDetail.external_url
M.containers = ServiceDetail.containers

-- Git providers/repos/branches (fmt/git.luau)
M.git_providers = Git.git_providers
M.git_repos = Git.git_repos
M.git_branches = Git.git_branches

-- Jobs one-shot (fmt/jobs.luau)
M.job_recurrence_label = Jobs.recurrence_label
M.job_summaries = Jobs.summaries
M.job_runs = Jobs.runs
M.pre_deploy_queue = Jobs.pre_deploy_queue
M.pre_deploy_available = Jobs.pre_deploy_available

-- Limpeza automática de Docker (fmt/docker_cleanup.luau)
M.docker_cleanup_resource_label = DockerCleanup.resource_label
M.docker_cleanup_last_run_summary = DockerCleanup.last_run_summary

-- Registry OCI embutido (fmt/registry.luau)
M.registry_repos = Registry.repos
M.registry_tags = Registry.tags
M.registry_tokens = Registry.tokens

return M