Issues (195)

src/main.js (7 issues)

1
import "core-js/stable";
2
import "regenerator-runtime/runtime";
3
4
import Vue from 'vue'
5
import App from './App'
6
import router from './router'
7
import VueMoment from 'vue-moment'
8
import AsyncComputed from 'vue-async-computed'
9
import axios from "axios";
10
import vuetify from './plugins/vuetify'
11
12
13
// CSP config for webpack dynamic chunk loading
14
// eslint-disable-next-line
15
__webpack_nonce__ = btoa(OC.requestToken)
0 ignored issues
show
The variable __webpack_nonce__ seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.__webpack_nonce__.
Loading history...
The variable OC seems to be never declared. If this is a global, consider adding a /** global: OC */ 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...
16
17
// Correct the root of the app for chunk loading
18
// OC.linkTo matches the apps folders
19
// eslint-disable-next-line
20
__webpack_public_path__ = OC.linkTo('ransomware_detection', 'js/')
0 ignored issues
show
The variable __webpack_public_path__ seems to be never declared. Assigning variables without defining them first makes them global. If this was intended, consider making it explicit like using window.__webpack_public_path__.
Loading history...
21
22
import "./css/global.scss"
23
24
Vue.prototype.t = t
0 ignored issues
show
The variable t seems to be never declared. If this is a global, consider adding a /** global: t */ 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...
25
Vue.prototype.n = n
0 ignored issues
show
The variable n seems to be never declared. If this is a global, consider adding a /** global: n */ 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...
26
Vue.prototype.OC = OC
27
Vue.prototype.OCA = OCA
0 ignored issues
show
The variable OCA seems to be never declared. If this is a global, consider adding a /** global: OCA */ 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...
28
Vue.prototype.$axios = axios
29
30
Vue.use(VueMoment);
31
Vue.use(AsyncComputed);
32
33
Vue.config.devtools = true
34
35
/* eslint-disable-next-line no-new */
36
new Vue({
0 ignored issues
show
Unused Code Best Practice introduced by
The object created with new Vue({IdentifierNode(...false))),false,true))}) is not used but discarded. Consider invoking another function instead of a constructor if you are doing this purely for side effects.
Loading history...
37
	el: '#content',
38
	vuetify,
39
	router,
40
	render: h => h(App)
41
})