1 |
5d28dbf4
|
Marek Lovčí
|
window._ = require('lodash');
|
2 |
|
|
|
3 |
ab1bb0fc
|
Adam Mištera
|
/**
|
4 |
|
|
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
|
5 |
|
|
* for JavaScript based Bootstrap features such as modals and tabs. This
|
6 |
|
|
* code may be modified to fit the specific needs of your application.
|
7 |
|
|
*/
|
8 |
|
|
|
9 |
|
|
try {
|
10 |
|
|
window.Popper = require('popper.js').default;
|
11 |
|
|
window.$ = window.jQuery = require('jquery');
|
12 |
|
|
|
13 |
|
|
require('bootstrap');
|
14 |
|
|
} catch (e) {}
|
15 |
|
|
|
16 |
5d28dbf4
|
Marek Lovčí
|
/**
|
17 |
|
|
* We'll load the axios HTTP library which allows us to easily issue requests
|
18 |
|
|
* to our Laravel back-end. This library automatically handles sending the
|
19 |
|
|
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
20 |
|
|
*/
|
21 |
|
|
|
22 |
|
|
window.axios = require('axios');
|
23 |
|
|
|
24 |
|
|
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
25 |
|
|
|
26 |
|
|
/**
|
27 |
|
|
* Echo exposes an expressive API for subscribing to channels and listening
|
28 |
|
|
* for events that are broadcast by Laravel. Echo and event broadcasting
|
29 |
|
|
* allows your team to easily build robust real-time web applications.
|
30 |
|
|
*/
|
31 |
|
|
|
32 |
|
|
// import Echo from 'laravel-echo';
|
33 |
|
|
|
34 |
|
|
// window.Pusher = require('pusher-js');
|
35 |
|
|
|
36 |
|
|
// window.Echo = new Echo({
|
37 |
|
|
// broadcaster: 'pusher',
|
38 |
|
|
// key: process.env.MIX_PUSHER_APP_KEY,
|
39 |
|
|
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
|
40 |
ab1bb0fc
|
Adam Mištera
|
// encrypted: true
|
41 |
5d28dbf4
|
Marek Lovčí
|
// });
|