|
@@ -19,7 +19,7 @@
|
|
v-layout(row)
|
|
v-layout(row)
|
|
v-flex(xs6, :md4='searchIsShown', :md6='!searchIsShown')
|
|
v-flex(xs6, :md4='searchIsShown', :md6='!searchIsShown')
|
|
v-toolbar.nav-header-inner(color='black', dark, flat)
|
|
v-toolbar.nav-header-inner(color='black', dark, flat)
|
|
- v-menu(open-on-hover, offset-y, bottom, left, min-width='250')
|
|
|
|
|
|
+ v-menu(open-on-hover, offset-y, bottom, left, min-width='250', transition='slide-y-transition')
|
|
v-toolbar-side-icon.btn-animate-app(slot='activator')
|
|
v-toolbar-side-icon.btn-animate-app(slot='activator')
|
|
v-icon view_module
|
|
v-icon view_module
|
|
v-list(dense, :light='!$vuetify.dark', :dark='$vuetify.dark', :class='$vuetify.dark ? `grey darken-4` : ``').py-0
|
|
v-list(dense, :light='!$vuetify.dark', :dark='$vuetify.dark', :class='$vuetify.dark ? `grey darken-4` : ``').py-0
|
|
@@ -137,11 +137,22 @@
|
|
icon
|
|
icon
|
|
)
|
|
)
|
|
v-icon(color='grey') search
|
|
v-icon(color='grey') search
|
|
|
|
+ //- v-menu(offset-y, left, transition='slide-y-transition')
|
|
|
|
+ //- v-tooltip(bottom, slot='activator')
|
|
|
|
+ //- v-btn(icon, slot='activator')
|
|
|
|
+ //- v-icon(color='grey') language
|
|
|
|
+ //- span Language
|
|
|
|
+ //- v-list.py-0
|
|
|
|
+ //- template(v-for='(lc, idx) of locales')
|
|
|
|
+ //- v-list-tile(@click='changeLocale(lc)')
|
|
|
|
+ //- v-list-tile-action: v-chip(:color='lc.code === $i18n.i18next.language ? `blue` : `grey`', small, label, dark) {{lc.code.toUpperCase()}}
|
|
|
|
+ //- v-list-tile-title {{lc.name}}
|
|
|
|
+ //- v-divider.my-0(v-if='idx < locales.length - 1')
|
|
v-tooltip(bottom, v-if='isAuthenticated && isAdmin')
|
|
v-tooltip(bottom, v-if='isAuthenticated && isAdmin')
|
|
v-btn.btn-animate-rotate(icon, href='/a', slot='activator')
|
|
v-btn.btn-animate-rotate(icon, href='/a', slot='activator')
|
|
v-icon(color='grey') settings
|
|
v-icon(color='grey') settings
|
|
span Admin
|
|
span Admin
|
|
- v-menu(v-if='isAuthenticated', offset-y, min-width='300', left)
|
|
|
|
|
|
+ v-menu(v-if='isAuthenticated', offset-y, min-width='300', left, transition='slide-y-transition')
|
|
v-tooltip(bottom, slot='activator')
|
|
v-tooltip(bottom, slot='activator')
|
|
v-btn(icon, slot='activator', outline, color='blue')
|
|
v-btn(icon, slot='activator', outline, color='blue')
|
|
v-icon(v-if='picture.kind === `initials`', color='grey') account_circle
|
|
v-icon(v-if='picture.kind === `initials`', color='grey') account_circle
|
|
@@ -159,11 +170,11 @@
|
|
v-list-tile-title {{name}}
|
|
v-list-tile-title {{name}}
|
|
v-list-tile-sub-title {{email}}
|
|
v-list-tile-sub-title {{email}}
|
|
v-divider.my-0
|
|
v-divider.my-0
|
|
- v-list-tile(href='/w')
|
|
|
|
|
|
+ v-list-tile(href='/w', disabled)
|
|
v-list-tile-action: v-icon(color='blue') web
|
|
v-list-tile-action: v-icon(color='blue') web
|
|
v-list-tile-title My Wiki
|
|
v-list-tile-title My Wiki
|
|
v-divider.my-0
|
|
v-divider.my-0
|
|
- v-list-tile(href='/p')
|
|
|
|
|
|
+ v-list-tile(href='/p', disabled)
|
|
v-list-tile-action: v-icon(color='blue') person
|
|
v-list-tile-action: v-icon(color='blue') person
|
|
v-list-tile-title Profile
|
|
v-list-tile-title Profile
|
|
v-divider.my-0
|
|
v-divider.my-0
|
|
@@ -205,7 +216,12 @@ export default {
|
|
searchIsShown: true,
|
|
searchIsShown: true,
|
|
searchAdvMenuShown: false,
|
|
searchAdvMenuShown: false,
|
|
newPageModal: false,
|
|
newPageModal: false,
|
|
- deletePageModal: false
|
|
|
|
|
|
+ deletePageModal: false,
|
|
|
|
+ locales: [
|
|
|
|
+ { code: 'en', name: 'English' },
|
|
|
|
+ { code: 'fr', name: 'Français' },
|
|
|
|
+ { code: 'es', name: 'Español' }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -304,7 +320,21 @@ export default {
|
|
this.deletePageModal = true
|
|
this.deletePageModal = true
|
|
},
|
|
},
|
|
assets () {
|
|
assets () {
|
|
- window.location.assign(`/f`)
|
|
|
|
|
|
+ // window.location.assign(`/f`)
|
|
|
|
+ this.$store.commit('showNotification', {
|
|
|
|
+ style: 'indigo',
|
|
|
|
+ message: `Coming soon...`,
|
|
|
|
+ icon: 'directions_boat'
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ async changeLocale(locale) {
|
|
|
|
+ await this.$i18n.i18next.changeLanguage(locale.code)
|
|
|
|
+ switch (this.mode) {
|
|
|
|
+ case 'view':
|
|
|
|
+ case 'history':
|
|
|
|
+ window.location.assign(`/${locale.code}/${this.path}`)
|
|
|
|
+ break
|
|
|
|
+ }
|
|
},
|
|
},
|
|
logout () {
|
|
logout () {
|
|
Cookies.remove('jwt')
|
|
Cookies.remove('jwt')
|