Advertisement
Guest User

Untitled

a guest
Mar 9th, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*global Vue*/
  2.  
  3. /* weex initialized here, please do not move this line */
  4. // const router = require('./router');
  5. // const App = require('@/App.vue');
  6. // /* eslint-disable no-new */
  7. // new Vue(Vue.util.extend({el: '#root', router}, App));
  8. // router.push('/');
  9.  
  10. // The Vue build version to load with the `import` command
  11. // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  12. // import Vue from 'vue'
  13.  
  14. import Vuex from 'vuex'
  15. Vue.use(Vuex)
  16.  
  17. import App from '@/App'
  18. import router from './router'
  19. import socketio from 'socket.io-client'
  20. import VueSocketIo from 'vue-socket.io'
  21. var SocketInstance = socketio('https://alopuserver.com')
  22. Vue.use(VueSocketIo, SocketInstance)
  23.  
  24.  
  25. import VueResource from 'vue-resource'
  26. Vue.use(VueResource)
  27.  
  28. import UUID from 'vue-uuid'
  29. Vue.use(UUID)
  30. // Vue.use(VueSocketIo, 'http://alopuserver.dev')
  31. Vue.config.productionTip = false
  32. import storeOpts from '@/store'
  33. // localStorage.removeItem('vuex')
  34. const store = new Vuex.Store(storeOpts)
  35. /* eslint-disable no-new */
  36. //import all icons if you don't care about bundle size
  37. import 'vue-awesome/icons'
  38. /* Register component with one of 2 methods */
  39. import Icon from 'vue-awesome/components/Icon'
  40. Vue.component('icon', Icon)
  41.  
  42. // vue-select for selection inputs
  43. import vSelect from 'vue-select'
  44. Vue.component('v-select', vSelect)
  45.  
  46. import VueImgInputer from 'vue-img-inputer'
  47. Vue.component('VueImgInputer', VueImgInputer)
  48.  
  49. import editor from 'vue2-medium-editor'
  50. Vue.component('medium-editor', editor)
  51.  
  52. import thing from '@/components/thing'
  53. Vue.component('thing', thing)
  54.  
  55. import alopu from '@/components/alopu'
  56. Vue.component('alopu', alopu)
  57.  
  58. import object from '@/components/object'
  59. Vue.component('object', object)
  60.  
  61. import array from '@/components/array'
  62. Vue.component('array', array)
  63.  
  64. import value from '@/components/value'
  65. Vue.component('value', value)
  66.  
  67. import property from '@/components/property'
  68. Vue.component('property', property)
  69.  
  70. window.mapboxgl = require('mapbox-gl')
  71.  
  72. import VueMapbox from 'mapbox-gl-vue'
  73. Vue.component('mapbox', VueMapbox)
  74. // js
  75. // window.mapboxgl = require('mapbox-gl')
  76. var L = require('@/js/leaflet.js')
  77.  
  78. // css
  79. // require('@/styles/css/medium-editor.min.css')
  80. // require('@/styles/css/leaflet.css')
  81. // event hub
  82. const eventHub = new Vue()
  83. const jsmart = require('circular-json')
  84. Vue.mixin({
  85.     data: function() {
  86.         return {
  87.             eventHub: eventHub,
  88.             jsmart: jsmart
  89.         }
  90.     }
  91. })
  92.  
  93. window.alopu = new Vue({
  94.     el: '#root',
  95.     store,
  96.     router,
  97.     template: '<App/>',
  98.     components: { App }
  99. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement