Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 43 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 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 |