1 | import VueEvents from 'vue-events'; |
||
2 | import RedirectsTable from '@/vue/RedirectsTable.vue'; |
||
3 | |||
4 | Vue.use(VueEvents); |
||
0 ignored issues
–
show
|
|||
5 | // Create our vue instance |
||
6 | const vm = new Vue({ |
||
0 ignored issues
–
show
|
|||
7 | el: "#cp-nav-content", |
||
8 | components: { |
||
9 | 'redirects-table': RedirectsTable, |
||
10 | }, |
||
11 | data: { |
||
12 | }, |
||
13 | methods: { |
||
14 | onTableRefresh (vuetable) { |
||
0 ignored issues
–
show
|
|||
15 | Vue.nextTick( () => vuetable.refresh()); |
||
0 ignored issues
–
show
The variable
Vue seems to be never declared. If this is a global, consider adding a /** global: Vue */ comment.
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.
Loading history...
|
|||
16 | } |
||
17 | }, |
||
18 | mounted() { |
||
19 | this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData)); |
||
20 | }, |
||
21 | }); |
||
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...
|
|||
22 | |||
23 | // Accept HMR as per: https://webpack.js.org/api/hot-module-replacement#accept |
||
24 | if (module.hot) { |
||
25 | module.hot.accept(); |
||
26 | } |
||
27 |
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.