app.js 804 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* jQuery & Bootstrap Init */
  2. import jQuery from 'jquery'
  3. window.$ = window.jQuery = jQuery;
  4. /* Fix */
  5. import './fix.scss'
  6. let location = window.location;
  7. let pathname = location.pathname;
  8. window.axios = require('axios')
  9. window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'
  10. window.OT = require("@opentok/client")
  11. import Vue from 'vue'
  12. window.Vue = Vue
  13. Vue.prototype.$eventBus = new Vue()
  14. import Vuetify from 'vuetify'
  15. Vue.use(Vuetify)
  16. import store from './components/vuex/index'
  17. const files = require.context('./', true, /\.vue$/i, 'lazy').keys()
  18. files.forEach(file => {
  19. let component = file.split('/').pop().split('.')[0]
  20. Vue.component(component, () => import(`${file}`))
  21. })
  22. let app = new Vue({
  23. el: '#meetingsApp',
  24. store,
  25. vuetify: new Vuetify()
  26. })