You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.6 KiB
JavaScript

6 years ago
import Vue from 'vue'
import App from './App.vue'
6 years ago
import BootstrapVue from 'bootstrap-vue'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import { library } from '@fortawesome/fontawesome-svg-core'
6 years ago
import { faCarBattery, faSeedling, faStroopwafel, faBrain, faStopwatch, faChartLine, faCode, faUserCheck, faSearchDollar, faStar, faStarHalfAlt } from '@fortawesome/free-solid-svg-icons'
6 years ago
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { VBPopover } from 'bootstrap-vue/es/directives'
import VueRouter from 'vue-router'
// Note: Vue automatically prefixes the directive name with 'v-'
Vue.directive('b-popover', VBPopover)
6 years ago
library.add(faCarBattery, faSeedling, faStroopwafel, faStar, faStarHalfAlt, faBrain, faStopwatch, faChartLine, faCode, faUserCheck, faSearchDollar)
6 years ago
Vue.component('font-awesome-icon', FontAwesomeIcon)
import SplashPage from './components/SplashPage'
import ReviewPage from './components/ReviewPage'
6 years ago
import AboutPage from './components/AboutPage'
import GlossaryPage from './components/GlossaryPage'
import FullTextPage from './components/FullTextPage'
import VideoPage from './components/VideoPage'
6 years ago
Vue.config.productionTip = false
6 years ago
Vue.use(BootstrapVue)
Vue.use(VueRouter)
const router = new VueRouter({
mode: 'history',
routes: [
{ path: '/', component: SplashPage },
6 years ago
{ path: '/review', component: ReviewPage },
{ path: '/about', component: AboutPage },
{ path: '/glossary', component: GlossaryPage },
{ path: '/fulltext', component: FullTextPage },
{ path: '/video', component: VideoPage },
6 years ago
]
})
6 years ago
new Vue({
6 years ago
router,
6 years ago
render: h => h(App),
}).$mount('#app')