summaryrefslogtreecommitdiff
path: root/src/index.js
blob: 1c1bfaf987a50ee067657d4bc334e25c4f012391 (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
32
33
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, {
    props: { reportService },
  }),
});