2018-02-19 23:53:08 +00:00
|
|
|
/* (1) Imports
|
|
|
|
---------------------------------------------------------*/
|
|
|
|
/* (1) NPM libs */
|
|
|
|
import Vue from 'vue'
|
2018-02-28 11:36:54 +00:00
|
|
|
import VueRouter from 'vue-router'
|
|
|
|
import routes from '../routes/home'
|
2018-02-19 23:53:08 +00:00
|
|
|
|
2018-02-20 21:57:52 +00:00
|
|
|
/* (2) Vues */
|
2018-02-19 23:53:08 +00:00
|
|
|
import wrapper_vue from '../vue/wrapper.vue'
|
|
|
|
|
2018-02-20 21:57:52 +00:00
|
|
|
/* (3) Data */
|
2018-02-20 14:53:31 +00:00
|
|
|
require('../data/common');
|
|
|
|
require('../data/home');
|
|
|
|
|
|
|
|
|
2018-02-19 23:53:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* (2) Initialisation
|
|
|
|
---------------------------------------------------------*/
|
2018-02-28 11:36:54 +00:00
|
|
|
/* (1) Init Router */
|
|
|
|
const router = new VueRouter({
|
|
|
|
mode: 'history',
|
|
|
|
routes: routes[0]
|
|
|
|
});
|
|
|
|
|
|
|
|
/* (2) Store router in gstore */
|
|
|
|
gstore.add('router', router);
|
|
|
|
|
|
|
|
/* (3) Render view */
|
|
|
|
Vue.use(VueRouter);
|
2018-02-19 23:53:08 +00:00
|
|
|
new Vue({
|
|
|
|
el: '#main-vue',
|
2018-02-28 11:36:54 +00:00
|
|
|
router,
|
2018-02-19 23:53:08 +00:00
|
|
|
render: h => h(wrapper_vue)
|
2018-02-20 21:57:52 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// popup test
|
2018-03-01 12:16:22 +00:00
|
|
|
// popup.ask({title: 'Un exemple de popup', content: "Un <b>PopUp</b> <i>sauvage</i> apparait !!<br>contenu HTML quelconque ...<br> une question, validation de suppression, etc.", action: 'Bouton d\'action', 'type': 'neutral' }, function(e){ console.log("Resultat Popup: "+!!e); });
|