2022-06-15 00:08:45 +00:00
|
|
|
<template>
|
2022-08-07 05:18:10 +00:00
|
|
|
<div style="padding: 2em;">
|
|
|
|
|
|
|
|
|
|
|
|
<v-icon x-large color="primary" style="padding-bottom: 0.25em;">mdi-cellphone-arrow-down</v-icon>
|
|
|
|
<h1>{{ lang.updated }}</h1>
|
|
|
|
<p>{{ oldVer }} <v-icon>mdi-arrow-right</v-icon> {{ newVer }}</p>
|
|
|
|
<div class="bottom">
|
2022-08-07 05:34:44 +00:00
|
|
|
<v-btn rounded color="primary" @click="okay()">{{ lang.awesome }}</v-btn>
|
2022-08-07 05:18:10 +00:00
|
|
|
</div>
|
|
|
|
|
2022-06-18 12:36:14 +00:00
|
|
|
|
2022-06-22 05:24:06 +00:00
|
|
|
</div>
|
2022-06-15 00:08:45 +00:00
|
|
|
</template>
|
|
|
|
|
2022-06-18 12:36:14 +00:00
|
|
|
<style scoped>
|
2022-08-07 05:18:10 +00:00
|
|
|
.bottom {
|
2022-06-22 05:24:06 +00:00
|
|
|
position: absolute;
|
2022-08-07 05:18:10 +00:00
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
padding: 2em;
|
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);
|
2022-08-22 17:35:31 +00:00
|
|
|
this.newVer = process.env.version.substring(0, 7);
|
2022-06-22 05:24:06 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
okay() {
|
2022-08-22 17:35:31 +00:00
|
|
|
localStorage.setItem("lastRunVersion", process.env.version);
|
2022-06-22 05:24:06 +00:00
|
|
|
this.$router.replace("/");
|
2022-06-18 12:36:14 +00:00
|
|
|
},
|
2022-06-22 05:24:06 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|