2017-12-30 07:00:49 +00:00
|
|
|
<template lang="pug">
|
|
|
|
.navigator
|
|
|
|
.navigator-bar
|
|
|
|
.navigator-fab
|
|
|
|
.navigator-fab-button(@click='toggleMainMenu')
|
|
|
|
svg.icons.is-24(role='img')
|
|
|
|
title Navigation
|
|
|
|
use(xlink:href='#gg-apps-grid')
|
|
|
|
.navigator-title
|
|
|
|
h1 {{ siteTitle }}
|
|
|
|
.navigator-subtitle(:class='subtitleClass')
|
2017-12-31 06:20:38 +00:00
|
|
|
transition(name='navigator-subtitle-icon')
|
|
|
|
svg.icons.is-24.navigator-subtitle-icon(role='img', v-if='subtitleIcon')
|
|
|
|
title {{subtitleText}}
|
|
|
|
use(:xlink:href='subtitleIconClass')
|
2017-12-30 07:00:49 +00:00
|
|
|
h2 {{subtitleText}}
|
|
|
|
.navigator-action
|
|
|
|
.navigator-action-item
|
|
|
|
svg.icons.is-32(role='img')
|
|
|
|
title User
|
|
|
|
use(xlink:href='#nc-user-circle')
|
2017-12-31 06:20:38 +00:00
|
|
|
transition(name='navigator-sd')
|
|
|
|
.navigator-sd(v-show='sdShown')
|
|
|
|
.navigator-sd-actions
|
2017-12-31 19:40:28 +00:00
|
|
|
a.is-active(href='', title='Search')
|
2017-12-31 06:20:38 +00:00
|
|
|
svg.icons.is-24(role='img')
|
|
|
|
title Search
|
|
|
|
use(xlink:href='#gg-search')
|
|
|
|
a(href='')
|
2017-12-31 19:40:28 +00:00
|
|
|
svg.icons.is-24(role='img', title='New Document')
|
2017-12-31 06:20:38 +00:00
|
|
|
title New Document
|
|
|
|
use(xlink:href='#nc-plus-circle')
|
|
|
|
a(href='')
|
2017-12-31 19:40:28 +00:00
|
|
|
svg.icons.is-24(role='img', title='Edit Document')
|
|
|
|
title Edit Document
|
2017-12-31 06:20:38 +00:00
|
|
|
use(xlink:href='#nc-pen-red')
|
|
|
|
a(href='')
|
2017-12-31 19:40:28 +00:00
|
|
|
svg.icons.is-24(role='img', title='History')
|
|
|
|
title History
|
2017-12-31 06:20:38 +00:00
|
|
|
use(xlink:href='#nc-restore')
|
|
|
|
a(href='')
|
2017-12-31 19:40:28 +00:00
|
|
|
svg.icons.is-24(role='img', title='View Source')
|
|
|
|
title View Source
|
2017-12-31 06:20:38 +00:00
|
|
|
use(xlink:href='#nc-code-editor')
|
2017-12-31 19:40:28 +00:00
|
|
|
a(href='')
|
|
|
|
svg.icons.is-24(role='img', title='Move Document')
|
|
|
|
title Move Document
|
|
|
|
use(xlink:href='#nc-move')
|
|
|
|
a(href='')
|
|
|
|
svg.icons.is-24(role='img', title='Delete Document')
|
|
|
|
title Delete Document
|
|
|
|
use(xlink:href='#nc-trash')
|
2017-12-31 06:20:38 +00:00
|
|
|
.navigator-sd-search
|
|
|
|
input(type='text', placeholder='Search')
|
|
|
|
.navigator-sd-results
|
2017-12-30 07:00:49 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
/* global CONSTANTS, graphQL, siteConfig */
|
|
|
|
|
|
|
|
import { mapState } from 'vuex'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'navigator',
|
|
|
|
data() {
|
2017-12-31 06:20:38 +00:00
|
|
|
return {
|
|
|
|
sdShown: false
|
|
|
|
}
|
2017-12-30 07:00:49 +00:00
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
...mapState('navigator', [
|
|
|
|
'subtitleShown',
|
|
|
|
'subtitleStyle',
|
|
|
|
'subtitleText',
|
|
|
|
'subtitleIcon'
|
|
|
|
]),
|
|
|
|
siteTitle() {
|
|
|
|
return siteConfig.title
|
|
|
|
},
|
|
|
|
subtitleClass() {
|
|
|
|
return {
|
|
|
|
'is-active': this.subtitleShown,
|
|
|
|
'is-error': this.subtitleStyle === 'error',
|
|
|
|
'is-warning': this.subtitleStyle === 'warning',
|
|
|
|
'is-success': this.subtitleStyle === 'success',
|
|
|
|
'is-info': this.subtitleStyle === 'info'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
subtitleIconClass() { return '#' + this.subtitleIcon }
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
toggleMainMenu() {
|
2017-12-31 06:20:38 +00:00
|
|
|
this.sdShown = !this.sdShown
|
|
|
|
// this.$store.dispatch('navigator/alert', {
|
|
|
|
// style: 'success',
|
|
|
|
// icon: 'gg-check',
|
|
|
|
// msg: 'Changes were saved successfully!'
|
|
|
|
// })
|
2017-12-30 07:00:49 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|