2021-04-10 05:58:01 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue';
|
|
|
|
import VueRouter, { RouteConfig } from 'vue-router';
|
|
|
|
import AttemptList from '@/components/AttemptList.vue';
|
2021-04-11 09:34:39 +00:00
|
|
|
import Home from '@/components/Home.vue';
|
2021-04-10 05:58:01 +00:00
|
|
|
import Stats from '@/components/Stats.vue';
|
2021-04-14 15:27:03 +00:00
|
|
|
import SearchResult from '@/components/SearchResult.vue';
|
2021-04-10 05:58:01 +00:00
|
|
|
import 'bootstrap/dist/css/bootstrap.css';
|
|
|
|
import 'bootstrap-vue/dist/bootstrap-vue.css';
|
|
|
|
import '@fontsource/rubik';
|
|
|
|
import '@fontsource/secular-one';
|
|
|
|
import App from './App.vue';
|
|
|
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
// Make BootstrapVue available throughout your project
|
|
|
|
Vue.use(BootstrapVue);
|
|
|
|
// Optionally install the BootstrapVue icon components plugin
|
|
|
|
Vue.use(IconsPlugin);
|
|
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
|
|
const routes: Array<RouteConfig> = [
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'Home',
|
2021-04-11 09:34:39 +00:00
|
|
|
component: Home,
|
2021-04-10 05:58:01 +00:00
|
|
|
alias: '/home',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/attempts',
|
|
|
|
name: 'Attempt List',
|
|
|
|
component: AttemptList,
|
|
|
|
props: {
|
|
|
|
// items: testAttempts,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/stats',
|
|
|
|
name: 'Stats',
|
|
|
|
component: Stats,
|
|
|
|
},
|
2021-04-14 15:27:03 +00:00
|
|
|
{
|
|
|
|
path: '/search',
|
|
|
|
name: 'Search',
|
|
|
|
component: SearchResult,
|
|
|
|
}
|
2021-04-10 05:58:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
mode: 'history',
|
|
|
|
base: process.env.BASE_URL,
|
|
|
|
routes,
|
|
|
|
});
|
|
|
|
|
|
|
|
new Vue({
|
|
|
|
router,
|
|
|
|
render: (h) => h(App),
|
|
|
|
}).$mount('#app');
|