-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmanager.js
26 lines (22 loc) · 839 Bytes
/
manager.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Libs */
window.EventHub = require('vuemit')
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', () => {})