move ui to using trunk

cargo install trunk
This commit is contained in:
Mikaël Cluseau
2026-01-22 17:54:31 +01:00
parent 2af7ff85c1
commit 3085dac359
15 changed files with 109 additions and 155 deletions

14
ui/js/Host.js Normal file
View File

@ -0,0 +1,14 @@
const Host = {
components: { Downloads },
props: [ 'host', 'token', 'state' ],
template: `
<p>Cluster: {{ host.Cluster }}<template v-if="host.Template"> ({{ host.Template }})</template></p>
<p>IPs:
<code v-for="ip in host.IPs">
{{ ip }}{{" "}}
</code>
</p>
<h3>Downloads</h3>
<Downloads :token="token" :state="state" kind="host" :name="host.Name" />
`
}