From 700932de82ab6b3355e096c05c21a68bd65b1ed7 Mon Sep 17 00:00:00 2001 From: Mackenzie Date: Wed, 4 Nov 2026 16:22:06 +0000 Subject: [PATCH] add link to accounts --- src/components/AppNavigation.vue | 19 ++++++++++++++++++- src/locales/de.json | 1 + src/locales/en.json | 1 + src/locales/es.json | 1 + src/locales/fr.json | 1 + src/locales/it.json | 1 + src/locales/ru.json | 1 + src/locales/zh.json | 1 + tests/pages.test.js | 3 ++- 9 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/components/AppNavigation.vue b/src/components/AppNavigation.vue index b2f17df..75e3089 100644 --- a/src/components/AppNavigation.vue +++ b/src/components/AppNavigation.vue @@ -11,12 +11,14 @@ import { import { cn } from '@/lib/utils' import ThemeToggle from '@/components/ThemeToggle.vue' import LanguageSelector from '@/components/LanguageSelector.vue' -import { Menu, X } from 'lucide-vue-next' +import { Menu, X, CircleUser } from 'lucide-vue-next' import { getLocalizedPath } from '@/utils/locale' const mobileMenuOpen = ref(false) const route = useRoute() +const ACCOUNTS_URL = 'https://accounts.beammp.com' + function toggleMobileMenu() { mobileMenuOpen.value = !mobileMenuOpen.value } @@ -212,6 +214,13 @@ function localRoute(path) { + +
@@ -311,6 +320,14 @@ function localRoute(path) { > {{ $t('message.nav.patreon') }} + +
diff --git a/src/locales/de.json b/src/locales/de.json index 3983c5e..7c36712 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -16,6 +16,7 @@ "store": "Merch-Shop", "github": "GitHub", "patreon": "Patreon", + "account": "Anmelden", "language": "Sprache auswählen", "theme": { "light": "Helles Theme", diff --git a/src/locales/en.json b/src/locales/en.json index a54628b..e6b59ea 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -16,6 +16,7 @@ "store": "Merch Store", "github": "GitHub", "patreon": "Patreon", + "account": "Sign In", "language": "Select Language", "theme": { "light": "Light Theme", diff --git a/src/locales/es.json b/src/locales/es.json index 5d0e386..b149283 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -16,6 +16,7 @@ "store": "Tienda de merchandising", "github": "GitHub", "patreon": "Patreon", + "account": "Iniciar sesión", "language": "Seleccionar idioma", "theme": { "light": "Tema claro", diff --git a/src/locales/fr.json b/src/locales/fr.json index 9a6ef7e..0261852 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -16,6 +16,7 @@ "store": "Boutique de produits dérivés", "github": "GitHub", "patreon": "Patreon", + "account": "Se connecter", "language": "Choisir la langue", "theme": { "light": "Thème clair", diff --git a/src/locales/it.json b/src/locales/it.json index 659ee43..cee3786 100644 --- a/src/locales/it.json +++ b/src/locales/it.json @@ -16,6 +16,7 @@ "store": "Negozio di merchandising", "github": "GitHub", "patreon": "Patreon", + "account": "Accedi", "language": "Seleziona lingua", "theme": { "light": "Tema chiaro", diff --git a/src/locales/ru.json b/src/locales/ru.json index 3281c86..4476dfe 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -16,6 +16,7 @@ "store": "Магазин мерча", "github": "GitHub", "patreon": "Patreon", + "account": "Войти", "language": "Выбрать язык", "theme": { "light": "Светлая тема", diff --git a/src/locales/zh.json b/src/locales/zh.json index 62173f8..63d9c56 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -16,6 +16,7 @@ "store": "周边商店", "github": "GitHub", "patreon": "在 Patreon 上为我们捐献", + "account": "登录", "language": "选择语言", "theme": { "light": "明亮主题", diff --git a/tests/pages.test.js b/tests/pages.test.js index 7dee5cb..0ba68b1 100644 --- a/tests/pages.test.js +++ b/tests/pages.test.js @@ -237,7 +237,7 @@ describe('getting around', () => { } }) - test('the navigation bar links out to the docs, the store, GitHub and Patreon', async () => { + test('the navigation bar links out to the docs, the store, GitHub, Patreon and the accounts portal', async () => { stubFetch() wrapper = await openPage('/en') const hrefs = wrapper.findAll('nav a, header a').map((a) => a.attributes('href')) @@ -246,6 +246,7 @@ describe('getting around', () => { 'https://store.beammp.com', 'https://github.com/BeamMP/BeamMP', 'https://www.patreon.com/BeamMP', + 'https://accounts.beammp.com', ]) { expect(hrefs, url).toContain(url) }