main/view/main.js

29 lines
634 B
JavaScript
Raw Normal View History

/* (1) Imports
---------------------------------------------------------*/
/* (1) NPM libs */
2017-11-28 12:37:49 +00:00
import Vue from 'vue'
/* (2) Internal libs */
2017-11-28 16:18:56 +00:00
import {API} from './lib/api-es6'
import {WSClient,WSClientBuilder} from './lib/ws-client-es6'
2017-11-28 12:37:49 +00:00
/* (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
window.wsc = new WSClientBuilder("wss://websocket.xdrm.io");
/* (3) Render view */
2017-11-28 16:18:56 +00:00
2017-11-28 12:37:49 +00:00
new Vue({
el: '#main-vue',
render: h => h(main_vue)
2017-11-28 12:37:49 +00:00
})