24 lines
565 B
JavaScript
24 lines
565 B
JavaScript
|
/* (1) Imports
|
||
|
---------------------------------------------------------*/
|
||
|
/* (1) NPM libs */
|
||
|
import Vue from 'vue'
|
||
|
|
||
|
/* (2) Internal libs */
|
||
|
import {APIClient} from '../lib/api-client'
|
||
|
|
||
|
/* (3) Vues */
|
||
|
import wrapper_vue from '../vue/wrapper.vue'
|
||
|
|
||
|
|
||
|
|
||
|
/* (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 */
|
||
|
new Vue({
|
||
|
el: '#main-vue',
|
||
|
render: h => h(wrapper_vue)
|
||
|
});
|