main/view/main.js

27 lines
512 B
JavaScript
Executable File

/* (1) Imports
---------------------------------------------------------*/
/* (1) NPM libs */
import Vue from 'vue'
/* (2) Internal libs */
import {API} from './lib/api-es6'
/* (3) Vues */
import main_vue from './vue/main.vue'
/* (2) Initialisation
---------------------------------------------------------*/
/* (1) API */
window.api = new API("http://ndli1718/api/v/1.0/");
/* (2) wsclient */
//todo: init websocket client
/* (3) Render view */
new Vue({
el: '#main-vue',
render: h => h(main_vue)
})