Skip to content

Commit 24233d9

Browse files
committed
feat(xo-6/host): frontend integration
1 parent daf18ae commit 24233d9

22 files changed

+612
-111
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<template>
2+
<UiCard class="vts-quick-info-card">
3+
<UiCardTitle>{{ $t('quick-info') }}</UiCardTitle>
4+
<VtsLoadingHero :disabled="!loading" type="card">
5+
<div class="info-container">
6+
<slot />
7+
</div>
8+
</VtsLoadingHero>
9+
</UiCard>
10+
</template>
11+
12+
<script lang="ts" setup>
13+
import VtsLoadingHero from '@core/components/state-hero/VtsLoadingHero.vue'
14+
import UiCard from '@core/components/ui/card/UiCard.vue'
15+
import UiCardTitle from '@core/components/ui/card-title/UiCardTitle.vue'
16+
17+
defineProps<{
18+
loading: boolean
19+
}>()
20+
</script>
21+
22+
<style lang="postcss" scoped>
23+
.vts-quick-info-card {
24+
.info-container {
25+
display: grid;
26+
grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
27+
gap: 2.4rem;
28+
}
29+
}
30+
</style>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<template>
2+
<div class="vts-quick-info-column">
3+
<slot />
4+
</div>
5+
</template>
6+
7+
<style lang="postcss" scoped>
8+
.vts-quick-info-column {
9+
display: flex;
10+
flex-direction: column;
11+
gap: 0.8rem;
12+
}
13+
</style>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<template>
2+
<div class="vts-quick-info-row">
3+
<span class="typo-body-bold">
4+
<slot name="label">
5+
{{ label }}
6+
</slot>
7+
</span>
8+
<span class="typo-body-regular value">
9+
<slot name="value">
10+
{{ value }}
11+
</slot>
12+
</span>
13+
</div>
14+
</template>
15+
16+
<script lang="ts" setup>
17+
defineProps<{
18+
label?: string
19+
value?: string
20+
}>()
21+
22+
defineSlots<{
23+
label?(): any
24+
value?(): any
25+
}>()
26+
</script>
27+
28+
<style lang="postcss" scoped>
29+
.vts-quick-info-row {
30+
display: flex;
31+
align-items: center;
32+
gap: 1rem;
33+
34+
.value:empty::before {
35+
content: '-';
36+
}
37+
}
38+
</style>

@xen-orchestra/web-core/lib/locales/cs.json

+9
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"core.sidebar.unlock": "Odemknout postranní panel",
9292
"core.sort.ascending": "Seřadit vzestupně",
9393
"core.sort.descending": "Seřadit sestupně",
94+
"cores-with-sockets": "",
9495
"cpu-provisioning": "přednastavení procesoru",
9596
"cpu-provisioning-warning": "Počet přidělených virt. procesorů překračuje počet přítomných fyzických procesorů. Může mít dopad na výkon systému",
9697
"cpu-usage": "Využití procesoru",
@@ -163,6 +164,7 @@
163164
"gateway": "Brána",
164165
"go-back": "Přejít zpět",
165166
"gzip": "gzip",
167+
"hardware": "",
166168
"here": "Zde",
167169
"host": "Hostitel",
168170
"host-description": "Popis hostitele",
@@ -180,6 +182,7 @@
180182
"invalid-field": "Neplatný obsah kolonky",
181183
"ip-addresses": "IP adresy",
182184
"ip-mode": "Režim IP",
185+
"is-primary-host": "",
183186
"job.vm-copy.bad-power-state": "Je třeba, aby virt. stroj byl zastavený",
184187
"job.vm-copy.in-progress": "Probíhá kopírování…",
185188
"job.vm-copy.missing-vms": "Žádný virt. stroj ke zkopírování",
@@ -229,6 +232,7 @@
229232
"language": "Jazyk",
230233
"last-week": "Minulý týden",
231234
"learn-more": "Zjistit více",
235+
"load-average": "",
232236
"load-now": "Načíst nyní",
233237
"loading-hosts": "Načítání hostitelů…",
234238
"loading-in-progress": "Probíhá načítání…",
@@ -240,6 +244,7 @@
240244
"mac-addresses": "MAC adresy",
241245
"management": "Správa",
242246
"master": "Hlavní hostitel",
247+
"memory-usage": "",
243248
"migrate": "Přestěhovat",
244249
"migrate-n-vms": "Přestěhovat 1 virt. stroj | Přestěhovat {n} virt. strojů",
245250
"missing-patches": "Chybějící záplaty",
@@ -306,6 +311,7 @@
306311
"power-state": "Stav napájení",
307312
"professional-support": "Profesionální podpora",
308313
"property": "Vlastnost",
314+
"ram": "",
309315
"ram-usage": "Využití operační paměti",
310316
"reboot": "Restartovat",
311317
"receive": "Přijmout",
@@ -350,6 +356,7 @@
350356
"stacked-ram-usage": "Celkem využítí opearční paměti",
351357
"start": "Spustit",
352358
"start-on-host": "Spustit na konkrétním hostiteli",
359+
"started": "",
353360
"static": "Statické",
354361
"static-ip": "Statická IP adresa",
355362
"stats": "Statistiky",
@@ -380,9 +387,11 @@
380387
"top-#": "Nej {n}",
381388
"total": "Celkem",
382389
"total-cpus": "Celkem procesorů",
390+
"total-free": "",
383391
"total-free:": "Celkem volno:",
384392
"total-memory": "Celková operační paměť",
385393
"total-storage-repository": "Celkové úložiště repozitáře",
394+
"total-used": "",
386395
"total-used:": "Celkem využito:",
387396
"unknown": "Neznámé",
388397
"unlocked": "Odemčeno",

