Remove unused modules from old design
This commit is contained in:
parent
a17fb60aea
commit
e8e62b0e63
1 changed files with 0 additions and 4 deletions
|
@ -1,8 +1,6 @@
|
||||||
import Turbolinks from 'turbolinks';
|
import Turbolinks from 'turbolinks';
|
||||||
import Rails from 'rails-ujs';
|
import Rails from 'rails-ujs';
|
||||||
import ActiveStorage from '../shared/activestorage/ujs';
|
import ActiveStorage from '../shared/activestorage/ujs';
|
||||||
import Chartkick from 'chartkick';
|
|
||||||
import Highcharts from 'highcharts';
|
|
||||||
import Bloodhound from 'bloodhound-js';
|
import Bloodhound from 'bloodhound-js';
|
||||||
import jQuery from 'jquery';
|
import jQuery from 'jquery';
|
||||||
|
|
||||||
|
@ -18,7 +16,6 @@ import '../shared/rails-ujs-fix';
|
||||||
import '../shared/champs/address';
|
import '../shared/champs/address';
|
||||||
|
|
||||||
// Start Rails helpers
|
// Start Rails helpers
|
||||||
Chartkick.addAdapter(Highcharts);
|
|
||||||
Rails.start();
|
Rails.start();
|
||||||
Turbolinks.start();
|
Turbolinks.start();
|
||||||
ActiveStorage.start();
|
ActiveStorage.start();
|
||||||
|
@ -30,7 +27,6 @@ if (process.env['RAILS_ENV'] === 'test') {
|
||||||
|
|
||||||
// Expose globals
|
// Expose globals
|
||||||
window.Bloodhound = Bloodhound;
|
window.Bloodhound = Bloodhound;
|
||||||
window.Chartkick = Chartkick;
|
|
||||||
// Export jQuery globally for legacy Javascript files used in the old design
|
// Export jQuery globally for legacy Javascript files used in the old design
|
||||||
jQuery.rails = Rails;
|
jQuery.rails = Rails;
|
||||||
window.$ = jQuery;
|
window.$ = jQuery;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue