Passed
Push — master ( a52040...8805a7 )
by Benjamin
12:48 queued 06:14
created

src/web/assets/videos/src/main.js   A

Complexity

Total Complexity 5
Complexity/F 1

Size

Lines of Code 33
Function Count 5

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 21
c 0
b 0
f 0
dl 0
loc 33
rs 10
wmc 5
mnd 0
bc 0
fnc 5
bpm 0
cpm 1
noi 0
1
/* eslint-disable vue/one-component-per-file */
2
3
import Vue from 'vue'
4
import utils from '@/js/mixins/utils';
5
import createStore from '@/js/createStore'
6
import Explorer from '@/js/Explorer.vue'
7
import Player from '@/js/Player.vue'
8
import Field from '@/js/Field.vue'
9
import SelectorActions from '@/js/SelectorActions.vue'
10
11
Vue.config.productionTip = false
12
13
Vue.mixin(utils)
14
15
window.VideoExplorerConstructor = Vue.extend({
16
  render: h => h(Explorer),
17
  store: createStore(),
18
})
19
20
window.VideoFieldConstructor = Vue.extend({
21
  created() {
22
    this.$store = createStore()
23
  },
24
  render: h => h(Field)
25
})
26
27
window.VideoSelectorActionsConstructor = Vue.extend({
28
  render: h => h(SelectorActions),
29
})
30
31
window.VideoPlayerConstructor = Vue.extend({
32
  render: h => h(Player),
33
})
34
35
import './css/videos.pcss'
36
37