Skip to content

Commit

Permalink
update version, add console with the dashboard version onMount
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoMandar committed Jun 22, 2024
1 parent c5c6ebb commit b5f8cc0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/DashboardFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import ButtonThemeToggle from './ui-kit/ButtonThemeToggle.vue';
const config = useRuntimeConfig();
const version = '1.0.0';
const version = config.public.version;
const commitHash = config.public.commitHash || 'dev';
</script>

<template>
Expand Down
6 changes: 6 additions & 0 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<script setup lang="ts">
import GlowEffect from '~/components/ui-kit/GlowEffect.vue';
const config = useRuntimeConfig();
const version = config.public.version;
onMounted(() => {
console.log('Dashboard version:', version);
});
</script>

<template>
Expand Down
1 change: 1 addition & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default defineNuxtConfig({
supportWalletPublicKeyBase64:
'K3jnSGVyHj4kSzgce3+k8gJsfHvUoQeJMNPO8CcsO2s=',
commitHash: process.env.NUXT_PUBLIC_COMMIT_HASH || 'dev',
version: '1.0.1',
},
},
plugins: [{ src: '~/plugins/vue-query.client.ts', mode: 'client' }],
Expand Down

0 comments on commit b5f8cc0

Please sign in to comment.