2022-06-15 00:08:45 +00:00
|
|
|
<template>
|
2022-06-22 05:24:06 +00:00
|
|
|
<div>
|
2022-12-12 07:39:11 +00:00
|
|
|
<center ref="stage0" class="container">
|
2022-06-22 05:24:06 +00:00
|
|
|
<v-img
|
|
|
|
src="/icon.svg"
|
|
|
|
width="10rem"
|
|
|
|
height="10rem"
|
|
|
|
:class="$vuetify.theme.dark ? '' : 'invert'"
|
|
|
|
/>
|
2022-12-12 07:39:11 +00:00
|
|
|
<div style="height: 3rem" />
|
2022-06-22 05:24:06 +00:00
|
|
|
<h1>{{ lang.welcome }}</h1>
|
2022-12-12 07:39:11 +00:00
|
|
|
<div>{{ lang.tagline }}</div>
|
2022-06-15 00:08:45 +00:00
|
|
|
</center>
|
2022-06-18 12:28:46 +00:00
|
|
|
|
2022-12-12 07:39:11 +00:00
|
|
|
<center ref="stage1" class="container hidden">
|
|
|
|
<h2 class="mb-8">{{ lang.langsetup }}</h2>
|
2022-06-22 05:24:06 +00:00
|
|
|
<language style="width: 80%" />
|
2022-06-18 12:28:46 +00:00
|
|
|
</center>
|
|
|
|
|
2022-12-12 07:39:11 +00:00
|
|
|
<!--
|
2022-06-18 12:28:46 +00:00
|
|
|
<center class="container hidden" ref="stage2">
|
2022-07-30 01:00:42 +00:00
|
|
|
<v-autocomplete
|
|
|
|
label="API"
|
2022-08-07 05:18:10 +00:00
|
|
|
:items="apis"
|
2022-07-30 01:00:42 +00:00
|
|
|
style="border-top-right-radius: 1rem !important; border-top-left-radius: 1rem !important; box-shadow: none !important"
|
|
|
|
solo
|
|
|
|
filled
|
|
|
|
class="mx-8"
|
|
|
|
></v-autocomplete>
|
|
|
|
</center>
|
2022-08-07 05:18:10 +00:00
|
|
|
-->
|
2022-07-30 01:00:42 +00:00
|
|
|
|
2022-12-12 07:39:11 +00:00
|
|
|
<center ref="stage2" class="container hidden">
|
|
|
|
<h2 class="mb-2">{{ lang.featuresetup }}</h2>
|
2022-12-26 08:24:31 +00:00
|
|
|
<v-checkbox
|
|
|
|
v-model="watchTelemetry"
|
|
|
|
:label="`Personalized Recommendations: ${
|
|
|
|
watchTelemetry ? 'Enabled' : 'Disabled'
|
|
|
|
}`"
|
|
|
|
style="width: 80%"
|
|
|
|
dense
|
|
|
|
/>
|
|
|
|
<!-- TODO: translate -->
|
|
|
|
<!-- :label="`${lang.enabletelem} ${watchTelemetry ? ..." -->
|
2022-12-12 07:39:11 +00:00
|
|
|
<v-checkbox
|
|
|
|
v-model="ryd"
|
|
|
|
:label="lang.enableryd"
|
|
|
|
style="width: 80%"
|
|
|
|
disabled
|
2022-12-26 08:24:31 +00:00
|
|
|
dense
|
2022-12-12 07:39:11 +00:00
|
|
|
/>
|
|
|
|
<v-checkbox
|
|
|
|
v-model="sponsorBlock"
|
|
|
|
:label="lang.enablespb"
|
|
|
|
style="width: 80%"
|
|
|
|
disabled
|
2022-12-26 08:24:31 +00:00
|
|
|
dense
|
2022-12-12 07:39:11 +00:00
|
|
|
/>
|
2022-06-18 12:28:46 +00:00
|
|
|
</center>
|
2022-12-12 07:39:11 +00:00
|
|
|
<center ref="stage3" class="container hidden" style="width: 80%">
|
|
|
|
<h2 class="mb-2">💕</h2>
|
|
|
|
<h2 class="mb-2">
|
|
|
|
{{ lang.thanks }}
|
|
|
|
</h2>
|
|
|
|
<h4>{{ lang.enjoy }}</h4>
|
2022-06-18 12:28:46 +00:00
|
|
|
</center>
|
|
|
|
|
2022-12-12 07:39:11 +00:00
|
|
|
<v-btn
|
|
|
|
class="primary nextButton"
|
|
|
|
style="border-radius: 0.75rem"
|
|
|
|
@click="next()"
|
2022-06-22 05:24:06 +00:00
|
|
|
>
|
2022-12-12 07:39:11 +00:00
|
|
|
{{ lang.next }}
|
|
|
|
<v-icon style="margin-left: 0.5em">mdi-arrow-right</v-icon>
|
|
|
|
</v-btn>
|
2022-06-22 05:24:06 +00:00
|
|
|
</div>
|
2022-06-15 00:08:45 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-06-22 05:24:06 +00:00
|
|
|
import language from "~/components/Settings/language.vue";
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
language,
|
|
|
|
},
|
2022-12-12 07:39:11 +00:00
|
|
|
layout: "empty",
|
2022-06-22 05:24:06 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
lang: {},
|
|
|
|
stage: 0,
|
2022-06-18 12:28:46 +00:00
|
|
|
|
2022-06-22 05:24:06 +00:00
|
|
|
ryd: true,
|
|
|
|
sponsorBlock: true,
|
2022-12-12 07:39:11 +00:00
|
|
|
apis: ["youtube.com", "twitch.tv", "odysee.com"],
|
2022-06-22 05:24:06 +00:00
|
|
|
};
|
|
|
|
},
|
2022-12-26 08:24:31 +00:00
|
|
|
computed: {
|
|
|
|
watchTelemetry: {
|
|
|
|
get() {
|
|
|
|
return this.$store.state.watchTelemetry;
|
|
|
|
},
|
|
|
|
set(value) {
|
|
|
|
this.$store.commit("setTelemetryPreference", value);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-06-22 05:24:06 +00:00
|
|
|
mounted() {
|
|
|
|
this.lang = this.$lang("events");
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
next() {
|
|
|
|
this.$refs["stage" + this.stage].style.display = "none";
|
|
|
|
this.stage++;
|
2022-06-18 12:28:46 +00:00
|
|
|
|
2022-06-22 05:24:06 +00:00
|
|
|
if (!this.$refs["stage" + this.stage]) {
|
2022-08-22 17:35:31 +00:00
|
|
|
localStorage.setItem("lastRunVersion", process.env.version);
|
2022-06-22 05:24:06 +00:00
|
|
|
localStorage.setItem("firstTimeSetupComplete", true);
|
|
|
|
this.$router.replace("/");
|
|
|
|
}
|
2022-06-18 12:28:46 +00:00
|
|
|
|
2022-06-22 05:24:06 +00:00
|
|
|
this.$refs["stage" + this.stage].style.display = "block";
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
2022-12-12 07:39:11 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.nextButton {
|
|
|
|
padding-right: 0.5rem !important;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 1rem;
|
|
|
|
right: 10%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fullWidth {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
</style>
|