Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(xo-lite): add links to user menu #8114

Open
wants to merge 11 commits into
base: lite/update-user-menu-icon
Choose a base branch
from
20 changes: 14 additions & 6 deletions @xen-orchestra/lite/src/components/account-menu/AccountMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@
/>
</template>
<MenuItem :icon="faGear" @click="openSettings">{{ $t('settings') }}</MenuItem>
<MenuItem :icon="faMessage" @click="openFeedbackUrl">
{{ $t('send-us-feedback') }}
<MenuItem :icon="faBook" @click="openUrl('https://docs.xcp-ng.org?utm_campaign=xolite&utm_term=xcpdoc')">
{{ $t('documentation-name', { name: 'XCP-ng' }) }}
</MenuItem>
<MenuItem
:icon="faHeadset"
@click="openUrl('https://vates.tech/pricing-and-support?utm_campaign=xolite&utm_term=pricing')"
>
{{ $t('professional-support') }}
</MenuItem>
<MenuItem :icon="faComments" @click="openUrl('https://xcp-ng.org/forum/topic/4731/xen-orchestra-lite')">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also use an utm here (same campaign, but with utm_term=forum)

{{ $t('access-forum') }}
</MenuItem>
<MenuItem :icon="faArrowRightFromBracket" class="menu-item-logout" @click="logout">
{{ $t('log-out') }}
Expand All @@ -24,7 +33,7 @@ import MenuItem from '@core/components/menu/MenuItem.vue'
import MenuList from '@core/components/menu/MenuList.vue'
import UiAccountMenuButton from '@core/components/ui/account-menu-button/UiAccountMenuButton.vue'
import { vTooltip } from '@core/directives/tooltip.directive'
import { faArrowRightFromBracket, faGear, faMessage } from '@fortawesome/free-solid-svg-icons'
import { faArrowRightFromBracket, faBook, faComments, faGear, faHeadset } from '@fortawesome/free-solid-svg-icons'
import { nextTick } from 'vue'
import { useRouter } from 'vue-router'

Expand All @@ -36,10 +45,9 @@ const logout = () => {
nextTick(() => router.push({ name: 'home' }))
}

