main/view/vue-config.js

32 lines
681 B
JavaScript

import {GlobalStore} from './lib/gstore-es6'
window.gstore = new GlobalStore();
// Header
window.gstore.add('header_title', 'ndli1718');
window.gstore.add('info', {
active: false,
type: 'warning',
message: 'Warning! blabla'
});
window.gstore.add('notif', [
{ class: 'bell', count: 4 },
{ class: 'message', count: 23 },
{ class: 'search', count: '' },
{ class: 'menu', count: '' }
])
// Menu
window.gstore.add('menu_item', {
dashboard: {
label: 'Dashboard',
icon: 'dashboard'
}, profile: {
label: 'Profil',
icon: 'profile'
}, inbox: {
label: 'Boîte de réception',
icon: 'messages'
}
});
window.gstore.add('menu_item_active', 'dashboard');