generated from SoftwareAteliers/asp-net-core-vue-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
65 lines (60 loc) · 1.89 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<template>
<v-app>
<v-navigation-drawer
persistent
:mini-variant="miniVariant"
:clipped="clipped"
v-model="drawer"
enable-resize-watcher
fixed
app
>
<v-list>
<v-list-item value="true" v-for="(item, i) in items" :key="i" :to="item.link">
<v-list-item-action>
<v-icon v-html="item.icon"></v-icon>
</v-list-item-action>
<v-list-item-content>
<v-list-item-title v-text="item.title"></v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list>
</v-navigation-drawer>
<v-app-bar app :clipped-left="clipped" color="info" dark>
<v-app-bar-nav-icon @click.stop="drawer = !drawer"></v-app-bar-nav-icon>
<v-btn class="d-none d-lg-flex" icon @click.stop="miniVariant = !miniVariant">
<v-icon v-html="miniVariant ? 'mdi-chevron-right' : 'mdi-chevron-left'"></v-icon>
</v-btn>
<v-btn class="d-none d-lg-flex" icon @click.stop="clipped = !clipped">
<v-icon>mdi-web</v-icon>
</v-btn>
<v-toolbar-title v-text="title"></v-toolbar-title>
<v-spacer></v-spacer>
</v-app-bar>
<v-main>
<router-view />
</v-main>
<v-footer app>
<span> Software Ateliers © 2022</span>
</v-footer>
</v-app>
</template>
<script lang="ts">
import HelloWorld from '@/components/HelloWorld.vue'
import { Component, Vue } from 'vue-property-decorator'
@Component({
components: { HelloWorld }
})
export default class App extends Vue {
private clipped = true
private drawer = true
private miniVariant = false
private right = true
private title = 'ASP.NET Core Vue Starter'
private items = [
{ title: 'Home', icon: 'mdi-home', link: '/' },
{ title: 'Counter', icon: 'mdi-gesture-tap', link: '/counter' },
{ title: 'Fetch data', icon: 'mdi-download', link: '/fetch-data' }
]
}
</script>