discord-client/webpack/main.js

35 lines
751 B
JavaScript

/* (1) Imports
---------------------------------------------------------*/
/* (1) NPM libs */
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
/* (2) Vues */
import wrapper from './vue/wrapper.vue'
/* (3) Data */
require('./common.js');
/* (2) Initialisation
---------------------------------------------------------*/
/* (1) Render view */
Vue.use(VueRouter);
new Vue({
el: '#vue',
router: gs.get.router,
render(h){ return h(wrapper); }
})
/* (3) Channel data gathering
---------------------------------------------------------*/
/* (1) Fetch channel data */
gs.get.channel.dump( require('./mockup/channels.json') );
/* (2) Initialize channel_id guess */
gs.get.channel.nav();