- 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
<template>
<nav class="col-sm-3 col-md-2 hidden-xs-down bg-faded sidebar">
<div class="nlogo">
<i class="fa fa-home" aria-hidden="true"></i>
</div>
<ul class="nav nav-pills flex-column">
<li class="nav-item">
<router-link to="/" class='nav-link'>
<i class="fa fa-home" aria-hidden="true"></i>
Welcome
</router-link>
</li>
<li class="nav-item section" style="margin-top: 0">
<div>
<router-link to="/bars" class='nav-link'>
<i class="fa fa-bars" aria-hidden="true"></i>My Bars
</router-link>
<router-link to="/bars" class='nav-link section-child'>View All bars</router-link>
<router-link v-for='bar in bars' :key=bar.id :to='`/bar/edit/${bar.id}`' class='nav-link section-child'>{{ bar.config.name }}</router-link>
</div>
</li>
<!-- <li class="nav-item">
<router-link to="/" class='nav-link'>
<i class="fa fa-home" aria-hidden="true"></i>
Overview
</router-link>
</li> -->
</ul>
<ul class="nav nav-pills flex-column">
<!-- <li class="nav-item">
<router-link to="/dashboard" class='nav-link'>
<i class="fa fa-bar-chart" aria-hidden="true"></i>
A/B Testing
</router-link>
</li> -->
<li class="nav-item">
<router-link to="/account" class='nav-link'>
<i class="fa fa-cog" aria-hidden="true"></i>
My Account
</router-link>
</li>
<li class="nav-item">
<router-link to="/dashboard" class='nav-link'>
<i class="fa fa-power-off" aria-hidden="true"></i>
Sign Out
</router-link>
</li>
</ul>
</nav>
</template>
<script>
'use strict';
export default {
name: 'Sidebar',
computed: {
bars()
{
return this.$store.state.bars
},
configsd()
{
if (typeof bars != 'undefined')
{
var cfg = bars.map(b => JSON.parse(b.config))
//console.log('--')
//console.log(cfg)
return cfg
}
else
{
console.log('nothing..')
return []
}
}
}
}
</script>