0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-19 01:35:14 +00:00

feat: langpacks for /mods/startup

This commit is contained in:
Kenny 2022-05-06 07:56:32 -04:00
parent ad65af7203
commit fae8bddd51

View file

@ -1,27 +1,16 @@
<template> <template>
<div class="mainContainer pt-1"> <div class="mainContainer pt-1">
<v-card <v-card flat class="pb-5 background" :class="$vuetify.theme.dark ? 'lighten-1' : 'darken-1'" :style="{borderRadius: `${roundTweak / 2}rem`}">
flat
class="pb-5 background"
:class="$vuetify.theme.dark ? 'lighten-1' : 'darken-1'"
:style="{borderRadius: `${roundTweak / 2}rem`}"
>
<v-card-title>Default Page</v-card-title> <v-card-title>Default Page</v-card-title>
<v-card-text> <v-card-text>
<v-select <v-select v-model="page" background-color="background" :items="pages" label="Default Page" solo></v-select>
v-model="page"
background-color="background"
:items="pages"
label="Default Page"
solo
></v-select>
</v-card-text> </v-card-text>
</v-card> </v-card>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
computed: { computed: {
roundTweak() { roundTweak() {
@ -32,7 +21,7 @@ export default {
data() { data() {
return { return {
page: "home", page: "home",
pages: ["home", "subscriptions", "library"], pages: [],
}; };
}, },
@ -44,16 +33,30 @@ export default {
mounted() { mounted() {
this.page = localStorage.getItem("startPage") || "home"; this.page = localStorage.getItem("startPage") || "home";
},
}; const langPack = this.$lang('global');
this.pages = [{
value: "home",
text: langPack.home
}, {
value: "subscriptions",
text: langPack.subscriptions
}, {
value: "library",
text: langPack.library
}];
}
};
</script> </script>
<style scoped> <style scoped>
.v-card { .v-card {
margin: 1em; margin: 1em;
} }
section { section {
padding: 0 1em 1em 1em; padding: 0 1em 1em 1em;
} }
</style> </style>