Skip to content
Snippets Groups Projects
Commit 14fe3564 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add version webservice to footer

parent 77082a3a
No related branches found
No related tags found
No related merge requests found
Pipeline #130839 passed
<script setup lang="ts">
const runtimeConfig = useRuntimeConfig();
const tagUrl = computed(() => {
return `https://gitlab.pasteur.fr/mdm-lab/website/-/releases/v${runtimeConfig.public.version}`
})
</script>
<template>
<v-footer absolute="true" text-center d-flex flex-column>
<div class="px-4 text-center w-100">
<v-btn size="small" prepend-icon="mdi-tag" variant="plain" :href="tagUrl" target="_blank">
v{{ runtimeConfig.public.version }}
</v-btn>
</div>
</v-footer>
</template>
\ No newline at end of file
<script lang="ts" setup>
import { useDisplay } from 'vuetify'
import { useRuntimeConfig } from 'nuxt/app';
const { smAndDown, width } = useDisplay()
export interface Props {
fluid?: boolean
......@@ -16,6 +16,7 @@ const computedMinWidth = computed(() => {
if (toValue(width) - 300 > toValue(minWidth)) return toValue(minWidth)
return undefined
})
const runtimeConfig = useRuntimeConfig()
const scrollThreshold = ref(200)
......@@ -47,6 +48,8 @@ function onScroll() {
</v-row>
</v-container>
</v-main>
<Footer>
</Footer>
</VApp>
</v-card>
</template>
// https://nuxt.com/docs/api/configuration/nuxt-config
import { md3 } from 'vuetify/blueprints'
import pkg from './package.json'
export default defineNuxtConfig({
ssr: true,
......@@ -15,6 +15,7 @@ export default defineNuxtConfig({
public: {
wikiUrl: '/wiki',
dfApiPrefix: "/dfapi",
version: pkg.version
}
},
modules: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment