Completed
Push — dev5 ( c580cf...76b71a )
by Ron
27:04
created

resources/js/app.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 110
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 10
c 0
b 0
f 0
dl 0
loc 110
rs 10
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 2
1
/*
2
*   Vue, Bootstrap and third party libraries
3
*/
4
window.Vue              = require('vue');
5
window.axios            = require('axios');
6
window.BootstrapVue     = require('bootstrap-vue');
7
window.moment           = require('moment');
8
//import ClickConfirm       from 'click-confirm';
9
//import vue2Dropzone       from 'vue2-dropzone';
10
//import VueClipboard       from 'vue-clipboard2';
11
//import Editor             from '@tinymce/tinymce-vue';
12
//import VueGoodTablePlugin from 'vue-good-table';
13
////import vSelect            from 'vue-select';   -> Get rid of this
14
//import draggable          from 'vuedraggable';
15
//import VeeValidate        from 'vee-validate';
16
//import Multiselect        from 'vue-multiselect';
17
//
18
///*
19
//*   The TinyMCE library
20
//*/
21
//require('tinymce');
22
//require('tinymce/themes/silver');
23
//require('tinymce/themes/mobile');
24
//require('tinymce/plugins/advlist');
25
//require('tinymce/plugins/autolink');
26
//require('tinymce/plugins/lists');
27
//require('tinymce/plugins/link');
28
//require('tinymce/plugins/image');
29
//require('tinymce/plugins/table');
30
//
31
///*
32
//*   Third party components
33
//*/
34
//Vue.use(VeeValidate, {fieldsBagName: 'formFields'});
35
//Vue.use(VueClipboard);
36
//Vue.use(VueGoodTablePlugin);
37
//Vue.component('clickConfirm', ClickConfirm);
38
//Vue.component('vue-dropzone', vue2Dropzone);
39
//Vue.component('editor',       require('@tinymce/tinymce-vue').default);
40
////Vue.component('v-select',     vSelect)
41
//Vue.component('draggable',    draggable);
42
//Vue.component('multiselect',  Multiselect);
43
//
44
///*
45
//*   General Components
46
//*/
47
//Vue.component('navbar',        require('./components/NavBar.vue').default);
48
//Vue.component('go-back',       require('./components/GoBack.vue').default);
49
//Vue.component('download-all',  require('./components/DownloadAll.vue').default);
50
//Vue.component('notifications', require('./components/Notifications.vue').default);
51
//
52
///*
53
//*   File Link Components
54
//*/
55
//Vue.component('list-file-links',   require('./components/fileLinks/ListFileLinks.vue').default);
56
//Vue.component('new-file-link',     require('./components/fileLinks/NewFileLink.vue').default);
57
//Vue.component('link-details',      require('./components/fileLinks/LinkDetails.vue').default);
58
//Vue.component('link-instructions', require('./components/fileLinks/LinkInstructions.vue').default);
59
//Vue.component('link-files',        require('./components/fileLinks/LinkFiles.vue').default);
60
//Vue.component('user-upload',       require('./components/fileLinks/UserFileUpload.vue').default);
61
//
62
///*
63
//*   Systems components
64
//*/
65
//Vue.component('system-files', require('./components/system/SystemFiles.vue').default);
66
//
67
///*
68
//*   Customer Components
69
//*/
70
//Vue.component('customer-list',     require('./components/customer/customerList.vue').default);
71
//Vue.component('new-customer-form', require('./components/customer/newCustomer.vue').default);
72
//Vue.component('customer-details',  require('./components/customer/customerDetails.vue').default);
73
//Vue.component('customer-systems',  require('./components/customer/customerSystems.vue').default);
74
//Vue.component('customer-contacts', require('./components/customer/customerContacts.vue').default);
75
//Vue.component('customer-notes',    require('./components/customer/CustomerNotes.vue').default);
76
//Vue.component('customer-files',    require('./components/customer/customerFiles.vue').default);
77
//
78
///*
79
//*   Tech Tip Components
80
//*/
81
//Vue.component('search-tech-tips', require('./components/tips/searchTips.vue').default);
82
//Vue.component('new-tip-form',     require('./components/tips/newTipForm.vue').default);
83
//
84
///*
85
//*   Admin Components
86
//*/
87
//Vue.component('user-list',        require('./components/admin/userList.vue').default);
88
//Vue.component('admin-file-links', require('./components/admin/fileLinks.vue').default);
89
//
90
///*
91
//*   Installer Components
92
//*/
93
//Vue.component('logo-replace',     require('./components/installer/logoReplace.vue').default);
94
//Vue.component('test-email',       require('./components/installer/testEmail.vue').default);
95
//Vue.component('new-system-form',  require('./components/installer/newSystem.vue').default);
96
//Vue.component('edit-system-form', require('./components/installer/editSystem.vue').default);
97
98
/*
99
*   Include CSRF toden in all axios headers
100
*/
101
window.axios.defaults.headers.common = {
102
    'X-Requested-With': 'XMLHttpRequest',
103
    'X-CSRF-TOKEN': window.techBench.csrfToken
104
}
105
106
/*
107
*   Initialize app
108
*/
109
window.onload = function() {
110
    const app = new Vue({
0 ignored issues
show
Unused Code introduced by
The constant app seems to be never used. Consider removing it.
Loading history...
Bug introduced by
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...
111
        el: '#app'
112
    });
113
}
114