demarches-normaliennes/app/javascript/packs/application-old.js

29 lines
769 B
JavaScript
Raw Normal View History

import '../shared/polyfills';
import Turbolinks from 'turbolinks';
import Rails from 'rails-ujs';
2018-12-04 11:36:45 +01:00
import * as ActiveStorage from 'activestorage';
import jQuery from 'jquery';
2019-02-13 14:16:22 +01:00
import '../shared/activestorage/ujs';
2018-08-09 16:45:56 +02:00
import '../shared/sentry';
import '../shared/rails-ujs-fix';
2018-08-31 12:56:56 +02:00
import '../shared/safari-11-file-xhr-workaround';
import '../shared/autocomplete';
import '../shared/remote-input';
import '../shared/franceconnect';
// Start Rails helpers
Rails.start();
Turbolinks.start();
ActiveStorage.start();
// Disable jQuery-driven animations during tests
if (process.env['RAILS_ENV'] === 'test') {
jQuery.fx.off = true;
}
// Export jQuery globally for legacy Javascript files used in the old design
2018-08-09 11:53:59 +02:00
jQuery.rails = Rails;
window.$ = jQuery;
window.jQuery = jQuery;