@xen-orchestra/web-core/lib/locales/de.json

+9
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"core.group": "Gruppe",
4949
"core.select.all": "Alles auswählen",
5050
"core.select.none": "Alle abwählen",
51+
"cores-with-sockets": "",
5152
"cpu-provisioning": "Zugewiesene Prozessoren",
5253
"cpu-provisioning-warning": "Die Anzahl der zugewiesenen vCPUs überschreitet die physikalisch vorhandenen CPUs. Die Systemperformance kann darunter leiden.",
5354
"cpu-usage": "Prozessorauslastung",
@@ -109,23 +110,27 @@
109110
"gateway": "Gateway",
110111
"go-back": "Zurück",
111112
"gzip": "gzip",
113+
"hardware": "",
112114
"here": "Hier",
113115
"host.active": "Aktiv",
114116
"host.inactive": "Inaktiv",
115117
"hosts": "Hosts",
116118
"invalid-field": "Ungültiges Feld",
119+
"is-primary-host": "",
117120
"keep-me-logged": "Angemeldet bleiben",
118121
"keep-page-open": "Fenster bis zum Ende der Installation nicht Aktualisieren oder Schließen.",
119122
"language": "Sprache",
120123
"last-week": "Letzte Woche",
121124
"learn-more": "Mehr erfahren",
125+
"load-average": "",
122126
"load-now": "Jetzt laden",
123127
"loading-hosts": "Lade Hosts…",
124128
"loading-in-progress": "Ladevorgang läuft…",
125129
"log-out": "Abmelden",
126130
"login": "Anmelden",
127131
"login-only-on-master": "Die Anmeldung ist nur am Master möglich.",
128132
"master": "Primärer Host",
133+
"memory-usage": "",
129134
"migrate": "Migrieren",
130135
"migrate-n-vms": "1 VM migrieren | {n} VMs migrieren",
131136
"more-actions": "Weitere Aktionen",
@@ -167,6 +172,7 @@
167172
"power-on-vm-for-console": "Konsole ist nach Start der VM verfügbar",
168173
"power-state": "Energiezustand",
169174
"property": "Feld",
175+
"ram": "",
170176
"ram-usage": "Arbeitsspeicherbelegung",
171177
"reboot": "Neustart",
172178
"reformat": "Reformat",
@@ -201,6 +207,7 @@
201207
"stacked-ram-usage": "Arbeitsspeicherbelegung gestapelt",
202208
"start": "Starten",
203209
"start-on-host": "Auf bestimmtem Host starten",
210+
"started": "",
204211
"static-ip": "Statische IP",
205212
"stats": "Statistiken",
206213
"status": "Status",
@@ -221,7 +228,9 @@
221228
"this-vm-cant-be-migrated": "Diese VM kann nicht migriert werden",
222229
"top-#": "Top {n}",
223230
"total-cpus": "Gesamt CPUs",
231+
"total-free": "",
224232
"total-free:": "Gesamt frei :",
233+
"total-used": "",
225234
"total-used:": "Gesamt benutzt :",
226235
"unreachable-hosts": "Hosts nicht erreichbar",
227236
"unreachable-hosts-reload-page": "Abgeschlossen, bitte lade die Seite neu",

