mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
refactor: footer component
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<footer class="app_footer">
|
||||
©
|
||||
<a href="https://td2.info.pl/profile/?u=20777" target="_blank">Spythere</a>
|
||||
{{ new Date().getUTCFullYear() }} |
|
||||
<button class="btn--text" @click="openUpdateCard">
|
||||
v{{ version }}{{ isOnProductionHost ? '' : 'dev' }}
|
||||
</button>
|
||||
|
||||
<br />
|
||||
<a href="https://discord.gg/x2mpNN3svk">
|
||||
<img src="/images/icon-discord.png" alt="" /> <b>{{ $t('footer.discord') }}</b>
|
||||
</a>
|
||||
|
||||
<div style="display: none">∫ ukryta taktyczna całka do programowania w HTMLu</div>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
emits: ['openUpdateCard'],
|
||||
props: {
|
||||
isUpdateCardOpen: {
|
||||
type: Boolean,
|
||||
required: true
|
||||
},
|
||||
version: String,
|
||||
isOnProductionHost: Boolean
|
||||
},
|
||||
|
||||
methods: {
|
||||
openUpdateCard() {
|
||||
this.$emit('openUpdateCard');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -12,7 +12,6 @@
|
||||
@error="onImageError"
|
||||
width="300"
|
||||
height="176"
|
||||
class="rounded-md w-full h-auto"
|
||||
:src="`https://stacjownik.spythere.eu/static/images/${vehicleName}--300px.jpg`"
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user