main/view/vue-config.js

32 lines
765 B
JavaScript
Raw Normal View History

import {GlobalStore} from './lib/gstore-es6'
window.gstore = new GlobalStore();
2017-12-03 15:02:18 +00:00
// Header
window.gstore.add('header_title', 'ndli1718');
2017-12-03 15:02:18 +00:00
window.gstore.add('info', {
active: false,
type: 'warning',
message: 'Warning! blabla'
});
2017-12-03 15:02:18 +00:00
window.gstore.add('notif', [
{ class: 'bell', data: ['guest1224934 connected', 'guest2349329042 connected'] },
{ class: 'message', data: [['guestsdfljd, \"blabla bloblo\"']] },
{ class: 'search', data: [] },
{ class: 'menu', data: [] }
2017-12-03 15:02:18 +00:00
])
// 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'
}
2017-12-03 15:02:18 +00:00
});
window.gstore.add('menu_item_active', 'dashboard');