From 784b0dded84628aa60b987e86e474ecf2899801d Mon Sep 17 00:00:00 2001 From: Mathieu <70369997+MathieuRA@users.noreply.github.com> Date: Fri, 17 Mar 2023 16:35:06 +0100 Subject: [PATCH] feat(lite): under construction page (#6673) --- @xen-orchestra/lite/CHANGELOG.md | 1 + .../lite/src/assets/under-construction.svg | 79 +++++++++++++++++++ .../src/components/PageUnderConstruction.vue | 56 +++++++++++++ @xen-orchestra/lite/src/locales/en.json | 7 +- @xen-orchestra/lite/src/locales/fr.json | 7 +- .../lite/src/views/host/HostDashboardView.vue | 7 +- .../lite/src/views/pool/PoolAlarmsView.vue | 8 +- .../lite/src/views/pool/PoolHostsView.vue | 8 +- .../lite/src/views/pool/PoolNetworkView.vue | 8 +- .../lite/src/views/pool/PoolStatsView.vue | 8 +- .../lite/src/views/pool/PoolStorageView.vue | 8 +- .../lite/src/views/pool/PoolSystemView.vue | 8 +- 12 files changed, 195 insertions(+), 10 deletions(-) create mode 100644 @xen-orchestra/lite/src/assets/under-construction.svg create mode 100644 @xen-orchestra/lite/src/components/PageUnderConstruction.vue diff --git a/@xen-orchestra/lite/CHANGELOG.md b/@xen-orchestra/lite/CHANGELOG.md index 114da99eb..621da969f 100644 --- a/@xen-orchestra/lite/CHANGELOG.md +++ b/@xen-orchestra/lite/CHANGELOG.md @@ -13,6 +13,7 @@ - Ability to change the state of a VM (PRs [#6571](https://github.com/vatesfr/xen-orchestra/pull/6571) [#6608](https://github.com/vatesfr/xen-orchestra/pull/6608)) - Display CPU provisioning in pool dashboard (PR [#6601](https://github.com/vatesfr/xen-orchestra/pull/6601)) - Add a star icon near the pool master (PR [#6712](https://github.com/vatesfr/xen-orchestra/pull/6712)) +- Add under construction views (PR [#6673](https://github.com/vatesfr/xen-orchestra/pull/6673)) ## **0.1.0** diff --git a/@xen-orchestra/lite/src/assets/under-construction.svg b/@xen-orchestra/lite/src/assets/under-construction.svg new file mode 100644 index 000000000..487b69b74 --- /dev/null +++ b/@xen-orchestra/lite/src/assets/under-construction.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/@xen-orchestra/lite/src/components/PageUnderConstruction.vue b/@xen-orchestra/lite/src/components/PageUnderConstruction.vue new file mode 100644 index 000000000..2bba65a89 --- /dev/null +++ b/@xen-orchestra/lite/src/components/PageUnderConstruction.vue @@ -0,0 +1,56 @@ + + + + {{ $t("xo-lite-under-construction") }} + {{ $t("new-features-are-coming") }} + + {{ $t("do-you-have-needs") }} + + {{ $t("here") }} → + + + + + + diff --git a/@xen-orchestra/lite/src/locales/en.json b/@xen-orchestra/lite/src/locales/en.json index ca4c17a75..8f7e17216 100644 --- a/@xen-orchestra/lite/src/locales/en.json +++ b/@xen-orchestra/lite/src/locales/en.json @@ -23,6 +23,8 @@ "delete": "Delete", "descending": "descending", "description": "Description", + "display": "Display", + "do-you-have-needs": "You have needs and/or expectations? Let us know", "edit-config": "Edit config", "error-occured": "An error has occurred", "export": "Export", @@ -49,6 +51,7 @@ "following-hosts-unreachable": "The following hosts are unreachable", "force-reboot": "Force reboot", "force-shutdown": "Force shutdown", + "here": "Here", "hosts": "Hosts", "language": "Language", "last-week": "Last week", @@ -63,6 +66,7 @@ "network-upload": "Upload", "news": "News", "news-name": "{name} news", + "new-features-are-coming": "New features are coming soon!", "object": "Object", "object-not-found": "Object {id} can't be found…", "or": "Or", @@ -125,5 +129,6 @@ "vcpus": "vCPUs", "vcpus-used": "vCPUs used", "version": "Version", - "vms": "VMs" + "vms": "VMs", + "xo-lite-under-construction": "XOLite is under construction" } diff --git a/@xen-orchestra/lite/src/locales/fr.json b/@xen-orchestra/lite/src/locales/fr.json index e70a3b12b..e33122015 100644 --- a/@xen-orchestra/lite/src/locales/fr.json +++ b/@xen-orchestra/lite/src/locales/fr.json @@ -23,6 +23,8 @@ "delete": "Supprimer", "descending": "descendant", "description": "Description", + "display": "Affichage", + "do-you-have-needs": "Vous avez des besoins et/ou des attentes ? Faites le nous savoir", "edit-config": "Modifier config", "error-occured": "Une erreur est survenue", "export": "Exporter", @@ -49,6 +51,7 @@ "following-hosts-unreachable": "Les hôtes suivants sont inaccessibles", "force-reboot": "Forcer le redémarrage", "force-shutdown": "Forcer l'arrêt", + "here": "Ici", "hosts": "Hôtes", "language": "Langue", "last-week": "Semaine dernière", @@ -63,6 +66,7 @@ "network-upload": "Montant", "news": "Actualités", "news-name": "Actualités {name}", + "new-features-are-coming": "De nouvelles fonctionnalités arrivent bientôt !", "object": "Objet", "object-not-found": "L'objet {id} est introuvable…", "or": "Ou", @@ -125,5 +129,6 @@ "vcpus": "vCPUs", "vcpus-used": "vCPUs utilisés", "version": "Version", - "vms": "VMs" + "vms": "VMs", + "xo-lite-under-construction": "XOLite est en construction" } diff --git a/@xen-orchestra/lite/src/views/host/HostDashboardView.vue b/@xen-orchestra/lite/src/views/host/HostDashboardView.vue index d3e7c3bed..2111422e5 100644 --- a/@xen-orchestra/lite/src/views/host/HostDashboardView.vue +++ b/@xen-orchestra/lite/src/views/host/HostDashboardView.vue @@ -1,4 +1,7 @@ - Host dashboard (coming soon) - + + + diff --git a/@xen-orchestra/lite/src/views/pool/PoolAlarmsView.vue b/@xen-orchestra/lite/src/views/pool/PoolAlarmsView.vue index d342419dd..2111422e5 100644 --- a/@xen-orchestra/lite/src/views/pool/PoolAlarmsView.vue +++ b/@xen-orchestra/lite/src/views/pool/PoolAlarmsView.vue @@ -1 +1,7 @@ -Alarms (coming soon) + + + + + diff --git a/@xen-orchestra/lite/src/views/pool/PoolHostsView.vue b/@xen-orchestra/lite/src/views/pool/PoolHostsView.vue index 794c767d0..2111422e5 100644 --- a/@xen-orchestra/lite/src/views/pool/PoolHostsView.vue +++ b/@xen-orchestra/lite/src/views/pool/PoolHostsView.vue @@ -1 +1,7 @@ -Hosts (coming soon) + + + + + diff --git a/@xen-orchestra/lite/src/views/pool/PoolNetworkView.vue b/@xen-orchestra/lite/src/views/pool/PoolNetworkView.vue index 0a19c81a4..2111422e5 100644 --- a/@xen-orchestra/lite/src/views/pool/PoolNetworkView.vue +++ b/@xen-orchestra/lite/src/views/pool/PoolNetworkView.vue @@ -1 +1,7 @@ -Network (coming soon) + + + + + diff --git a/@xen-orchestra/lite/src/views/pool/PoolStatsView.vue b/@xen-orchestra/lite/src/views/pool/PoolStatsView.vue index 99c12055f..2111422e5 100644 --- a/@xen-orchestra/lite/src/views/pool/PoolStatsView.vue +++ b/@xen-orchestra/lite/src/views/pool/PoolStatsView.vue @@ -1 +1,7 @@ -Stats (coming soon) + + + + + diff --git a/@xen-orchestra/lite/src/views/pool/PoolStorageView.vue b/@xen-orchestra/lite/src/views/pool/PoolStorageView.vue index 8837af104..2111422e5 100644 --- a/@xen-orchestra/lite/src/views/pool/PoolStorageView.vue +++ b/@xen-orchestra/lite/src/views/pool/PoolStorageView.vue @@ -1 +1,7 @@ -Storage (coming soon) + + + + + diff --git a/@xen-orchestra/lite/src/views/pool/PoolSystemView.vue b/@xen-orchestra/lite/src/views/pool/PoolSystemView.vue index 5e4551d0e..2111422e5 100644 --- a/@xen-orchestra/lite/src/views/pool/PoolSystemView.vue +++ b/@xen-orchestra/lite/src/views/pool/PoolSystemView.vue @@ -1 +1,7 @@ -System (coming soon) + + + + +
{{ $t("xo-lite-under-construction") }}
{{ $t("new-features-are-coming") }}
+ {{ $t("do-you-have-needs") }} + + {{ $t("here") }} → + +