From 8e5c1680be258c6597698d868c84dab52c030778 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Fri, 1 Dec 2017 15:45:45 +0100 Subject: [PATCH] add: view.vue-config (GlobalStore hardcoded config for GlobalStore fixed variables) --- view/vue-config.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 view/vue-config.js diff --git a/view/vue-config.js b/view/vue-config.js new file mode 100644 index 0000000..dd89b35 --- /dev/null +++ b/view/vue-config.js @@ -0,0 +1,22 @@ +import {GlobalStore} from './lib/gstore-es6' + +window.gstore = new GlobalStore(); +window.gstore.add('header_title', 'ndli1718'); +window.gstore.add('notif', { + active: false, + type: 'warning', + message: 'Warning! blabla' +}); +window.gstore.add('menu_item_active', 'dashboard'); +window.gstore.add('menu_item', { + dashboard: { + label: 'Dashboard', + icon: 'dashboard' + }, profile: { + label: 'Profil', + icon: 'profile' + }, inbox: { + label: 'Boîte de réception', + icon: 'messages' + } +}); \ No newline at end of file