2022-02-24 19:55:29 +00:00
|
|
|
<template>
|
2022-03-21 23:47:11 +00:00
|
|
|
<div style="padding-top: 1em">
|
2022-03-14 17:13:24 +00:00
|
|
|
<v-list-item v-for="(item, index) in settingsItems" :key="index">
|
2022-05-06 03:11:28 +00:00
|
|
|
<v-btn text class="entry text-left text-capitalize" :to="item.to" :disabled="item.disabled">
|
2022-03-21 23:47:11 +00:00
|
|
|
<v-icon size="30px" class="icon" v-text="item.icon" />
|
2022-03-14 17:13:24 +00:00
|
|
|
{{ item.name }}
|
|
|
|
</v-btn>
|
|
|
|
</v-list-item>
|
2022-04-01 01:40:25 +00:00
|
|
|
|
|
|
|
<!-- Dev Mode Open -->
|
|
|
|
<v-btn text class="entry" @click="dev()" />
|
2022-03-21 23:47:11 +00:00
|
|
|
</div>
|
2022-02-24 19:55:29 +00:00
|
|
|
</template>
|
|
|
|
|
2022-03-14 17:13:24 +00:00
|
|
|
<style scoped>
|
2022-05-06 03:11:28 +00:00
|
|
|
.entry {
|
|
|
|
width: 100%;
|
|
|
|
font-size: 1.2em;
|
|
|
|
justify-content: left !important;
|
|
|
|
padding: 1.5em 0.5em 1.5em 0.5em !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
|
2022-03-14 17:13:24 +00:00
|
|
|
</style>
|
|
|
|
|
2022-02-25 00:33:03 +00:00
|
|
|
<script>
|
2022-05-06 03:11:28 +00:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
devClicks: 0,
|
|
|
|
|
|
|
|
settingsItems: [{
|
|
|
|
name: "General",
|
|
|
|
icon: "mdi-cog",
|
|
|
|
to: "",
|
|
|
|
disabled: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Theme",
|
|
|
|
icon: "mdi-brush-variant",
|
|
|
|
to: "/mods/theme"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Player",
|
|
|
|
icon: "mdi-motion-play-outline",
|
|
|
|
to: "",
|
|
|
|
disabled: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "UI Tweaker",
|
|
|
|
icon: "mdi-television-guide",
|
|
|
|
to: "/mods/tweaks",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Startup Options",
|
|
|
|
icon: "mdi-restart",
|
|
|
|
to: "/mods/startup"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Plugins",
|
|
|
|
icon: "mdi-puzzle",
|
|
|
|
to: "",
|
|
|
|
to: "/mods/plugins",
|
|
|
|
disabled: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Updates",
|
|
|
|
icon: "mdi-cloud-download-outline",
|
|
|
|
to: "/mods/updates",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Logs",
|
|
|
|
icon: "mdi-text-box-outline",
|
|
|
|
to: "/mods/logs"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "About",
|
|
|
|
icon: "mdi-information-outline",
|
|
|
|
to: "/mods/about"
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
},
|
2022-04-01 01:40:25 +00:00
|
|
|
|
2022-05-06 03:11:28 +00:00
|
|
|
mounted() {
|
|
|
|
this.settingsItems[0].name = this.$lang('settings').general;
|
|
|
|
this.settingsItems[1].name = this.$lang('settings').theme;
|
|
|
|
this.settingsItems[2].name = this.$lang('settings').player;
|
|
|
|
this.settingsItems[3].name = this.$lang('settings').uitweaker;
|
|
|
|
this.settingsItems[4].name = this.$lang('settings').startupoptions;
|
|
|
|
this.settingsItems[5].name = this.$lang('settings').plugins;
|
|
|
|
this.settingsItems[6].name = this.$lang('settings').updates;
|
|
|
|
this.settingsItems[7].name = this.$lang('settings').logs;
|
|
|
|
this.settingsItems[8].name = this.$lang('settings').about;
|
2022-04-07 20:30:42 +00:00
|
|
|
},
|
2022-05-06 03:11:28 +00:00
|
|
|
|
|
|
|
methods: {
|
|
|
|
dev() {
|
|
|
|
this.devClicks++;
|
|
|
|
if (this.devClicks >= 6) {
|
|
|
|
this.$router.push("/mods/developer");
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2022-02-25 00:33:03 +00:00
|
|
|
</script>
|