-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
52 lines (41 loc) · 985 Bytes
/
main.js
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import Vue from 'vue'
import App from './App.vue'
import VueI18n from 'vue-i18n'
import VueRouter from "vue-router";
import messages from './translations'
import config from "./config";
import Moniteur from "./components/Moniteur";
import Page404 from "./components/Page404/Page404";
import * as Sentry from '@sentry/browser';
import { Vue as VueIntegration } from '@sentry/integrations';
Vue.config.productionTip = false;
Vue.use(VueI18n);
Vue.use(VueRouter);
const i18n = new VueI18n({
locale: config.locale,
messages,
});
const routes = [
{
path: '/:room',
component: Moniteur
},
{
path: '*',
component: Page404
}
];
const router = new VueRouter({
mode: 'history',
routes
});
Sentry.init({
dsn: 'https://[email protected]/5357396',
release: 'frontend@sha',
integrations: [new VueIntegration({Vue, attachProps: true})],
});
new Vue({
i18n,
router,
render: h => h(App),
}).$mount('#app');