mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-22 03:05:15 +00:00
this build MAY fail. it's a feature test (VERY UNSTABLE)
This commit is contained in:
parent
0cbcf34594
commit
c73687ff93
3 changed files with 71 additions and 4 deletions
56
NUXT/pages/mods/general.vue
Normal file
56
NUXT/pages/mods/general.vue
Normal file
|
@ -0,0 +1,56 @@
|
|||
<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>
|
||||
<v-card-text>
|
||||
<v-select v-model="page" background-color="background" :items="pages" label="Default Page" solo></v-select>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
computed: {
|
||||
roundTweak() {
|
||||
return this.$store.state.tweaks.roundTweak;
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
page: "home",
|
||||
langs: [],
|
||||
lang: { mods: { startup: {} } }
|
||||
};
|
||||
},
|
||||
|
||||
watch: {
|
||||
page: function (newVal) {
|
||||
localStorage.setItem("startPage", newVal);
|
||||
},
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.langs = this.$lang(null, true);
|
||||
|
||||
const lang = this.$lang(); this.lang = lang;
|
||||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.v-card {
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
section {
|
||||
padding: 0 1em 1em 1em;
|
||||
}
|
||||
|
||||
</style>
|
|
@ -78,8 +78,7 @@ export default {
|
|||
{
|
||||
name: "General",
|
||||
icon: "mdi-cog",
|
||||
to: "",
|
||||
disabled: true,
|
||||
to: "/mods/general",
|
||||
},
|
||||
{
|
||||
name: "Theme",
|
||||
|
|
|
@ -1,6 +1,18 @@
|
|||
function module(text) {
|
||||
const packs = {
|
||||
english: require('./languages/english'),
|
||||
spanish: require('./languages/spanish'),
|
||||
italian: require('./languages/italian'),
|
||||
polish: require('./languages/polish')
|
||||
}
|
||||
|
||||
function module(text, listPacks) {
|
||||
|
||||
//--- List All Packs ---//
|
||||
if (listPacks) return packs;
|
||||
|
||||
//--- Return Language Pack ---//
|
||||
const selectedLanguage = localStorage.getItem("language") || "english";
|
||||
const languagePack = require('./languages/'+selectedLanguage);
|
||||
const languagePack = packs(selectedLanguage);
|
||||
|
||||
if (!text) return languagePack;
|
||||
return languagePack[text];
|
||||
|
|
Loading…
Reference in a new issue