Display version in frontend
This commit is contained in:
1
front/.env
Normal file
1
front/.env
Normal file
@@ -0,0 +1 @@
|
|||||||
|
VITE_APP_VERSION=$npm_package_version
|
||||||
@@ -13,6 +13,8 @@ const router = useRouter()
|
|||||||
const isMenuActive = ref(false)
|
const isMenuActive = ref(false)
|
||||||
const isSearchBarShown = ref(false)
|
const isSearchBarShown = ref(false)
|
||||||
|
|
||||||
|
const appVersion = import.meta.env.VITE_APP_VERSION;
|
||||||
|
|
||||||
function logout() {
|
function logout() {
|
||||||
authStore.logout()
|
authStore.logout()
|
||||||
router.push('/')
|
router.push('/')
|
||||||
@@ -45,7 +47,7 @@ onMounted(() => {
|
|||||||
<template>
|
<template>
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-brand">
|
||||||
<RouterLink to="/" class="navbar-item" activeClass="is-active"> B </RouterLink>
|
<RouterLink to="/" class="navbar-item" :title="'bibliomane v' + appVersion" activeClass="is-active"> B </RouterLink>
|
||||||
<div class="navbar-item is-hidden-desktop">
|
<div class="navbar-item is-hidden-desktop">
|
||||||
<a
|
<a
|
||||||
@click="isSearchBarShown = !isSearchBarShown"
|
@click="isSearchBarShown = !isSearchBarShown"
|
||||||
|
|||||||
Reference in New Issue
Block a user