const openFeedbackUrl = () => {
window.open('https://xcp-ng.org/forum/topic/4731/xen-orchestra-lite', '_blank', 'noopener')
const openUrl = (url: string) => {
window.open(url, '_blank', 'noopener noreferrer')
}

const openSettings = () => router.push({ name: 'settings' })
</script>

Expand Down
8 changes: 7 additions & 1 deletion @xen-orchestra/lite/src/views/settings/SettingsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<template #key>{{ $t('support') }}</template>
<template #value>
<a target="_blank" rel="noopener noreferrer" href="https://xcp-ng.com/">
{{ $t('support-name', { name: 'XCP-ng' }) }}
{{ $t('professional-support') }}
</a>
</template>
</UiKeyValueRow>
Expand Down Expand Up @@ -162,9 +162,11 @@ h5 {
.about .sections {
display: flex;
gap: 2em;

div {
flex-grow: 1;
}

@media (--mobile) {
flex-direction: column;
}
Expand All @@ -173,20 +175,24 @@ h5 {
.appearance .options {
display: flex;
gap: 25px;

.option {
display: flex;
flex-direction: column;
gap: 1.6em;

&.selected {
color: var(--color-info-txt-base);

img {
outline: solid 2px var(--color-info-txt-base);
}
}

&:not(.selected) {
cursor: pointer;
}

img {
box-shadow: var(--shadow-100);
border-radius: 8px;
Expand Down
9 changes: 0 additions & 9 deletions @xen-orchestra/web-core/lib/locales/de.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
{
"alarms": "Alarme",

"bytes.ki": "KiB",
"bytes.mi": "MiB",
"bytes.gi": "GiB",

"coming-soon": "Bald verfügbar!",
"console": "Konsole",

"core.close": "Schließen",

"core.select.all": "Alles auswählen",
"core.select.none": "Alle abwählen",

"dark-mode.enable": "Aktivieren Sie den Dunkelmodus",
"dark-mode.disable": "Deaktivieren Sie den Dunkelmodus",
"dark-mode.auto": "Automatischer Dunkelmodus",

"dashboard": "Dashboard",
"documentation-name": "{name} Dokumentation",
"hosts": "Hosts",
Expand All @@ -32,11 +26,8 @@
"running-vm": "VM eingeschalten | VMs eingeschalten",
"stats": "Statistiken",
"storage": "Speicher",
"support-name": "{name} pro support",
"system": "System",

"tasks": "Aufgaben",
"tasks.quick-view": "Schnellansicht der Aufgaben",

"vms": "VMs"
}
15 changes: 2 additions & 13 deletions @xen-orchestra/web-core/lib/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{
"alarms": "Alarms",

"bytes.ki": "KiB",
"bytes.mi": "MiB",
"bytes.gi": "GiB",

"coming-soon": "Coming soon!",
"console": "Console",

"core.copied": "Copied",
"core.copy-id": "Copy ID",
"core.close": "Close",
Expand All @@ -17,28 +14,22 @@
"core.hide": "Hide",
"core.open": "Open",
"core.quick-actions": "Quick actions",

"core.search": "Search",

"core.query-search-bar.label": "Search Engine",
"core.query-search-bar.placeholder": "Write your query…",
"core.query-search-bar.use-query-builder": "Use query builder",

"core.select.all": "Select all",
"core.select.none": "Select none",

"core.sidebar.close": "Close sidebar",
"core.sidebar.lock": "Lock sidebar open",
"core.sidebar.open": "Open sidebar",
"core.sidebar.unlock": "Unlock sidebar",

"core.sort.ascending": "Sort ascending",
"core.sort.descending": "Sort descending",

"dark-mode.enable": "Enable dark mode",
"dark-mode.disable": "Disable dark mode",
"dark-mode.auto": "Auto dark mode",

"access-forum": "Access forum",
"dashboard": "Dashboard",
"documentation-name": "{name} documentation",
"hosts": "Hosts",
Expand All @@ -53,13 +44,12 @@
"other": "Other",
"patches": "Patches",
"power-on-for-console": "Power on your VM to access its console",
"professional-support": "Professional support",
"running-vm": "Running VM | Running VMs",
"see-all": "See all",
"stats": "Stats",
"storage": "Storage",
"support-name": "{name} pro support",
"system": "System",

"tasks": "Tasks",
"tasks.n-subtasks": "{n} subtask | {n} subtasks",
"tasks.no-tasks": "No tasks",
Expand All @@ -68,7 +58,6 @@
"tasks.quick-view.done": "Done",
"tasks.quick-view.failed": "Failed",
"tasks.quick-view.in-progress": "In progress",

"total": "Total",
"total-cpus": "Total CPUs",
"vms": "VMs"
Expand Down
9 changes: 0 additions & 9 deletions @xen-orchestra/web-core/lib/locales/fa.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
{
"alarms": "هشدارها",

"bytes.ki": "KiB",
"bytes.mi": "MiB",
"bytes.gi": "GiB",

"coming-soon": "به زودی!",
"console": "کنسول",

"core.close": "بستن",
"core.current": "جاری",
"core.filter": "فیلتر",
"core.group": "گروه",
"core.hide": "مخفی کردن",
"core.open": "باز کردن",
"core.quick-actions": "اقدامات سریع",

"core.select.all": "انتخاب همه",
"core.select.none": "انتخاب هیچکدام",

"core.sidebar.close": "بستن نوار کناری",
"core.sidebar.lock": "قفل کردن نوار کناری باز شده",
"core.sidebar.open": "باز کردن نوار کناری",
"core.sidebar.unlock": "از حالت قفل خارج کردن نوار کناری",

"core.sort.ascending": "مرتب سازی صعودی",
"core.sort.descending": "مرتب سازی نزولی",

"dark-mode.enable": "فعال کردن حالت تاریک",
"dark-mode.disable": "غیر فعال کردن حالت تاریک",
"dark-mode.auto": "حالت خودکار تاریک",

"dashboard": "داشبورد",
"documentation-name": "اسناد {name}",
"learn-more": "بیشتر بدانید",
Expand All @@ -43,7 +35,6 @@
"running-vm": "ماشین های مجازی در حال اجرا | ماشین مجازی در حال اجرا",
"stats": "آمار",
"storage": "ذخیره سازی",
"support-name": "پشتیبانی حرفه ای {name}",
"system": "سیستم",
"tasks": "کارها"
}
15 changes: 2 additions & 13 deletions @xen-orchestra/web-core/lib/locales/fr.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{
"alarms": "Alarmes",

"bytes.ki": "Kio",
"bytes.mi": "Mio",
"bytes.gi": "Gio",

"coming-soon": "Bientôt disponible !",
"console": "Console",

"core.copied": "Copié",
"core.copy-id": "Copier l'ID",
"core.close": "Fermer",
Expand All @@ -17,28 +14,22 @@
"core.hide": "Masquer",
"core.open": "Ouvrir",
"core.quick-actions": "Actions rapides",

"core.search": "Rechercher",

"core.query-search-bar.label": "Moteur de recherche",
"core.query-search-bar.placeholder": "Écrivez votre requête…",
"core.query-search-bar.use-query-builder": "Utiliser le constructeur de requête",

"core.select.all": "Tout sélectionner",
"core.select.none": "Tout désélectionner",

"core.sidebar.close": "Fermer la barre latérale",
"core.sidebar.lock": "Verrouiller la barre latérale",
"core.sidebar.open": "Ouvrir la barre latérale",
"core.sidebar.unlock": "Déverrouiller la barre latérale",

"core.sort.ascending": "Trier par ordre croissant",
"core.sort.descending": "Trier par ordre décroissant",

"dark-mode.enable": "Activer le mode sombre",
"dark-mode.disable": "Désactiver le mode sombre",
"dark-mode.auto": "Mode sombre automatique",

"access-forum": "Accès au forum",
"dashboard": "Tableau de bord",
"documentation-name": "Documentation {name}",
"hosts": "Hôtes",
Expand All @@ -53,13 +44,12 @@
"other": "Autre",
"patches": "Patches",
"power-on-for-console": "Allumez votre VM pour accéder à sa console",
"professional-support": "Support professionel",
"running-vm": "VM en cours d'exécution | VMs en cours d'exécution",
"see-all": "Voir tout",
"stats": "Stats",
"storage": "Stockage",
"support-name": "Support pro {name}",
"system": "Système",

"tasks": "Tâches",
"tasks.n-subtasks": "{n} sous-tâche | {n} sous-tâches",
"tasks.no-tasks": "Aucune tâche",
Expand All @@ -68,7 +58,6 @@
"tasks.quick-view.done": "Terminées",
"tasks.quick-view.failed": "Échouées",
"tasks.quick-view.in-progress": "En cours",

"total": "Total",
"total-cpus": "Total CPUs",
"vms": "VMs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
rel="noopener noreferrer"
target="_blank"
>
{{ $t('support-name', { name: 'XCP-ng' }) }}
{{ $t('professional-support') }}
</a>
</MenuItem>
<MenuItem :icon="faArrowRightFromBracket" class="logout" @click="logout()">
Expand Down
Loading