Skip to content

Commit deb256b

Browse files
committed
Display application version in footer component
1 parent 2a556e8 commit deb256b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

resources/js/Components/Footer/FooterGuests.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
<script setup>
2+
import { onMounted, ref } from "vue";
3+
4+
const version = ref("");
5+
6+
onMounted(() => {
7+
version.value = import.meta.env.VITE_APP_VERSION;
8+
});
9+
</script>
10+
111
<template>
212
<footer class="w-full mx-auto px-6 py-4 flex justify-between bg-gray-100">
313
<div>
414
<p class="myPrimaryParagraph lg:text-sm text-xs">
515
Laravel, Vue, and Nuxt, a Page Builder, Listing Directory, Blog,
6-
and Job Board Theme.
16+
and Job Board Theme. | Version: {{ version }}
717
</p>
818
</div>
919
<div class="flex justify-center items-center myPrimaryGap">

0 commit comments

Comments
 (0)