2022-06-15 00:08:45 +00:00
|
|
|
<template>
|
2022-06-22 05:24:06 +00:00
|
|
|
<div>
|
2022-06-18 12:36:14 +00:00
|
|
|
<center class="container">
|
2022-06-22 05:24:06 +00:00
|
|
|
<v-img
|
|
|
|
src="/icon.svg"
|
|
|
|
width="10rem"
|
|
|
|
height="10rem"
|
|
|
|
:class="$vuetify.theme.dark ? '' : 'invert'"
|
|
|
|
/>
|
|
|
|
<h1>{{ lang.updated }}</h1>
|
|
|
|
<p>
|
|
|
|
<span class="version">{{ oldVer }}</span>
|
|
|
|
<v-icon>mdi-arrow-right</v-icon>
|
|
|
|
<span class="version">{{ newVer }}</span>
|
|
|
|
</p>
|
2022-06-15 00:08:45 +00:00
|
|
|
</center>
|
2022-06-18 12:36:14 +00:00
|
|
|
|
2022-06-22 05:24:06 +00:00
|
|
|
<v-btn @click="okay()" class="rounded-xl primary nextButton"
|
|
|
|
>{{ lang.awesome }}
|
|
|
|
<v-icon style="margin-left: 0.5em">mdi-arrow-right</v-icon></v-btn
|
|
|
|
>
|
|
|
|
</div>
|
2022-06-15 00:08:45 +00:00
|
|
|
</template>
|
|
|
|
|
2022-06-18 12:36:14 +00:00
|
|
|
<style scoped>
|
|
|
|
.nextButton {
|
2022-06-22 05:24:06 +00:00
|
|
|
position: absolute;
|
|
|
|
bottom: 1em;
|
|
|
|
left: 50%;
|
|
|
|
transform: translate(-50%, 0);
|
2022-06-18 12:36:14 +00:00
|
|
|
}
|
|
|
|
|
2022-06-20 13:53:06 +00:00
|
|
|
.container {
|
2022-06-22 05:24:06 +00:00
|
|
|
width: 100%;
|
2022-06-18 12:36:14 +00:00
|
|
|
}
|
|
|
|
|
2022-06-20 13:53:06 +00:00
|
|
|
.version {
|
2022-06-22 05:24:06 +00:00
|
|
|
background: rgba(100, 100, 100, 0.5);
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 3px;
|
2022-06-18 12:36:14 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2022-06-15 00:08:45 +00:00
|
|
|
<script>
|
2022-06-22 05:24:06 +00:00
|
|
|
import language from "~/components/Settings/language.vue";
|
|
|
|
export default {
|
|
|
|
layout: "empty",
|
|
|
|
components: {
|
|
|
|
language,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
lang: {},
|
|
|
|
newVer: "...",
|
|
|
|
oldVer: "...",
|
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.lang = this.$lang("events");
|
2022-06-20 13:53:06 +00:00
|
|
|
|
2022-06-22 05:24:06 +00:00
|
|
|
this.oldVer = localStorage.getItem("lastRunVersion").substring(0, 7);
|
|
|
|
this.newVer = process.env.appVersion.substring(0, 7);
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
okay() {
|
|
|
|
localStorage.setItem("lastRunVersion", process.env.appVersion);
|
|
|
|
this.$router.replace("/");
|
2022-06-18 12:36:14 +00:00
|
|
|
},
|
2022-06-22 05:24:06 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|