0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-25 20:55:17 +00:00

feat: start update screen

This commit is contained in:
Kenny 2022-06-18 08:36:14 -04:00
parent 4b4c0ade98
commit bff9ad3436
3 changed files with 40 additions and 7 deletions

View file

@ -76,6 +76,7 @@ import language from '~/components/Settings/language.vue';
this.stage++;
if (!this.$refs["stage"+this.stage]) {
localStorage.setItem("lastRunVersion", process.env.appVersion)
localStorage.setItem("firstTimeSetupComplete", true)
this.$router.replace('/');
}

View file

@ -1,6 +1,6 @@
<template>
<div class="container">
<center>
<div>
<center class="container">
<v-img
src="/icon.svg"
width="10rem"
@ -8,22 +8,52 @@
:class="$vuetify.theme.dark ? '' : 'invert'"
/>
<h1>{{ lang.updated }}</h1>
<v-btn class="rounded-xl primary">{{ lang.awesome }}</v-btn>
</center>
<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>
</template>
<script>
export default {
layout: "empty",
<style scoped>
.nextButton {
position: absolute;
bottom: 1em;
left: 50%;
transform: translate(-50%, 0);
}
.hidden {
display: none;
}
.fullWidth {
width: 100%;
}
.container {
width: 100%;
}
</style>
<script>
import language from '~/components/Settings/language.vue';
export default {
layout: "empty",
components: {
language
},
data() {
return {
lang: {}
lang: {},
}
},
mounted() {
this.lang = this.$lang("events");
},
methods: {
okay() {
this.$router.replace('/');
}
}
}
</script>

View file

@ -30,6 +30,8 @@ export default {
await this.$vuetube.launchBackHandling();
this.progressMsg = this.$lang("index").launching;
localStorage.setItem("lastRunVersion", process.env.appVersion)
if (localStorage.getItem("firstTimeSetupComplete")) {
this.$router.replace('/'+ (localStorage.getItem("startPage") || "home") ); // Normal Load
} else {