23 lines
731 B
JavaScript
23 lines
731 B
JavaScript
|
|
const Cluster = {
|
||
|
|
components: { ClusterAccess, ClusterCAs, Downloads, GetCopy },
|
||
|
|
props: [ 'cluster', 'token', 'state' ],
|
||
|
|
template: `
|
||
|
|
<ClusterAccess :cluster="cluster" :token="token" :state="state" />
|
||
|
|
|
||
|
|
<h3>Tokens</h3>
|
||
|
|
<section class="links">
|
||
|
|
<GetCopy v-for="n in cluster.Tokens" :token="token" :name="n" :href="'/clusters/'+cluster.Name+'/tokens/'+n" />
|
||
|
|
</section>
|
||
|
|
|
||
|
|
<h3>Passwords</h3>
|
||
|
|
<section class="links">
|
||
|
|
<GetCopy v-for="n in cluster.Passwords" :token="token" :name="n" :href="'/clusters/'+cluster.Name+'/passwords/'+n" />
|
||
|
|
</section>
|
||
|
|
|
||
|
|
<h3>Downloads</h3>
|
||
|
|
<Downloads :token="token" :state="state" kind="cluster" :name="cluster.Name" />
|
||
|
|
|
||
|
|
<ClusterCAs :cluster="cluster" :token="token" />
|
||
|
|
`
|
||
|
|
}
|