Make code default for React things.

This commit is contained in:
James Cole
2019-01-03 19:01:15 +01:00
parent 1c2206cb9f
commit 577f024310
6 changed files with 30 additions and 6848 deletions

View File

@@ -1,4 +1,3 @@
/*
* bootstrap.js
* Copyright (c) 2018 thegrumpydictator@gmail.com
@@ -26,13 +25,13 @@ window._ = require('lodash');
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.Popper = require('popper.js').default;
window.$ = window.jQuery = require('jquery');
require('bootstrap');
} catch (e) {}
require('bootstrap/dist/js/bootstrap.bundle.js');
} catch (e) {
console.error('No bootstrap?');
}
/**
* We'll load the axios HTTP library which allows us to easily issue requests
@@ -58,6 +57,8 @@ if (token) {
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
}
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting