-
Notifications
You must be signed in to change notification settings - Fork 4
/
application.js
29 lines (27 loc) · 992 Bytes
/
application.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
27
28
29
import Vue from 'vue/dist/vue.esm'
import system from 'lux-design-system'
import 'lux-design-system/dist/system/system.css'
import 'lux-design-system/dist/system/tokens/tokens.scss'
import store from '../store'
import DocumentAdder from '../components/document_adder'
import PlaylistMembers from '../components/playlist_members'
import axios from 'axios'
import OrderManager from '../components/OrderManager.vue'
Vue.use(system)
// mount the filemanager app
document.addEventListener('DOMContentLoaded', () => {
// Set CSRF token for axios requests.
axios.defaults.headers.common['X-CSRF-Token'] = document.querySelector('meta[name="csrf-token"]').getAttribute('content')
var elements = document.getElementsByClassName('lux')
for(var i = 0; i < elements.length; i++){
new Vue({
el: elements[i],
store,
components: {
'document-adder': DocumentAdder,
'playlistMembers': PlaylistMembers,
'order-manager': OrderManager
}
})
}
})