Library/frontend/src/main.js

39 lines
851 B
JavaScript
Raw Normal View History

2017-11-09 09:31:03 +00:00
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
2017-11-09 11:19:53 +00:00
import auth from './auth'
2017-11-09 09:31:03 +00:00
2017-11-10 13:41:57 +00:00
// Semantic UI
import '../node_modules/semantic-ui-css/semantic.min.css'
2017-11-09 15:27:43 +00:00
// Grid import
import Grid from './components/Grid'
// Font-awesome icons import
2017-11-09 13:24:59 +00:00
import 'vue-awesome/icons'
import Icon from 'vue-awesome/components/Icon'
2017-11-10 10:49:02 +00:00
// Paginate import
import VuePaginate from 'vue-paginate'
2017-11-09 15:27:43 +00:00
// Icons setup
2017-11-09 13:24:59 +00:00
Vue.component('icon', Icon)
2017-11-09 15:27:43 +00:00
2017-11-09 11:19:53 +00:00
// Check the user's auth status when the app starts
auth.checkAuth()
2017-11-09 09:31:03 +00:00
2017-11-09 15:27:43 +00:00
// Register Grid component
Vue.component('grid', Grid)
2017-11-10 10:49:02 +00:00
// Paginate setup
Vue.use(VuePaginate)
2017-11-09 09:31:03 +00:00
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
template: '<App/>',
components: { App }
})