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