From d975836adf48d857a93214e844b58088f73ffc5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Cluseau?= Date: Wed, 17 Jun 2026 18:35:49 +0200 Subject: [PATCH] ui: remove cluster downloads (no use anymore) --- ...uster-bd053ffb62d5a804.js => Cluster-8864c22a73e68a3e.js} | 5 +---- ...ads-29497c61f1fe9bf0.js => Downloads-25b2e1f4aeaaff61.js} | 5 ++--- html/ui/index.html | 4 ++-- ui/js/Cluster.js | 5 +---- ui/js/Downloads.js | 5 ++--- 5 files changed, 8 insertions(+), 16 deletions(-) rename html/ui/{Cluster-bd053ffb62d5a804.js => Cluster-8864c22a73e68a3e.js} (76%) rename html/ui/{Downloads-29497c61f1fe9bf0.js => Downloads-25b2e1f4aeaaff61.js} (96%) diff --git a/html/ui/Cluster-bd053ffb62d5a804.js b/html/ui/Cluster-8864c22a73e68a3e.js similarity index 76% rename from html/ui/Cluster-bd053ffb62d5a804.js rename to html/ui/Cluster-8864c22a73e68a3e.js index aa3badf..943cfe9 100644 --- a/html/ui/Cluster-bd053ffb62d5a804.js +++ b/html/ui/Cluster-8864c22a73e68a3e.js @@ -1,5 +1,5 @@ const Cluster = { - components: { ClusterAccess, ClusterCAs, Downloads, GetCopy }, + components: { ClusterAccess, ClusterCAs, GetCopy }, props: [ 'cluster', 'token', 'state' ], template: ` @@ -14,9 +14,6 @@ const Cluster = { -

Downloads

- - ` } diff --git a/html/ui/Downloads-29497c61f1fe9bf0.js b/html/ui/Downloads-25b2e1f4aeaaff61.js similarity index 96% rename from html/ui/Downloads-29497c61f1fe9bf0.js rename to html/ui/Downloads-25b2e1f4aeaaff61.js index 77798e3..09b94ce 100644 --- a/html/ui/Downloads-29497c61f1fe9bf0.js +++ b/html/ui/Downloads-25b2e1f4aeaaff61.js @@ -5,8 +5,7 @@ const Downloads = { }, computed: { availableAssets() { - return { - cluster: ['addons'], + return ({ host: [ "kernel", "initrd", @@ -23,7 +22,7 @@ const Downloads = { "config.json", "ipxe", ], - }[this.kind] + }[this.kind] || []) }, downloads() { return Object.entries(this.state.Downloads) diff --git a/html/ui/index.html b/html/ui/index.html index 9fa80f5..a4c2994 100644 --- a/html/ui/index.html +++ b/html/ui/index.html @@ -11,11 +11,11 @@ - + - + diff --git a/ui/js/Cluster.js b/ui/js/Cluster.js index aa3badf..943cfe9 100644 --- a/ui/js/Cluster.js +++ b/ui/js/Cluster.js @@ -1,5 +1,5 @@ const Cluster = { - components: { ClusterAccess, ClusterCAs, Downloads, GetCopy }, + components: { ClusterAccess, ClusterCAs, GetCopy }, props: [ 'cluster', 'token', 'state' ], template: ` @@ -14,9 +14,6 @@ const Cluster = { -

Downloads

- - ` } diff --git a/ui/js/Downloads.js b/ui/js/Downloads.js index 77798e3..09b94ce 100644 --- a/ui/js/Downloads.js +++ b/ui/js/Downloads.js @@ -5,8 +5,7 @@ const Downloads = { }, computed: { availableAssets() { - return { - cluster: ['addons'], + return ({ host: [ "kernel", "initrd", @@ -23,7 +22,7 @@ const Downloads = { "config.json", "ipxe", ], - }[this.kind] + }[this.kind] || []) }, downloads() { return Object.entries(this.state.Downloads)