My beer compendium
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

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