mirror of
https://github.com/VueTubeApp/VueTube
synced 2025-01-05 07:01:14 +00:00
page name update
This commit is contained in:
parent
e13b8d6de7
commit
13c82422db
2 changed files with 27 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
<v-app>
|
||||
|
||||
<v-card class="topNav rounded-0" style="display: flex;" color="accent">
|
||||
<h2>Home</h2>
|
||||
<h2 v-text="page" />
|
||||
<v-spacer />
|
||||
<v-btn text><v-icon>mdi-magnify</v-icon></v-btn>
|
||||
<v-btn text><v-icon>mdi-dots-vertical</v-icon></v-btn>
|
||||
|
@ -56,6 +56,8 @@
|
|||
<script>
|
||||
export default {
|
||||
data: () => ({
|
||||
page: null,
|
||||
|
||||
tabSelection: 0,
|
||||
tabs: [
|
||||
{ name: "Home", icon: "mdi-home", link: "/" },
|
||||
|
@ -65,5 +67,9 @@
|
|||
{ name: "Library", icon: "mdi-view-list", link: "/library" },
|
||||
]
|
||||
}),
|
||||
mounted() {
|
||||
const pageName = this.$route.path.split("/")[1];
|
||||
this.page = pageName.charAt(0).toUpperCase() + pageName.slice(1);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
20
NUXT/pages/settings.vue
Normal file
20
NUXT/pages/settings.vue
Normal file
|
@ -0,0 +1,20 @@
|
|||
<template>
|
||||
<div class="mainContainer">
|
||||
|
||||
|
||||
<v-switch
|
||||
v-model="$vuetify.theme.dark"
|
||||
label="Dark Theme"
|
||||
hint="Bravo Six, Going Dark."
|
||||
inset persistent-hint
|
||||
/>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.mainContainer {
|
||||
padding-left: 1em;
|
||||
}
|
||||
</style>
|
Loading…
Reference in a new issue