API & Client - get application version from API

This commit is contained in:
Sam
2021-11-01 10:33:34 +01:00
parent 7f6f33a6aa
commit 9380034d37
14 changed files with 36 additions and 13 deletions

View File

@ -19,7 +19,7 @@
<i class="fa fa-chevron-up" aria-hidden="true"></i>
</div>
</div>
<Footer />
<Footer v-if="appConfig" :version="appConfig ? appConfig.version : ''" />
</template>
<script lang="ts">

View File

@ -1,7 +1,10 @@
<template>
<div id="footer">
<div class="footer-items">
<div class="footer-item"><strong>FitTrackee</strong> vx.xx</div>
<div class="footer-item">
<strong>FitTrackee</strong>
v{{ version }}
</div>
<div class="footer-item bullet"></div>
<div class="footer-item">
<a
@ -34,6 +37,20 @@
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
name: 'Footer',
props: {
version: {
type: String,
required: true,
},
},
})
</script>
<style scoped lang="scss">
@import '~@/scss/base';

View File

@ -14,6 +14,7 @@ export type TAppConfig = {
max_single_file_size: number
max_users: number
max_zip_file_size: number
version: string
}
export interface IApplication {