summaryrefslogtreecommitdiff
path: root/src/index.js
blob: 3b3839d9b8175c8694969bf3adb7680f64c41a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import Vue from 'vue';
import VueRouter from 'vue-router';
import Buefy from 'buefy'
import 'buefy/lib/buefy.css'

import App from './App.vue';
import Home from './Home.vue';

import ReportService from './report-service.js';

Vue.use(VueRouter);
Vue.use(Buefy);

const reportService = new ReportService();

const router = new VueRouter({
  routes: [ {
    path: '/',
    name: 'home',
    component: Home,
    props: (route) => ({
      reportService,
    }),
  } ]
});

new Vue({
  router,
  el: '#app',
  render: h => h(App),
});