mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 11:45:34 +00:00
45 lines
1.1 KiB
Vue
45 lines
1.1 KiB
Vue
<template>
|
|
<footer>
|
|
<i18n-t keypath="footer.disclaimer" tag="div" class="text--grayed">
|
|
<template #tos>
|
|
<a style="color: #ccc" :href="$t('footer.tos-href')" target="_blank">
|
|
{{ $t('footer.tos') }}
|
|
</a>
|
|
</template>
|
|
</i18n-t>
|
|
|
|
<div class="text--grayed" v-if="store.vehiclesAPIData">
|
|
{{ $t('footer.version-check', { version: store.vehiclesAPIData.version }) }}
|
|
</div>
|
|
|
|
<div>
|
|
©
|
|
<a href="https://td2.info.pl/profile/?u=20777" target="_blank">Spythere</a>
|
|
{{ new Date().getUTCFullYear() }} | v{{ VERSION }}{{ !isOnProductionHost ? 'dev' : '' }}
|
|
</div>
|
|
</footer>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import packageInfo from '../../../package.json';
|
|
import { useStore } from '../../store';
|
|
|
|
export default defineComponent({
|
|
data() {
|
|
return {
|
|
isOnProductionHost: location.hostname == 'pojazdownik-td2.web.app',
|
|
VERSION: packageInfo.version,
|
|
store: useStore(),
|
|
};
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
footer {
|
|
text-align: center;
|
|
padding: 1em 1em 0 1em;
|
|
}
|
|
</style>
|