@xen-orchestra/web-core/lib/locales/en.json

+18
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"core.sort.ascending": "Sort ascending",
9797
"core.sort.descending": "Sort descending",
9898
"core.textarea.exceeds-max-characters": "Field value must be {max} characters or less.",
99+
"cores-with-sockets": "Cores (sockets)",
99100
"cpu-provisioning": "CPU provisioning",
100101
"cpu-provisioning-warning": "The number of vCPUs allocated exceeds the number of physical CPUs available. System performance could be affected",
101102
"cpu-usage": "CPU usage",
@@ -168,10 +169,14 @@
168169
"gateway": "Gateway",
169170
"go-back": "Go back",
170171
"gzip": "gzip",
172+
"hardware": "Hardware",
171173
"here": "Here",
172174
"host": "Host",
173175
"host-description": "Host description",
174176
"host-internal-networks": "Host internal networks",
177+
"host-status.halted": "Stopped",
178+
"host-status.running": "Running",
179+
"host-status.unknown": "Unknown",
175180
"host-unknown": "Host unknown",
176181
"host.active": "Active",
177182
"host.inactive": "Inactive",
@@ -184,8 +189,10 @@
184189
"id": "Id",
185190
"in-last-three-jobs": "In their last three jobs",
186191
"invalid-field": "Invalid field",
192+
"ip-address": "IP address",
187193
"ip-addresses": "IP addresses",
188194
"ip-mode": "IP mode",
195+
"is-primary-host": "{name} is primary host",
189196
"job.vm-copy.bad-power-state": "VM must be halted",
190197
"job.vm-copy.in-progress": "Copy in progress…",
191198
"job.vm-copy.missing-vms": "No VM to copy",
@@ -235,6 +242,7 @@
235242
"language": "Language",
236243
"last-week": "Last week",
237244
"learn-more": "Learn more",
245+
"load-average": "Load average",
238246
"load-now": "Load now",
239247
"loading-hosts": "Loading hosts…",
240248
"loading-in-progress": "Loading in progress…",
@@ -247,6 +255,7 @@
247255
"mac-addresses": "MAC addresses",
248256
"management": "Management",
249257
"master": "Primary host",
258+
"memory-usage": "Memory usage",
250259
"migrate": "Migrate",
251260
"migrate-n-vms": "Migrate 1 VM | Migrate {n} VMs",
252261
"missing-patches": "Missing patches",
@@ -318,6 +327,8 @@
318327
"professional-support": "Professional support",
319328
"properties": "Properties",
320329
"property": "Property",
330+
"quick-info": "Quick info",
331+
"ram": "RAM",
321332
"ram-usage": "RAM usage",
322333
"reboot": "Reboot",
323334
"receive": "Receive",
@@ -362,6 +373,8 @@
362373
"stacked-ram-usage": "Stacked RAM usage",
363374
"start": "Start",
364375
"start-on-host": "Start on specific host",
376+
"started": "Started",
377+
"state": "State",
365378
"static": "Static",
366379
"static-ip": "Static IP",
367380
"stats": "Stats",
@@ -393,9 +406,11 @@
393406
"top-#": "Top {n}",
394407
"total": "Total",
395408
"total-cpus": "Total CPUs",
409+
"total-free": "Total free",
396410
"total-free:": "Total free:",
397411
"total-memory": "Total memory",
398412
"total-storage-repository": "Total storage repository",
413+
"total-used": "Total used",
399414
"total-used:": "Total used:",
400415
"unknown": "Unknown",
401416
"unlocked": "Unlocked",
@@ -415,9 +430,12 @@
415430
"vm.inactive": "Inactive",
416431
"vms": "VMs",
417432
"vms-status": "VMs status",
433+
"vms-status.halted": "Halted",
418434
"vms-status.inactive": "Inactive",
419435
"vms-status.inactive.tooltip": "Halted or suspended",
436+
"vms-status.paused": "Paused",
420437
"vms-status.running": "Running",
438+
"vms-status.suspended": "Suspended",
421439
"vms-status.unknown": "Unknown",
422440
"vms-status.unknown.tooltip": "For which XO has lost connection to the pool",
423441
"xo-backups": "XO backups",

