From 21893fe6123f52b882ef0af3f46c4d4fffacb485 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 9 Jul 2024 20:37:43 -0300 Subject: [PATCH] Beginnings of making frontend pretty, switched to pico css --- public/index.html | 51 ++++++++++++++++++++++++++++---------------- src/views/funkos.ecr | 36 +++++++++++++------------------ 2 files changed, 48 insertions(+), 39 deletions(-) diff --git a/public/index.html b/public/index.html index aaaad85..f32dba8 100644 --- a/public/index.html +++ b/public/index.html @@ -2,8 +2,8 @@ - - + + @@ -11,15 +11,20 @@

FaaSO Admin Interface

-
-

Your Funko Collection - -

+ + - +
@@ -31,23 +36,27 @@
Name
-
+ -
-

- Your Secrets - - -

+ + @@ -60,14 +69,20 @@ - New Secret +
+
+ New Secret +
- +
+ + +
- +
- + diff --git a/src/views/funkos.ecr b/src/views/funkos.ecr index 32d6af3..bf0ec67 100644 --- a/src/views/funkos.ecr +++ b/src/views/funkos.ecr @@ -1,39 +1,32 @@ <%- result.each do |f| -%> "> - - <%- end -%>
+ <%= f["name"] %> " src="bars.svg" class="htmx-indicator"> - - - - - - - - <%- f["containers"].as(Array(Docr::Types::ContainerSummary)).each do |c| -%> - - - - - - <%- end -%> - -

+ + + <%- end -%> -
IDCurrent?Actions
<%= c.@names[0].split("-")[-1] %> + + <%- f["containers"].as(Array(Docr::Types::ContainerSummary)).each do |c| -%> +
+
+ <%= c.@names[0].split("-")[-1] %> +
+
<%- if c.image_id == f["latest_image"] -%> 🟢 <%- else -%> 🟢 <%- end -%> -
+ +
-
+
<%- if f["name"] == "proxy" -%> <%- else -%> <%- if f["scale"].as(String).to_i > 0 -%> @@ -47,6 +40,7 @@ <%- end -%> <%- end -%> +