2018-09-11 17:53:11 +02:00
|
|
|
import '../shared/polyfills';
|
2018-07-12 11:50:47 +02:00
|
|
|
import Turbolinks from 'turbolinks';
|
2019-07-02 14:38:42 +02:00
|
|
|
import Rails from '@rails/ujs';
|
|
|
|
import * as ActiveStorage from '@rails/activestorage';
|
2018-07-12 11:50:47 +02:00
|
|
|
import jQuery from 'jquery';
|
|
|
|
|
2019-08-01 15:22:37 +02:00
|
|
|
import '../shared/page-update-event';
|
2019-02-13 14:16:22 +01:00
|
|
|
import '../shared/activestorage/ujs';
|
2018-07-12 11:50:47 +02:00
|
|
|
import '../shared/rails-ujs-fix';
|
2018-08-31 12:56:56 +02:00
|
|
|
import '../shared/safari-11-file-xhr-workaround';
|
2020-01-13 16:26:27 +01:00
|
|
|
import '../shared/autocomplete';
|
2018-08-28 16:42:16 +02:00
|
|
|
import '../shared/remote-input';
|
2018-10-02 16:54:08 +02:00
|
|
|
import '../shared/franceconnect';
|
2018-07-12 11:50:47 +02:00
|
|
|
|
|
|
|
// Start Rails helpers
|
|
|
|
Rails.start();
|
|
|
|
Turbolinks.start();
|
|
|
|
ActiveStorage.start();
|
|
|
|
|
2018-08-01 11:39:47 +02:00
|
|
|
// 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;
|
2018-07-12 11:50:47 +02:00
|
|
|
window.$ = jQuery;
|
|
|
|
window.jQuery = jQuery;
|