0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 19:25:16 +00:00
VueTube/NUXT/pages/mods/startup.vue

79 lines
1.4 KiB
Vue
Raw Normal View History

2022-03-16 00:31:03 +00:00
<template>
<div class="mainContainer pt-1">
<v-card
flat
class="pb-5 background"
:class="$vuetify.theme.dark ? 'lighten-1' : 'darken-1'"
:style="{ borderRadius: `${roundTweak / 2}rem` }"
>
<v-card-title>{{ lang.mods.startup.defaultpage }}</v-card-title>
2022-03-16 00:31:03 +00:00
<v-card-text>
<v-select
v-model="page"
background-color="background"
:items="pages"
label="Default Page"
solo
2022-08-07 18:29:30 +00:00
rounded
></v-select>
2022-03-16 00:31:03 +00:00
</v-card-text>
</v-card>
</div>
</template>
<script>
export default {
computed: {
roundTweak() {
return this.$store.state.tweaks.roundTweak;
},
},
data() {
return {
page: "home",
pages: [],
lang: { mods: { startup: {} } },
};
},
watch: {
page: function (newVal) {
localStorage.setItem("startPage", newVal);
2022-03-21 23:47:11 +00:00
},
},
2022-03-16 00:31:03 +00:00
mounted() {
this.page = localStorage.getItem("startPage") || "home";
const lang = this.$lang();
this.lang = lang;
this.pages = [
{
value: "home",
text: lang.global.home,
},
{
value: "subscriptions",
text: lang.global.subscriptions,
},
{
value: "library",
text: lang.global.library,
},
];
},
};
2022-03-16 00:31:03 +00:00
</script>
<style scoped>
.v-card {
margin: 1em;
}
2022-03-16 00:31:03 +00:00
section {
padding: 0 1em 1em 1em;
}
2022-03-16 00:31:03 +00:00
</style>