default.vue
2.82 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<template>
<v-app id="keep">
<v-app-bar
app
clipped-left
color="amber"
>
<v-app-bar-nav-icon @click="drawer = !drawer"/>
<span class="title ml-3 mr-5">KHUloud </span>
<v-text-field
solo-inverted
flat
hide-details
label="Search"
prepend-inner-icon="search"
/>
<v-spacer/>
<v-btn
icon
to="/inspire">
<v-icon>account_circle</v-icon>
</v-btn>
</v-app-bar>
<v-navigation-drawer
v-model="drawer"
app
clipped
color="grey lighten-4"
>
<v-list
dense
class="grey lighten-4"
>
<template v-for="(item, i) in items">
<v-row
v-if="item.heading"
:key="i"
align="center"
>
<v-col cols="6">
<v-subheader v-if="item.heading">
{{ item.heading }}
</v-subheader>
</v-col>
<v-col
cols="6"
class="text-right"
>
<v-btn
small
text
>edit
</v-btn>
</v-col>
</v-row>
<v-divider
v-else-if="item.divider"
:key="i"
dark
class="my-4"
/>
<v-list-item
v-else
:key="i"
link
>
<v-list-item-action>
<v-icon>{{ item.icon }}</v-icon>
</v-list-item-action>
<v-list-item-content>
<v-list-item-title class="grey--text">
{{ item.text }}
</v-list-item-title>
</v-list-item-content>
</v-list-item>
</template>
</v-list>
</v-navigation-drawer>
<v-content>
<nuxt/>
</v-content>
</v-app>
</template>
<script>
import 'material-design-icons-iconfont/dist/material-design-icons.css'
export default {
props: {
source: String,
},
data: () => ({
drawer: false,
items: [
{icon: 'lightbulb_outline', text: 'Notes'},
{icon: 'touch_app', text: 'Reminders'},
{divider: true},
{heading: 'Labels'},
{icon: 'add', text: 'Create new folder'},
{divider: true},
{icon: 'archive', text: 'Archive'},
{icon: 'delete', text: 'Trash'},
{divider: true},
{icon: 'settings', text: 'Settings'},
{icon: 'chat_bubble', text: 'Trash'},
{icon: 'help', text: 'Help'},
{icon: 'phonelink', text: 'App downloads'},
{icon: 'keyboard', text: 'Keyboard shortcuts'},
],
}),
methods: {
account() {
this.$router.push('inspire');
}
}
}
</script>
<style>
#keep .v-navigation-drawer__border {
display: none
}
</style>