2018-08-28 22:50:22 +02:00
|
|
|
import Vue from 'vue'
|
|
|
|
import App from './App.vue'
|
2018-09-06 19:46:09 +02:00
|
|
|
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)
|
|
|
|
|
2018-12-25 23:41:55 +01:00
|
|
|
// Register the task overview component
|
2019-04-29 23:41:39 +02:00
|
|
|
import TaskOverview from './components/tasks/ShowTasks'
|
2018-12-25 23:41:55 +01:00
|
|
|
Vue.component('TaskOverview', TaskOverview)
|
|
|
|
|
|
|
|
// Add CSS
|
2018-09-09 19:51:33 +02:00
|
|
|
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'
|
2018-09-09 22:09:20 +02:00
|
|
|
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'
|
2018-09-14 07:23:25 +02:00
|
|
|
import { faUsers } from '@fortawesome/free-solid-svg-icons'
|
2018-09-14 08:29:09 +02:00
|
|
|
import { faUser } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
import { faLock } from '@fortawesome/free-solid-svg-icons'
|
2018-09-18 07:38:26 +02:00
|
|
|
import { faPen } from '@fortawesome/free-solid-svg-icons'
|
2018-11-25 22:02:22 +01:00
|
|
|
import { faTimes } from '@fortawesome/free-solid-svg-icons'
|
2018-12-25 16:03:51 +01:00
|
|
|
import { faTachometerAlt } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
import { faCalendar } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
import { faBars } from '@fortawesome/free-solid-svg-icons'
|
|
|
|
import { faPowerOff } from '@fortawesome/free-solid-svg-icons'
|
2018-12-25 23:41:55 +01:00
|
|
|
import { faCalendarWeek } from '@fortawesome/free-solid-svg-icons'
|
2019-03-03 16:03:08 +01:00
|
|
|
import { faExclamation } from '@fortawesome/free-solid-svg-icons'
|
2019-03-07 20:48:40 +01:00
|
|
|
import { faTags } from '@fortawesome/free-solid-svg-icons'
|
2019-04-23 21:50:37 +02:00
|
|
|
import { faChevronDown } from '@fortawesome/free-solid-svg-icons'
|
2019-04-29 23:41:39 +02:00
|
|
|
import { faCheck } from '@fortawesome/free-solid-svg-icons'
|
2018-12-25 16:03:51 +01:00
|
|
|
import { faTimesCircle } from '@fortawesome/free-regular-svg-icons'
|
2018-12-25 23:41:55 +01:00
|
|
|
import { faCalendarAlt } from '@fortawesome/free-regular-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)
|
2018-09-09 22:09:20 +02:00
|
|
|
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)
|
2018-09-14 07:23:25 +02:00
|
|
|
library.add(faUsers)
|
2018-09-14 08:29:09 +02:00
|
|
|
library.add(faUser)
|
|
|
|
library.add(faLock)
|
2018-09-18 07:38:26 +02:00
|
|
|
library.add(faPen)
|
2018-11-25 22:02:22 +01:00
|
|
|
library.add(faTimes)
|
2018-12-25 16:03:51 +01:00
|
|
|
library.add(faTachometerAlt)
|
|
|
|
library.add(faCalendar)
|
|
|
|
library.add(faTimesCircle)
|
|
|
|
library.add(faBars)
|
|
|
|
library.add(faPowerOff)
|
2018-12-25 23:41:55 +01:00
|
|
|
library.add(faCalendarWeek)
|
|
|
|
library.add(faCalendarAlt)
|
2019-03-03 16:03:08 +01:00
|
|
|
library.add(faExclamation)
|
2019-03-07 20:48:40 +01:00
|
|
|
library.add(faTags)
|
2019-04-23 21:50:37 +02:00
|
|
|
library.add(faChevronDown)
|
2019-04-29 23:41:39 +02:00
|
|
|
library.add(faCheck)
|
2018-09-09 17:23:06 +02:00
|
|
|
|
|
|
|
Vue.component('icon', FontAwesomeIcon)
|
|
|
|
|
2018-12-25 16:03:51 +01:00
|
|
|
// Tooltip
|
|
|
|
import VTooltip from 'v-tooltip'
|
|
|
|
Vue.use(VTooltip)
|
|
|
|
|
|
|
|
// Set focus
|
|
|
|
Vue.directive('focus', {
|
|
|
|
// When the bound element is inserted into the DOM...
|
|
|
|
inserted: function (el) {
|
|
|
|
// Focus the element
|
|
|
|
el.focus()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2018-09-06 19:46:09 +02:00
|
|
|
// Check the user's auth status when the app starts
|
|
|
|
auth.checkAuth()
|
|
|
|
|
2018-08-28 22:50:22 +02:00
|
|
|
new Vue({
|
2018-09-06 19:46:09 +02:00
|
|
|
router,
|
2018-08-28 22:50:22 +02:00
|
|
|
render: h => h(App)
|
|
|
|
}).$mount('#app')
|