local-server/html/ui/js/Host.js

23 lines
603 B
JavaScript
Raw Normal View History

2023-02-07 20:29:19 +00:00
import Downloads from './Downloads.js';
export default {
components: { Downloads },
props: [ 'host', 'token', 'state' ],
template: `
<div class="host">
<div class="title">Host {{ host.Name }}</div>
<section>
2024-04-15 13:32:43 +00:00
<div><small>Cluster: {{ host.Cluster }}<template v-if="host.Template"> ({{ host.Template }})</template></small></div>
2023-02-07 20:29:19 +00:00
<template v-for="ip in host.IPs">
2024-04-19 13:16:31 +00:00
<code>{{ ip }}</code>{{" "}}
2023-02-07 20:29:19 +00:00
</template>
</section>
<div class="section">Downloads</div>
<section>
<Downloads :token="token" :state="state" kind="host" :name="host.Name" />
</section>
</div>
`
}