forked from misterGF/CoPilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDash.vue
More file actions
115 lines (102 loc) · 2.32 KB
/
Copy pathDash.vue
File metadata and controls
115 lines (102 loc) · 2.32 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
<template>
<div :class="['wrapper', classes]">
<!-- Horizontal bar at top. Contains messages, notifications, tasks and user menu -->
<dash-header :user="user"></dash-header>
<!-- Left side column. contains the logo and sidebar -->
<sidebar :user="user" />
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
{{$route.name.toUpperCase() }}
<small>{{ $route.meta.description }}</small>
</h1>
<ol class="breadcrumb">
<li>
<a href="javascript:;">
<i class="fa fa-home"></i>Home</a>
</li>
<li class="active">{{$route.name.toUpperCase()}}</li>
</ol>
</section>
<router-view></router-view>
</div>
<!-- /.content-wrapper -->
<!-- Horizontal bar at bottom. Contains copy right -->
<dash-footer></dash-footer>
</div>
</template>
<script>
import faker from 'faker'
import config from '../config'
import DashFooter from './layout/DashFooter'
import DashHeader from './layout/DashHeader'
import Sidebar from './layout/Sidebar'
import 'hideseek'
export default {
name: 'Dash',
components: {
DashFooter,
DashHeader,
Sidebar
},
data: function () {
return {
// section: 'Dash',
classes: {
fixed_layout: config.fixedLayout,
hide_logo: config.hideLogoOnMobile
}
}
},
computed: {
user () {
return {
displayName: faker.name.findName(),
avatar: faker.image.avatar(),
roles: [faker.name.jobTitle(), faker.name.jobTitle()]
}
}
}
}
</script>
<style>
.wrapper.fixed_layout .main-header {
position: fixed;
width: 100%;
}
.wrapper.fixed_layout .content-wrapper {
padding-top: 50px;
}
.wrapper.fixed_layout .main-sidebar {
position: fixed;
height: 100vh;
}
@media (max-width: 767px) {
.wrapper.hide_logo .main-header .logo {
display: none;
}
}
.logo-mini,
.logo-lg {
text-align: left;
}
.logo-mini img,
.logo-lg img {
padding: 0.4em !important;
}
.logo-lg img {
display: -webkit-inline-box;
width: 25%;
}
.user-panel {
height: 4em;
}
hr.visible-xs-block {
width: 100%;
background-color: rgba(0, 0, 0, 0.17);
height: 1px;
border-color: transparent;
}
</style>