vikunja-frontend/src/main.js

50 lines
1.4 KiB
JavaScript
Raw Normal View History

2018-08-28 22:50:22 +02:00
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import auth from './auth'
2018-08-28 22:50:22 +02:00
2018-09-12 08:22:17 +02:00
// Register the modal
import Modal from './components/modal/Modal'
Vue.component('modal', Modal)
import './vikunja.scss'
2018-09-06 19:56:44 +02:00
2018-08-28 22:50:22 +02:00
Vue.config.productionTip = false
2018-09-08 21:43:16 +02:00
// Notifications
import Notifications from 'vue-notification'
Vue.use(Notifications)
2018-09-09 17:23:06 +02:00
// Icons
import { library } from '@fortawesome/fontawesome-svg-core'
import { faSignOutAlt } from '@fortawesome/free-solid-svg-icons'
2018-09-09 19:09:46 +02:00
import { faPlus } from '@fortawesome/free-solid-svg-icons'
import { faListOl } from '@fortawesome/free-solid-svg-icons'
import { faTasks } from '@fortawesome/free-solid-svg-icons'
2018-09-10 21:06:39 +02:00
import { faCog } from '@fortawesome/free-solid-svg-icons'
import { faAngleRight } from '@fortawesome/free-solid-svg-icons'
2018-09-11 19:20:07 +02:00
import { faLayerGroup } from '@fortawesome/free-solid-svg-icons'
2018-09-11 20:16:08 +02:00
import { faTrashAlt } from '@fortawesome/free-solid-svg-icons'
import { faUsers } from '@fortawesome/free-solid-svg-icons'
2018-09-09 17:23:06 +02:00
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
library.add(faSignOutAlt)
2018-09-09 19:09:46 +02:00
library.add(faPlus)
library.add(faListOl)
library.add(faTasks)
2018-09-10 21:06:39 +02:00
library.add(faCog)
library.add(faAngleRight)
2018-09-11 19:20:07 +02:00
library.add(faLayerGroup)
2018-09-11 20:16:08 +02:00
library.add(faTrashAlt)
library.add(faUsers)
2018-09-09 17:23:06 +02:00
Vue.component('icon', FontAwesomeIcon)
// Check the user's auth status when the app starts
auth.checkAuth()
2018-08-28 22:50:22 +02:00
new Vue({
router,
2018-08-28 22:50:22 +02:00
render: h => h(App)
}).$mount('#app')