Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 25 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import VueEvents from 'vue-events'; |
||
2 | import Confetti from '@/vue/Confetti.vue'; |
||
3 | import DashboardChart from '@/vue/DashboardChart.vue'; |
||
4 | import DashboardTable from '@/vue/DashboardTable.vue'; |
||
5 | |||
6 | Vue.use(VueEvents); |
||
|
|||
7 | // Create our vue instance |
||
8 | const vm = new Vue({ |
||
9 | el: "#cp-nav-content", |
||
10 | components: { |
||
11 | 'confetti': Confetti, |
||
12 | 'dashboard-chart': DashboardChart, |
||
13 | 'dashboard-table': DashboardTable, |
||
14 | }, |
||
15 | data: { |
||
16 | }, |
||
17 | methods: { |
||
18 | onTableRefresh (vuetable) { |
||
19 | Vue.nextTick( () => vuetable.refresh()); |
||
20 | } |
||
21 | }, |
||
22 | mounted() { |
||
23 | this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData)); |
||
24 | }, |
||
25 | }); |
||
26 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.