2016-10-27 18:01:48 +02:00
|
|
|
import UserPanel from './components/user_panel/user_panel.vue'
|
2016-11-06 20:11:23 +01:00
|
|
|
import NavPanel from './components/nav_panel/nav_panel.vue'
|
2016-11-27 19:44:56 +01:00
|
|
|
import Notifications from './components/notifications/notifications.vue'
|
2017-01-16 18:57:03 +01:00
|
|
|
import StyleSwitcher from './components/style_switcher/style_switcher.vue'
|
2016-10-26 19:03:55 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'app',
|
|
|
|
components: {
|
2016-11-06 20:11:23 +01:00
|
|
|
UserPanel,
|
2016-11-27 19:44:56 +01:00
|
|
|
NavPanel,
|
2017-01-16 18:57:03 +01:00
|
|
|
Notifications,
|
|
|
|
StyleSwitcher
|
2016-11-03 16:58:32 +01:00
|
|
|
},
|
2017-01-17 17:27:39 +01:00
|
|
|
data: () => ({
|
|
|
|
mobileActivePanel: 'timeline'
|
|
|
|
}),
|
2016-11-03 16:58:32 +01:00
|
|
|
computed: {
|
2016-11-27 19:44:56 +01:00
|
|
|
currentUser () { return this.$store.state.users.currentUser },
|
2017-02-14 22:21:23 +01:00
|
|
|
style () { return { 'background-image': `url(${this.currentUser.background_image})` } },
|
|
|
|
sitename () { return this.$store.state.config.name }
|
2017-01-17 17:27:39 +01:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
activatePanel (panelName) {
|
|
|
|
this.mobileActivePanel = panelName
|
|
|
|
}
|
2016-10-26 19:03:55 +02:00
|
|
|
}
|
|
|
|
}
|