ui: remove cluster downloads (no use anymore)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
const Cluster = {
|
const Cluster = {
|
||||||
components: { ClusterAccess, ClusterCAs, Downloads, GetCopy },
|
components: { ClusterAccess, ClusterCAs, GetCopy },
|
||||||
props: [ 'cluster', 'token', 'state' ],
|
props: [ 'cluster', 'token', 'state' ],
|
||||||
template: `
|
template: `
|
||||||
<ClusterAccess :cluster="cluster" :token="token" :state="state" />
|
<ClusterAccess :cluster="cluster" :token="token" :state="state" />
|
||||||
@@ -14,9 +14,6 @@ const Cluster = {
|
|||||||
<GetCopy v-for="n in cluster.Passwords" :token="token" :name="n" :href="'/clusters/'+cluster.Name+'/passwords/'+n" />
|
<GetCopy v-for="n in cluster.Passwords" :token="token" :name="n" :href="'/clusters/'+cluster.Name+'/passwords/'+n" />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<h3>Downloads</h3>
|
|
||||||
<Downloads :token="token" :state="state" kind="cluster" :name="cluster.Name" />
|
|
||||||
|
|
||||||
<ClusterCAs :cluster="cluster" :token="token" />
|
<ClusterCAs :cluster="cluster" :token="token" />
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
@@ -5,8 +5,7 @@ const Downloads = {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
availableAssets() {
|
availableAssets() {
|
||||||
return {
|
return ({
|
||||||
cluster: ['addons'],
|
|
||||||
host: [
|
host: [
|
||||||
"kernel",
|
"kernel",
|
||||||
"initrd",
|
"initrd",
|
||||||
@@ -23,7 +22,7 @@ const Downloads = {
|
|||||||
"config.json",
|
"config.json",
|
||||||
"ipxe",
|
"ipxe",
|
||||||
],
|
],
|
||||||
}[this.kind]
|
}[this.kind] || [])
|
||||||
},
|
},
|
||||||
downloads() {
|
downloads() {
|
||||||
return Object.entries(this.state.Downloads)
|
return Object.entries(this.state.Downloads)
|
||||||
+2
-2
@@ -11,11 +11,11 @@
|
|||||||
<style>@import url('/ui/style.css');@import url('/ui/app.css');</style>
|
<style>@import url('/ui/style.css');@import url('/ui/app.css');</style>
|
||||||
<script src="/ui/jsonpatch.min-942279a1c4209cc2.js" integrity="sha384-GcPrkRS12jtrElEkbJcrZ8asvvb9s3mc+CUq9UW/8bL4L0bpkmh9M+oFnWN6qLq2"></script>
|
<script src="/ui/jsonpatch.min-942279a1c4209cc2.js" integrity="sha384-GcPrkRS12jtrElEkbJcrZ8asvvb9s3mc+CUq9UW/8bL4L0bpkmh9M+oFnWN6qLq2"></script>
|
||||||
<script src="/ui/app-e7fb26679b9aa0f2.js" defer integrity="sha384-4oRQalb7IIBcqQzfDkeCj53qYOP6dLsTwqcjnm3EiBa92oNDD3chUw38W2gEC+3p" type="module"></script>
|
<script src="/ui/app-e7fb26679b9aa0f2.js" defer integrity="sha384-4oRQalb7IIBcqQzfDkeCj53qYOP6dLsTwqcjnm3EiBa92oNDD3chUw38W2gEC+3p" type="module"></script>
|
||||||
<script src="/ui/Downloads-29497c61f1fe9bf0.js" integrity="sha384-xwn49JflUBaZlQCHCn55Q9qSGqsw01Job+TXk53HLhvNhKAALN18+gNCdF0bUJW0"></script>
|
<script src="/ui/Downloads-25b2e1f4aeaaff61.js" integrity="sha384-MP2lefUuPRss5MQ11H5SzGp8Gmy+hPAdeEC79h4c/SDAp4qFGUjhxBtQL8rnP38U"></script>
|
||||||
<script src="/ui/GetCopy-7e3c9678f9647d40.js" integrity="sha384-LzxUXylxE/t25HyTch8y2qvKcehvP2nqCo37swIBGEKZZUzHVJVQrS5UJDWNskTA"></script>
|
<script src="/ui/GetCopy-7e3c9678f9647d40.js" integrity="sha384-LzxUXylxE/t25HyTch8y2qvKcehvP2nqCo37swIBGEKZZUzHVJVQrS5UJDWNskTA"></script>
|
||||||
<script src="/ui/ClusterAccess-fede0ff535b7cf.js" integrity="sha384-Np8ntVwZ/f0nRYPByzkvya8zF+PQHEDtThOGTtlwyWybtxn6RqYsw6R++bSlv37I"></script>
|
<script src="/ui/ClusterAccess-fede0ff535b7cf.js" integrity="sha384-Np8ntVwZ/f0nRYPByzkvya8zF+PQHEDtThOGTtlwyWybtxn6RqYsw6R++bSlv37I"></script>
|
||||||
<script src="/ui/ClusterCAs-d6eba07c367b6306.js" integrity="sha384-2zV1VzNHw7hUS6SNIqDzIczma3Ixp3G9u6BJI4MtGHK4rNYWeCOOu9kttsZzkPYC"></script>
|
<script src="/ui/ClusterCAs-d6eba07c367b6306.js" integrity="sha384-2zV1VzNHw7hUS6SNIqDzIczma3Ixp3G9u6BJI4MtGHK4rNYWeCOOu9kttsZzkPYC"></script>
|
||||||
<script src="/ui/Cluster-bd053ffb62d5a804.js" integrity="sha384-K9E9LLPBm9Vxs7e5yxN3mUHSb7jhMdeZDblOKHjssUvXtTFzp+B5C0NfmQ/zB/mP"></script>
|
<script src="/ui/Cluster-8864c22a73e68a3e.js" integrity="sha384-MCRzMDZhqeM2hXm8fJqnxw1IINE6eTGex3PvT5KnjVPdKXyINEcbK6Y/sfjY8Sqq"></script>
|
||||||
<script src="/ui/Host-61916516a854adff.js" integrity="sha384-/wh3KrC0sb4MT7ekO2U84rswxI42WSH/0jB4dbDaaGaGhX60xTEZHFsdQAf7UgTG"></script>
|
<script src="/ui/Host-61916516a854adff.js" integrity="sha384-/wh3KrC0sb4MT7ekO2U84rswxI42WSH/0jB4dbDaaGaGhX60xTEZHFsdQAf7UgTG"></script>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|||||||
+1
-4
@@ -1,5 +1,5 @@
|
|||||||
const Cluster = {
|
const Cluster = {
|
||||||
components: { ClusterAccess, ClusterCAs, Downloads, GetCopy },
|
components: { ClusterAccess, ClusterCAs, GetCopy },
|
||||||
props: [ 'cluster', 'token', 'state' ],
|
props: [ 'cluster', 'token', 'state' ],
|
||||||
template: `
|
template: `
|
||||||
<ClusterAccess :cluster="cluster" :token="token" :state="state" />
|
<ClusterAccess :cluster="cluster" :token="token" :state="state" />
|
||||||
@@ -14,9 +14,6 @@ const Cluster = {
|
|||||||
<GetCopy v-for="n in cluster.Passwords" :token="token" :name="n" :href="'/clusters/'+cluster.Name+'/passwords/'+n" />
|
<GetCopy v-for="n in cluster.Passwords" :token="token" :name="n" :href="'/clusters/'+cluster.Name+'/passwords/'+n" />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<h3>Downloads</h3>
|
|
||||||
<Downloads :token="token" :state="state" kind="cluster" :name="cluster.Name" />
|
|
||||||
|
|
||||||
<ClusterCAs :cluster="cluster" :token="token" />
|
<ClusterCAs :cluster="cluster" :token="token" />
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-3
@@ -5,8 +5,7 @@ const Downloads = {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
availableAssets() {
|
availableAssets() {
|
||||||
return {
|
return ({
|
||||||
cluster: ['addons'],
|
|
||||||
host: [
|
host: [
|
||||||
"kernel",
|
"kernel",
|
||||||
"initrd",
|
"initrd",
|
||||||
@@ -23,7 +22,7 @@ const Downloads = {
|
|||||||
"config.json",
|
"config.json",
|
||||||
"ipxe",
|
"ipxe",
|
||||||
],
|
],
|
||||||
}[this.kind]
|
}[this.kind] || [])
|
||||||
},
|
},
|
||||||
downloads() {
|
downloads() {
|
||||||
return Object.entries(this.state.Downloads)
|
return Object.entries(this.state.Downloads)
|
||||||
|
|||||||
Reference in New Issue
Block a user