mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-18 06:54:32 +00:00
(front end prep for Purchasing Tickets module)
This commit is contained in:
22
resources/assets/js/bootstrap.js
vendored
22
resources/assets/js/bootstrap.js
vendored
@@ -1,14 +1,9 @@
|
||||
|
||||
window._ = require('lodash');
|
||||
|
||||
/**
|
||||
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
|
||||
* for JavaScript based Bootstrap features such as modals and tabs. This
|
||||
* code may be modified to fit the specific needs of your application.
|
||||
* Polyfill the global environment to add Promise support for Internet Explorer.
|
||||
*/
|
||||
|
||||
window.$ = window.jQuery = require('jquery');
|
||||
require('bootstrap-sass');
|
||||
require('es6-promise/auto');
|
||||
|
||||
/**
|
||||
* Vue is a modern JavaScript library for building interactive web interfaces
|
||||
@@ -17,19 +12,14 @@ require('bootstrap-sass');
|
||||
*/
|
||||
|
||||
window.Vue = require('vue');
|
||||
require('vue-resource');
|
||||
|
||||
/**
|
||||
* We'll register a HTTP interceptor to attach the "CSRF" header to each of
|
||||
* the outgoing requests issued by this application. The CSRF middleware
|
||||
* included with Laravel will automatically verify the header's value.
|
||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||
* to our Laravel back-end. This library automatically handles sending the
|
||||
* CSRF token as a header based on the value of the "XSRF" token cookie.
|
||||
*/
|
||||
|
||||
Vue.http.interceptors.push((request, next) => {
|
||||
request.headers.set('X-CSRF-TOKEN', Laravel.csrfToken);
|
||||
|
||||
next();
|
||||
});
|
||||
window.axios = require('axios');
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
|
||||
Reference in New Issue
Block a user