2022-06-15 00:08:45 +00:00
|
|
|
<template>
|
2022-06-18 12:28:46 +00:00
|
|
|
<div>
|
|
|
|
<center class="container" ref="stage0">
|
2022-06-15 00:08:45 +00:00
|
|
|
<v-img
|
|
|
|
src="/icon.svg"
|
|
|
|
width="10rem"
|
|
|
|
height="10rem"
|
|
|
|
:class="$vuetify.theme.dark ? '' : 'invert'"
|
|
|
|
/>
|
|
|
|
<h1>{{ lang.welcome }}</h1>
|
|
|
|
<p>{{ lang.tagline }}</p>
|
|
|
|
</center>
|
2022-06-18 12:28:46 +00:00
|
|
|
|
|
|
|
<center class="container hidden" ref="stage1">
|
|
|
|
<h1>{{ lang.langsetup }}</h1>
|
|
|
|
<language style="width: 80%;" />
|
|
|
|
</center>
|
|
|
|
|
|
|
|
<center class="container hidden" ref="stage2">
|
|
|
|
<h1>{{ lang.featuresetup }}</h1>
|
|
|
|
<v-checkbox disabled v-model="ryd" :label="lang.enableryd" />
|
|
|
|
<v-checkbox disabled v-model="sponsorBlock" :label="lang.enablespb" />
|
|
|
|
</center>
|
|
|
|
|
|
|
|
<center class="container hidden" ref="stage3">
|
|
|
|
<h1>{{ lang.thanks }}</h1>
|
|
|
|
<h3>{{ lang.enjoy }}</h3>
|
|
|
|
</center>
|
|
|
|
|
|
|
|
<v-btn @click="next()" class="rounded-xl primary nextButton">{{ lang.next }} <v-icon style="margin-left: 0.5em;">mdi-arrow-right</v-icon></v-btn>
|
2022-06-15 00:08:45 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-06-18 12:28:46 +00:00
|
|
|
<style scoped>
|
|
|
|
.nextButton {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 1em;
|
|
|
|
right: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fullWidth {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2022-06-15 00:08:45 +00:00
|
|
|
<script>
|
2022-06-18 12:28:46 +00:00
|
|
|
import language from '~/components/Settings/language.vue';
|
|
|
|
export default {
|
2022-06-15 00:08:45 +00:00
|
|
|
layout: "empty",
|
2022-06-18 12:28:46 +00:00
|
|
|
components: {
|
|
|
|
language
|
|
|
|
},
|
2022-06-15 00:08:45 +00:00
|
|
|
data() {
|
|
|
|
return {
|
2022-06-18 12:28:46 +00:00
|
|
|
lang: {},
|
|
|
|
stage: 0,
|
|
|
|
|
|
|
|
ryd: true,
|
|
|
|
sponsorBlock: true,
|
2022-06-15 00:08:45 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.lang = this.$lang("events");
|
2022-06-18 12:28:46 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
next() {
|
|
|
|
this.$refs["stage"+this.stage].style.display = "none";
|
|
|
|
this.stage++;
|
|
|
|
|
|
|
|
if (!this.$refs["stage"+this.stage]) {
|
2022-06-20 13:53:06 +00:00
|
|
|
localStorage.setItem("lastRunVersion", process.env.appVersion);
|
|
|
|
localStorage.setItem("firstTimeSetupComplete", true);
|
2022-06-18 12:28:46 +00:00
|
|
|
this.$router.replace('/');
|
|
|
|
}
|
|
|
|
|
|
|
|
this.$refs["stage"+this.stage].style.display = "block";
|
|
|
|
}
|
2022-06-15 00:08:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|