-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainLayout.vue
80 lines (74 loc) · 1.54 KB
/
MainLayout.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<template>
<q-layout view="lHh Lpr lFf">
<!-- <q-header elevated>
<q-toolbar>
<q-btn
flat
dense
round
icon="menu"
aria-label="Menu"
@click="leftDrawerOpen = !leftDrawerOpen"
/>
<q-toolbar-title>
Speed Link App
</q-toolbar-title>
<div>
{{date}}
</div>
</q-toolbar>
</q-header>
<q-drawer
v-model="leftDrawerOpen"
show-if-above
bordered
content-class="bg-grey-1"
>
<q-list>
<q-item-label
header
class="text-grey-8"
>
Essential Links
</q-item-label>
<EssentialLink
v-for="link in essentialLinks"
:key="link.title"
v-bind="link"
/>
</q-list>
</q-drawer> -->
<q-page-container>
<router-view />
</q-page-container>
</q-layout>
</template>
<script>
import EssentialLink from 'components/EssentialLink.vue'
import moment from 'moment'
const linksData = [
// {
// title: 'About Us',
// caption: 'quasar.dev',
// icon: 'school',
// link: 'https://quasar.dev'
// },
{
title: 'Facebook',
caption: 'facebook',
icon: 'facebook',
link: 'https://www.facebook.com/SPEED-LINK-112583950506437'
}
];
export default {
name: 'MainLayout',
components: { EssentialLink },
data () {
return {
leftDrawerOpen: false,
essentialLinks: linksData,
date: moment().format("MMM Do YY")
}
}
}
</script>