no more API or PopUp in pages -> common
This commit is contained in:
parent
2bc265efb0
commit
ec88f34d6a
|
@ -3,13 +3,10 @@
|
|||
/* (1) NPM libs */
|
||||
import Vue from 'vue'
|
||||
|
||||
/* (2) Internal libs */
|
||||
import {APIClient} from '../lib/api-client'
|
||||
|
||||
/* (3) Vues */
|
||||
/* (2) Vues */
|
||||
import wrapper_vue from '../vue/wrapper.vue'
|
||||
|
||||
/* (4) Data */
|
||||
/* (3) Data */
|
||||
require('../data/common');
|
||||
require('../data/home');
|
||||
|
||||
|
@ -18,11 +15,12 @@ require('../data/home');
|
|||
|
||||
/* (2) Initialisation
|
||||
---------------------------------------------------------*/
|
||||
/* (1) API */
|
||||
window.api = new APIClient(gstore.get.is_local ? 'http://ptut.com:8080/api/v/1.0/' : 'https://ptut.xdrm.io/api/v/1.0/');
|
||||
|
||||
/* (2) Render view */
|
||||
/* (1) Render view */
|
||||
new Vue({
|
||||
el: '#main-vue',
|
||||
render: h => h(wrapper_vue)
|
||||
});
|
||||
|
||||
|
||||
// popup test
|
||||
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': 'search' }, function(e){ console.log("Resultat Popup: "+!!e); });
|
|
@ -3,21 +3,19 @@
|
|||
/* (1) NPM libs */
|
||||
import Vue from 'vue'
|
||||
|
||||
/* (2) Internal libs */
|
||||
import {APIClient} from '../lib/api-client'
|
||||
|
||||
/* (3) Vues */
|
||||
/* (2) Vues */
|
||||
import wrapper_vue from '../vue/wrapper.vue'
|
||||
|
||||
/* (3) Data */
|
||||
require('../data/common');
|
||||
require('../data/home');
|
||||
|
||||
|
||||
|
||||
|
||||
/* (2) Initialisation
|
||||
---------------------------------------------------------*/
|
||||
/* (1) API */
|
||||
window.api = new APIClient(gstore.data.is_local ? 'http://ptut.com:8080/api/v/1.0/' : 'https://ptut.xdrm.io/api/v/1.0/');
|
||||
|
||||
|
||||
/* (2) Render view */
|
||||
/* (1) Render view */
|
||||
new Vue({
|
||||
el: '#main-vue',
|
||||
render: h => h(wrapper_vue)
|
||||
|
|
Loading…
Reference in New Issue