32 lines
763 B
JavaScript
32 lines
763 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', data: ['guest1224934 connected', 'guest2349329042 connected'] },
|
|
{ class: 'message', data: ['guestsdfljd: \"blabla bloblo\"'] },
|
|
{ class: 'search', data: [] },
|
|
{ class: 'menu', data: [] }
|
|
])
|
|
|
|
// 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'); |