|
| 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 | + |
| 12 | +/** |
| 13 | + * Vue is a modern JavaScript library for building interactive web interfaces |
| 14 | + * using reactive data binding and reusable components. Vue's API is clean |
| 15 | + * and simple, leaving you to focus on building your next great project. |
| 16 | + */ |
| 17 | + |
| 18 | +window.Vue=require('vue'); |
| 19 | + |
| 20 | +/** |
| 21 | + * We'll load the axios HTTP library which allows us to easily issue requests |
| 22 | + * to our Laravel back-end. This library automatically handles sending the |
| 23 | + * CSRF token as a header based on the value of the "XSRF" token cookie. |
| 24 | + */ |
| 25 | + |
| 26 | +window.axios=require('axios'); |
| 27 | +//window.axios.defaults.headers.common['X-CSRF-TOKEN'] = window.Laravel.csrfToken; |
| 28 | +//window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; |
| 29 | + |
| 30 | +/** |
| 31 | + * Echo exposes an expressive API for subscribing to channels and listening |
| 32 | + * for events that are broadcast by Laravel. Echo and event broadcasting |
| 33 | + * allows your team to easily build robust real-time web applications. |
| 34 | + */ |
| 35 | +require("../dist/semantic/semantic") |
| 36 | +// import Echo from 'laravel-echo' |
| 37 | + |
| 38 | +// window.Pusher = require('pusher-js'); |
| 39 | + |
| 40 | +// window.Echo = new Echo({ |
| 41 | +// broadcaster: 'pusher', |
| 42 | +// key: 'your-pusher-key' |
| 43 | +// }); |