forked from misterGF/CoPilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSidebar.vue
More file actions
83 lines (77 loc) · 1.86 KB
/
Copy pathSidebar.vue
File metadata and controls
83 lines (77 loc) · 1.86 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
<template>
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel (optional) -->
<div class="user-panel">
<div class="pull-left image">
<img :src="user.avatar" />
</div>
<div class="pull-left info">
<div>
<p class="white">{{user.displayName}}</p>
</div>
<a href="javascript:;">
<i class="fa fa-circle text-success"></i> Online
</a>
</div>
</div>
<!-- search form (Optional) -->
<form v-on:submit.prevent class="sidebar-form" id="searchForm">
<div class="input-group" id="searchContainer">
<span class="input-group-btn">
<input type="text"
name="search"
id="search"
class="search form-control"
data-toggle="hideseek" p
laceholder="Search Menus"
data-list=".sidebar-menu">
<button type="submit" name="search" id="search-btn" class="btn btn-flat">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<!-- /.search form -->
<!-- Sidebar Menu -->
<sidebar-menu />
<!-- /.sidebar-menu -->
</section>
<!-- /.sidebar -->
</aside>
</template>
<script>
import SidebarMenu from './SidebarMenu'
export default {
name: 'Sidebar',
props: ['user'],
components: { SidebarMenu },
mounted: function() {
window
.jQuery('[data-toggle="hideseek"]')
.off()
.hideseek()
}
}
</script>
<style scope="local">
.user-panel .image img {
border-radius: 50%;
}
#searchForm {
padding-left: 0em;
padding-right: 0em;
}
#searchContainer {
height: 100%;
padding-bottom: 0em;
}
#search {
width: 80%;
float: right;
}
#search-btn {
width: 20%;
}
</style>