@xen-orchestra/web-core/lib/locales/es.json

+9
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"core.sidebar.unlock": "Desbloquear la barra lateral",
9292
"core.sort.ascending": "Ordenar",
9393
"core.sort.descending": "Ordenar descendentemente",
94+
"cores-with-sockets": "",
9495
"cpu-provisioning": "Aprovisionamiento de CPU",
9596
"cpu-provisioning-warning": "La cantidad de vCPU asignadas excede la cantidad de CPU físicas disponibles. El rendimiento del sistema puede verse afectado",
9697
"cpu-usage": "Uso del CPU",
@@ -163,6 +164,7 @@
163164
"gateway": "Puerta de enlace",
164165
"go-back": "Regresa",
165166
"gzip": "gzip",
167+
"hardware": "",
166168
"here": "Aquí",
167169
"host": "Servidor",
168170
"host-description": "Descripción servidor",
@@ -180,6 +182,7 @@
180182
"invalid-field": "Campo inválido",
181183
"ip-addresses": "Dirección IP",
182184
"ip-mode": "modo IP",
185+
"is-primary-host": "",
183186
"job.vm-copy.bad-power-state": "La máquina virtual debe estar apagada",
184187
"job.vm-copy.in-progress": "Copiando…",
185188
"job.vm-copy.missing-vms": "No hay máquinas virtuales para copiar",
@@ -229,6 +232,7 @@
229232
"language": "Idioma",
230233
"last-week": "Semana pasada",
231234
"learn-more": "Saber más",
235+
"load-average": "",
232236
"load-now": "Cargar ahora",
233237
"loading-hosts": "Cargando servidores…",
234238
"loading-in-progress": "Cargando…",
@@ -240,6 +244,7 @@
240244
"mac-addresses": "Dirección MAC",
241245
"management": "Administración",
242246
"master": "Servidor principal",
247+
"memory-usage": "",
243248
"migrate": "Migrar",
244249
"migrate-n-vms": "Migrar una máquina virtual | Migrar {n} máquinas virtuales",
245250
"missing-patches": "Parches faltantes",
@@ -306,6 +311,7 @@
306311
"power-state": "Estado alimentación electrica",
307312
"professional-support": "Soporte profesional",
308313
"property": "Propriedad",
314+
"ram": "",
309315
"ram-usage": "Uso RAM",
310316
"reboot": "Reiniciar",
311317
"receive": "Recibir",
@@ -350,6 +356,7 @@
350356
"stacked-ram-usage": "Uso RAM apilado",
351357
"start": "Iniciar",
352358
"start-on-host": "Iniciar en un servidor específico",
359+
"started": "",
353360
"static": "Estatico",
354361
"static-ip": "IP estático",
355362
"stats": "Stats",
@@ -380,9 +387,11 @@
380387
"top-#": "{n} principales",
381388
"total": "Total",
382389
"total-cpus": "CPUs Totales",
390+
"total-free": "",
383391
"total-free:": "Total libre :",
384392
"total-memory": "Memoria total",
385393
"total-storage-repository": "Total reposito de almacenamiento",
394+
"total-used": "",
386395
"total-used:": "Total usado :",
387396
"unknown": "Desconocido",
388397
"unlocked": "Desbloqueado",

0 commit comments

Comments
 (0)