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:
parent
ad65af7203
commit
fae8bddd51
1 changed files with 44 additions and 41 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue