1 | import Vue from 'vue'; |
||
2 | import VueEvents from 'vue-events'; |
||
3 | import ErrorsDetailAreaChart from '../vue/charts/Errors/ErrorsDetailAreaChart.vue'; |
||
4 | import ErrorsDetailTable from '../vue/tables/Errors/ErrorsDetailTable.vue'; |
||
5 | import RadialBarChart from '../vue/charts/common/RadialBarChart.vue'; |
||
6 | import SimpleBarChart from '../vue/charts/common/SimpleBarChart.vue'; |
||
7 | import SampleRangePicker from '../vue/common/SampleRangePicker.vue'; |
||
8 | import SamplePaneFooter from '../vue/common/SamplePaneFooter.vue'; |
||
9 | |||
10 | Vue.use(VueEvents); |
||
11 | // Create our vue instance |
||
12 | const vm = new Vue({ |
||
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
13 | el: "#cp-nav-content", |
||
14 | components: { |
||
15 | 'errors-detail-area-chart': ErrorsDetailAreaChart, |
||
16 | 'errors-detail-table': ErrorsDetailTable, |
||
17 | 'radial-bar-chart': RadialBarChart, |
||
18 | 'simple-bar-chart': SimpleBarChart, |
||
19 | 'sample-range-picker': SampleRangePicker, |
||
20 | 'sample-pane-footer': SamplePaneFooter, |
||
21 | }, |
||
22 | data: { |
||
23 | }, |
||
24 | methods: { |
||
25 | onTableRefresh(vuetable) { |
||
26 | Vue.nextTick(() => vuetable.refresh()); |
||
27 | } |
||
28 | }, |
||
29 | mounted() { |
||
30 | this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData)); |
||
31 | }, |
||
32 | }); |
||
0 ignored issues
–
show
For multi-line function calls, the closing parenthesis should be on a new line.
If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line: someFunctionCall(
$firstArgument,
$secondArgument,
$thirdArgument
); // Closing parenthesis on a new line.
Loading history...
|
|||
33 |