0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-12-01 15:37:29 +00:00
VueTube/NUXT/pages/activities/update.vue

72 lines
1.4 KiB
Vue
Raw Normal View History

2022-06-15 00:08:45 +00:00
<template>
<div>
2022-06-18 12:36:14 +00:00
<center class="container">
<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
<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 {
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 {
width: 100%;
2022-06-18 12:36:14 +00:00
}
2022-06-20 13:53:06 +00:00
.version {
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>
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.appVersion.substring(0, 7);
},
methods: {
okay() {
localStorage.setItem("lastRunVersion", process.env.appVersion);
this.$router.replace("/");
2022-06-18 12:36:14 +00:00
},
},
};
</script>