From b09d7a9f73e9b28425326227ce8fc4c3b72fb14d Mon Sep 17 00:00:00 2001 From: schneefux Date: Wed, 30 May 2018 20:12:01 +0200 Subject: Big Routing/Tabbing/ReportService refactor, add ad blocks --- src/index.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index 1c1bfaf..1c498bb 100644 --- a/src/index.js +++ b/src/index.js @@ -2,32 +2,26 @@ import Vue from 'vue'; import VueRouter from 'vue-router'; import Buefy from 'buefy' import 'buefy/lib/buefy.css' +import Ads from 'vue-google-adsense'; import App from './App.vue'; -import Home from './Home.vue'; - -import ReportService from './report-service.js'; +import ModeTab from './ModeTab.vue'; Vue.use(VueRouter); Vue.use(Buefy); - -const reportService = new ReportService(); +Vue.use(require('vue-script2')) +Vue.use(Ads.Adsense) const router = new VueRouter({ routes: [ { path: '/', name: 'home', - component: Home, - props: (route) => ({ - reportService, - }), + component: ModeTab, } ] }); new Vue({ router, el: '#app', - render: h => h(App, { - props: { reportService }, - }), + render: h => h(App), }); -- cgit v1.3.1