Total Complexity | 1 |
Complexity/F | 0 |
Lines of Code | 34 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import Vue from 'vue' |
||
2 | import VueI18n from 'vue-i18n' |
||
3 | // components |
||
4 | import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome' |
||
5 | // app |
||
6 | import Feedback from './feedback' |
||
7 | // messages |
||
8 | import Messages from '../../localization/feedback' |
||
9 | import mergeMessages from '../../localization/shared/_all' |
||
10 | |||
11 | Vue.config.productionTip = false; |
||
12 | |||
13 | |||
14 | if (document.getElementById("feedback") !== null) { |
||
15 | // register plugins |
||
16 | Vue.use(VueI18n); |
||
17 | |||
18 | // register components |
||
19 | Vue.component('font-awesome-icon', FontAwesomeIcon); |
||
20 | |||
21 | // initialize messages |
||
22 | const i18n = new VueI18n({ |
||
23 | locale: document.documentElement.lang.substr(0, 2), |
||
24 | messages: mergeMessages(Messages), |
||
25 | }); |
||
26 | |||
27 | // boot app |
||
28 | new Vue({ |
||
|
|||
29 | i18n, |
||
30 | el: '#feedback', |
||
31 | template: '<Feedback/>', |
||
32 | components: {Feedback} |
||
33 | }); |
||
34 | } |