Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
axios.interceptors.response.use(
(response) => response,
(error) => Promise.reject(error.response)
)
// Echo
// import EchoLib from 'laravel-echo'
// window.Echo = new EchoLib({
// broadcaster: 'pusher',
// key: 'your-pusher-key'
// });
// vue-awesome
require('./modules/icons')
Vue.component('icon', require('vue-awesome/components/Icon').default)
Vue.component('iconTypes', require('./components/utils/icon-types.vue').default)
/* Components */
Vue.component('MediaManager', require('./components/manager.vue').default)
Vue.component('MyNotification', require('vue-notif').default)
Vue.component('MyDropdown', require('./components/utils/dropdown.vue').default)
/* Events */
if ('connection' in navigator) {
if (!navigator.connection.saveData) {
require('./modules/events')
}
}
import 'vue-awesome/icons/archive'
import 'vue-awesome/icons/globe'
import 'vue-awesome/icons/qrcode'
import 'vue-awesome/icons/keyboard-o'
import 'vue-awesome/icons/file'
import 'vue-awesome/icons/file-o'
import 'vue-awesome/icons/files-o'
import 'vue-awesome/icons/folder'
import 'vue-awesome/icons/search'
import 'vue-awesome/icons/times'
import 'vue-awesome/icons/clone'
import 'vue-awesome/icons/arrow-up'
import 'vue-awesome/icons/arrow-down'
import 'vue-awesome/icons/arrow-right'
import 'vue-awesome/icons/download'
Vue.component('icon', require('vue-awesome/components/Icon').default)
/* Components */
Vue.component('Lingo', require('./Main/container').default)
Vue.component('MyNotification', require('vue-notif').default)
window.keycode = require('keycode')
// axios
window.axios = require('axios')
axios.defaults.headers.common = {
'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content'),
'X-Requested-With': 'XMLHttpRequest'
}
axios.interceptors.response.use(
(response) => response,
(error) => Promise.reject(error.response)
)
// vue-awesome
import 'vue-awesome/icons/flag'
Vue.component('icon', require('vue-awesome/components/Icon').default)
/* Components */
Vue.component('Odin', require('./Odin.vue').default)
Vue.component('MyNotification', require('vue-notif').default)
/* Events */
EventHub.listen('odin-show', () => {})
EventHub.listen('odin-hide', () => {})