-
-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathmain.js
58 lines (51 loc) · 1.97 KB
/
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
53
54
55
56
57
58
import Vue from 'vue'
import Buefy from 'buefy'
import i18n from './i18n'
import VueAnalytics from 'vue-analytics'
import App from './App.vue'
import store from './store'
import './styles/vocab.scss'
import * as Sentry from '@sentry/browser'
import * as Integrations from '@sentry/integrations'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faCopy } from '@fortawesome/free-solid-svg-icons/faCopy'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { faCreativeCommons } from '@fortawesome/free-brands-svg-icons/faCreativeCommons'
import { faCreativeCommonsBy } from '@fortawesome/free-brands-svg-icons/faCreativeCommonsBy'
import { faCreativeCommonsNc } from '@fortawesome/free-brands-svg-icons/faCreativeCommonsNc'
import { faCreativeCommonsNd } from '@fortawesome/free-brands-svg-icons/faCreativeCommonsNd'
import { faCreativeCommonsSa } from '@fortawesome/free-brands-svg-icons/faCreativeCommonsSa'
import { faCreativeCommonsZero } from '@fortawesome/free-brands-svg-icons/faCreativeCommonsZero'
library.add(
faCopy, faCreativeCommons, faCreativeCommonsBy,
faCreativeCommonsNc, faCreativeCommonsNd, faCreativeCommonsSa,
faCreativeCommonsZero
)
Vue.component('vue-fontawesome', FontAwesomeIcon)
Vue.config.productionTip = false
Vue.use(Buefy)
if (process.env.NODE_ENV === 'production') {
Vue.use(VueAnalytics, {
id: 'UA-2010376-41',
autoTracking: {
screenview: true
}
})
}
Sentry.init({
dsn: process.env.NODE_ENV === 'production'
? 'https://8c09726e231d4cf780c541f40d3639a9@sentry.io/3009295' // cc-chooser-prod project
: 'https://ab63acb8c1464466869182dd53c7046d@sentry.io/3009597', // cc-chooser-dev project
integrations: [
new Integrations.Vue({
Vue,
attachProps: true,
logErrors: !process.env.NODE_ENV === 'production' // Only log errors in dev env
})
]
})
new Vue({
store,
i18n,
render: h => h(App)
}).$mount('#app')