0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-06 11:35:07 +00:00
VueTube/NUXT/pages/activities/update.vue

53 lines
1 KiB
Vue
Raw Normal View History

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">
<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
</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 {
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>
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
this.oldVer = localStorage.getItem("lastRunVersion").substring(0, 7);
this.newVer = process.env.version.substring(0, 7);
},
methods: {
okay() {
localStorage.setItem("lastRunVersion", process.env.version);
this.$router.replace("/");
2022-06-18 12:36:14 +00:00
},
},
};
</script>