rustploy-gui 0.1.1

Rustploy — desktop client (glacier-ui) for the Rustploy PaaS daemon
// Aba "Fila" do Deploy Engine; importada por deploy_engine.gvb.
component {
  resources {
    component(name = FilaVazia) {
      text(class = empty_state, content = "Nenhum deploy na fila.")
    }
  }

  column(class = section_fill) {
    row(class = section_head) {
      text(class = section_title, content = "NA FILA (@eng_queued_count)")

      button(
        if = @eng_paused,
        equals = true,
        class = copy_btn,
        on_click = queue_toggle_pause,
        text = "Retomar fila",
      )

      button(
        if = @eng_paused,
        not_equals = true,
        class = copy_btn,
        on_click = queue_toggle_pause,
        text = "Pausar fila",
      )
    }

    column(class = section_body) {
      text(
        if = @eng_paused,
        equals = true,
        class = banner_warn,
        content = "Fila pausada — deploys esperam até você retomar.",
      )
    }

    scrollable(direction = vertical, class = section_scroll) {
      column(class = table_body) {
        template(
          :for-each = eng_queued,
          foreach_fallback = FilaVazia,
          var = q,
          on_reorder = queue_reorder,
          reorder_key = deployment_id,
        ) {
          row(class = trow) {
            text(class = env_drag_handle, drag_handle = true, content = "⋮")
            text(class = "td_key col_svc", content = "@q.pos. @q.service")
            text(class = "td col_start", content = "@q.project")

            button(
              class = copy_btn,
              on_click = queue_promote:@q.deployment_id,
              text = "↑ topo",
            )

            button(
              class = env_del,
              on_click = queue_cancel:@q.deployment_id,
              text = "✕",
            )
          }

          hr
        }
      }
    }
  }
}