ptut-vhost/webpack/page/home.js

28 lines
632 B
JavaScript
Raw Normal View History

/* (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'
/* (4) Data */
require('../data/common');
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 */
new Vue({
el: '#main-vue',
render: h => h(wrapper_vue)
});