Nth redesign of the funkos dashboard

This commit is contained in:
2024-07-04 17:48:22 -03:00
parent ead5cfdcc6
commit 6698bbd67a
5 changed files with 55 additions and 18 deletions

View File

@ -79,14 +79,14 @@ module Funko
get "/funkos/" do |env|
funkos = Funko.from_docker
funkos.sort! { |a, b| a.name <=> b.name }
result = [] of Hash(String, String)
result = [] of Hash(String, String | Array(Docr::Types::ContainerSummary))
funkos.each do |funko|
result << {
"name" => funko.name,
"scale" => funko.scale.to_s,
"containers" => funko.containers.size.to_s,
"images" => funko.images.size.to_s,
"name" => funko.name,
"scale" => funko.scale.to_s,
"containers" => funko.containers,
"latest_image" => funko.latest_image,
}
end