Skip to content
Snippets Groups Projects
App.js 476 B
Newer Older
  • Learn to ignore specific revisions
  • lain's avatar
    lain committed
    import UserPanel from './components/user_panel/user_panel.vue'
    
    lain's avatar
    lain committed
    import NavPanel from './components/nav_panel/nav_panel.vue'
    
    lain's avatar
    lain committed
    import Notifications from './components/notifications/notifications.vue'
    
    lain's avatar
    .
    lain committed
    
    export default {
      name: 'app',
      components: {
    
    lain's avatar
    lain committed
        UserPanel,
    
    lain's avatar
    lain committed
        NavPanel,
        Notifications
    
    lain's avatar
    lain committed
      },
      computed: {
    
    lain's avatar
    lain committed
        currentUser () { return this.$store.state.users.currentUser },
        style () { return { 'background-image': `url(${this.currentUser.background_image})` } }
    
    lain's avatar
    .
    lain committed
      }
    }