Completed
Push — master ( 16758d...149bc6 )
by Karl
15:57 queued 03:39
created

resources/assets/js/bootstrap.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 31
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 31
rs 10
c 0
b 0
f 0
cc 0
nc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
noi 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A bootstrap.js ➔ ??? 0 5 1
1
2
window._ = require('lodash');
3
4
/**
5
 * We'll load jQuery and the Bootstrap jQuery plugin which provides support
6
 * for JavaScript based Bootstrap features such as modals and tabs. This
7
 * code may be modified to fit the specific needs of your application.
8
 */
9
10
window.$ = window.jQuery = require('jquery');
11
require('bootstrap-sass');
12
13
/**
14
 * Vue is a modern JavaScript library for building interactive web interfaces
15
 * using reactive data binding and reusable components. Vue's API is clean
16
 * and simple, leaving you to focus on building your next great project.
17
 */
18
19
window.Vue = require('vue');
20
require('vue-resource');
21
22
/**
23
 * We'll register a HTTP interceptor to attach the "CSRF" header to each of
24
 * the outgoing requests issued by this application. The CSRF middleware
25
 * included with Laravel will automatically verify the header's value.
26
 */
27
28
Vue.http.interceptors.push((request, next) => {
0 ignored issues
show
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...
29
    request.headers['X-CSRF-TOKEN'] = Laravel.csrfToken;
0 ignored issues
show
Bug introduced by
The variable Laravel seems to be never declared. If this is a global, consider adding a /** global: Laravel */ 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...
30
31
    next();
32
});
33
34
/**
35
 * Echo exposes an expressive API for subscribing to channels and listening
36
 * for events that are broadcast by Laravel. Echo and event broadcasting
37
 * allows your team to easily build robust real-time web applications.
38
 */
39
40
// import Echo from "laravel-echo"
41
42
// window.Echo = new Echo({
43
//     broadcaster: 'pusher',
44
//     key: 'your-pusher-key'
45
// });
46