Passed
Push — v3 ( d49e4d...c31cc7 )
by Andrew
17:27 queued 08:45
created

src/assetbundles/seomatic/src/js/content-seo.js   A

Complexity

Total Complexity 5
Complexity/F 1.25

Size

Lines of Code 26
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 16
c 0
b 0
f 0
dl 0
loc 26
rs 10
wmc 5
mnd 1
bc 1
fnc 4
bpm 0.25
cpm 1.25
noi 1
1
import Vue from 'vue';
2
import VueEvents from 'vue-events';
3
import ContentSeoTable from '../vue/ContentSeoTable.vue';
4
5
Vue.use(VueEvents);
6
// Create our vue instance
7
const vm = new Vue({
0 ignored issues
show
Unused Code introduced by
The constant vm seems to be never used. Consider removing it.
Loading history...
8
    el: "#cp-nav-content",
9
    components: {
10
        'content-seo-table': ContentSeoTable,
11
    },
12
    data: {},
13
    methods: {
14
        onTableRefresh(vuetable) {
15
            Vue.nextTick(() => vuetable.refresh());
16
        }
17
    },
18
    mounted() {
19
        this.$events.$on('refresh-table', eventData => this.onTableRefresh(eventData));
20
    },
21
});
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