Passed
Push — 1.2 ( 2544d0...f6cea4 )
by Quentin
07:12
created

frontend/js/main-free.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 43
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 24
c 0
b 0
f 0
dl 0
loc 43
rs 10
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0
1
import Vue from 'vue'
2
import store from '@/store'
3
4
// General shared behaviors
5
import main from '@/main'
6
import search from '@/main-search'
7
import openMediaLibrary from '@/behaviors/openMediaLibrary'
8
9
// Plugins
10
import A17Config from '@/plugins/A17Config'
11
import A17Notif from '@/plugins/A17Notif'
12
13
// Store Modules
14
import form from '@/store/modules/form'
15
import browser from '@/store/modules/browser'
16
17
// Page Components
18
import a17Fieldset from '@/components/Fieldset.vue'
19
import a17Browser from '@/components/Browser.vue'
20
21
// configuration
22
Vue.use(A17Config)
23
Vue.use(A17Notif)
24
25
store.registerModule('form', form)
26
store.registerModule('browser', browser)
27
28
/* eslint-disable no-new */
29
/* eslint no-unused-vars: "off" */
30
window.vm = new Vue({
31
  store, // inject store to all children
32
  el: '#app',
33
  components: {
34
    'a17-fieldset': a17Fieldset,
35
    'a17-browser': a17Browser
36
  },
37
  created: function () {
38
    openMediaLibrary()
39
  }
40
})
41
42
// DOM Ready general actions
43
document.addEventListener('DOMContentLoaded', main)
44