From 9044412de07eef33f3e779bb258aaaef4d56e035 Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Wed, 4 Mar 2026 18:02:29 +0100 Subject: [PATCH] Display version in frontend --- front/.env | 1 + front/src/AppNavBar.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 front/.env diff --git a/front/.env b/front/.env new file mode 100644 index 0000000..410670a --- /dev/null +++ b/front/.env @@ -0,0 +1 @@ +VITE_APP_VERSION=$npm_package_version diff --git a/front/src/AppNavBar.vue b/front/src/AppNavBar.vue index ea86b14..4f216a7 100644 --- a/front/src/AppNavBar.vue +++ b/front/src/AppNavBar.vue @@ -13,6 +13,8 @@ const router = useRouter() const isMenuActive = ref(false) const isSearchBarShown = ref(false) +const appVersion = import.meta.env.VITE_APP_VERSION; + function logout() { authStore.logout() router.push('/') @@ -45,7 +47,7 @@ onMounted(() => {