0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-25 20:55:17 +00:00

feat: Click dev buttons 5 times for dev mode

This commit is contained in:
Front 2022-03-31 21:40:25 -04:00
parent 7e50413fcb
commit 58be0e4325
2 changed files with 17 additions and 6 deletions

View file

@ -6,7 +6,6 @@
<center style="margin: 2em;"> <center style="margin: 2em;">
<h1>VueTube Registry</h1> <h1>VueTube Registry</h1>
<v-alert text outlined type="warning"> <v-alert text outlined type="warning">
ONLY TOUCH THIS IF YOU KNOW WHAT YOU ARE DOING!<br>
MESSING WITH SETTINGS MAY CAUSE YOUR APP TO BREAK! MESSING WITH SETTINGS MAY CAUSE YOUR APP TO BREAK!
</v-alert> </v-alert>
</center> </center>
@ -34,7 +33,7 @@
<!-- Delete Entry Dialog --> <!-- Delete Entry Dialog -->
<v-dialog v-model="deleteDialog" width="500"> <v-dialog v-model="deleteDialog" width="500">
<v-card :class="$vuetify.theme.dark ? 'background lighten-1' : 'background darken-1'"> <v-card class="rounded-lg" :class="$vuetify.theme.dark ? 'background lighten-1' : 'background darken-1'">
<v-card-title class="text-h5">Confirm Delete</v-card-title> <v-card-title class="text-h5">Confirm Delete</v-card-title>
<v-card-text>Are you sure that you want to delete <span class="highlight" v-text="selectedKey" />?</v-card-text> <v-card-text>Are you sure that you want to delete <span class="highlight" v-text="selectedKey" />?</v-card-text>
<v-alert text outlined type="warning" style="margin: -0.5em 2em 1em 2em;">Deleting random keys may cause the app to break!</v-alert> <v-alert text outlined type="warning" style="margin: -0.5em 2em 1em 2em;">Deleting random keys may cause the app to break!</v-alert>
@ -49,7 +48,7 @@
<!-- Edit Entry Dialog --> <!-- Edit Entry Dialog -->
<v-dialog v-model="editDialog" width="500"> <v-dialog v-model="editDialog" width="500">
<v-card :class="$vuetify.theme.dark ? 'background lighten-1' : 'background darken-1'"> <v-card class="rounded-lg" :class="$vuetify.theme.dark ? 'background lighten-1' : 'background darken-1'">
<v-card-title class="text-h5" v-text="selectedKey"/> <v-card-title class="text-h5" v-text="selectedKey"/>
<v-card-text> <v-card-text>
@ -72,7 +71,7 @@
<!-- Add Entry Dialog --> <!-- Add Entry Dialog -->
<v-dialog v-model="addDialog" width="500"> <v-dialog v-model="addDialog" width="500">
<v-card :class="$vuetify.theme.dark ? 'background lighten-1' : 'background darken-1'"> <v-card class="rounded-lg" :class="$vuetify.theme.dark ? 'background lighten-1' : 'background darken-1'">
<v-card-title class="text-h5">Create Registry Entry</v-card-title> <v-card-title class="text-h5">Create Registry Entry</v-card-title>
<v-card-text> <v-card-text>

View file

@ -11,6 +11,10 @@
{{ item.name }} {{ item.name }}
</v-btn> </v-btn>
</v-list-item> </v-list-item>
<!-- Dev Mode Open -->
<v-btn text class="entry" @click="dev()" />
</div> </div>
</template> </template>
@ -30,6 +34,8 @@
export default { export default {
data() { data() {
return { return {
devClicks: 0,
settingsItems: [ settingsItems: [
{ name: "General", icon: "mdi-cog", to: "", disabled: true }, { name: "General", icon: "mdi-cog", to: "", disabled: true },
{ name: "Theme", icon: "mdi-brush-variant", to: "/mods/theme" }, { name: "Theme", icon: "mdi-brush-variant", to: "/mods/theme" },
@ -53,10 +59,16 @@ export default {
}, },
{ name: "Logs", icon: "mdi-text-box-outline", to: "/mods/logs" }, { name: "Logs", icon: "mdi-text-box-outline", to: "/mods/logs" },
{ name: "About", icon: "mdi-information-outline", to: "/mods/about" }, { name: "About", icon: "mdi-information-outline", to: "/mods/about" },
/* Developer Settings, Don't Remove // Included in all releases for users to mess with if they feel comfortable enough */ { name: "", icon: "", to: "/mods/developer" },
], ],
}; };
}, },
methods: {
dev() {
this.devClicks++;
if (this.devClicks >= 6) {
this.$router.push("/mods/developer");
}
}
}
}; };
</script> </script>