File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ protected static function updatePackageArray(array $packages)
3838 {
3939 return array_merge ([
4040 'vuetify ' => '^1.0 ' ,
41+ 'gravatar ' => '^1.0 ' ,
4142 ], Arr::except ($ packages , [
4243 'bootstrap ' ,
4344 'bootstrap-sass ' ,
Original file line number Diff line number Diff line change @@ -17,10 +17,23 @@ window.Vue = require('vue');
1717
1818Vue . component ( 'login-button' , require ( './components/LoginButtonComponent.vue' ) ) ;
1919Vue . component ( 'register-button' , require ( './components/RegisterButtonComponent.vue' ) ) ;
20+ Vue . component ( 'snackbar' , require ( './components/SnackBarComponent.vue' ) ) ;
2021
2122window . Vuetify = require ( 'vuetify' ) ;
2223Vue . use ( Vuetify )
2324
25+ import store from './store'
26+ import * as actions from './store/action-types'
27+ import * as mutations from './store/mutation-types'
28+
29+ import { mapGetters } from 'vuex'
30+
31+ if ( window . user ) {
32+ store . commit ( mutations . USER , user )
33+ store . commit ( mutations . LOGGED , true )
34+ }
35+
2436const app = new Vue ( {
25- el : '#app'
37+ el : '#app' ,
38+ store
2639} ) ;
Original file line number Diff line number Diff line change 2424<body >
2525<div id =" app" >
2626 <v-app light v-cloak >
27+ <snackbar ></snackbar >
2728 <v-toolbar class =" white" >
2829 <v-toolbar-title >{{ config (' app.name' ) } } </v-toolbar-title >
29-
3030 @if (Route:: has (' login' ) )
3131 <v-spacer ></v-spacer >
32- <login-button ></login-button >
33- <register-button ></register-button >
32+ <login-button action = " {{ $action or null } } " ></login-button >
33+ <register-button action = " {{ $action or null } } " ></register-button >
3434 @endif
35-
36-
3735 </v-toolbar >
3836 <v-content >
3937 <section >
You can’t perform that action at this time.
0 commit comments