demarches-normaliennes/app/javascript/packs/application-old.js
2018-07-25 15:14:06 +02:00

25 lines
609 B
JavaScript

import Turbolinks from 'turbolinks';
import Rails from 'rails-ujs';
import * as ActiveStorage from 'activestorage';
import Chartkick from 'chartkick';
import Highcharts from 'highcharts';
import Bloodhound from 'bloodhound-js';
import jQuery from 'jquery';
import 'select2';
import 'typeahead.js';
import '../shared/rails-ujs-fix';
import '../shared/direct-uploads';
// Start Rails helpers
Chartkick.addAdapter(Highcharts);
Rails.start();
Turbolinks.start();
ActiveStorage.start();
// Expose globals
window.Bloodhound = Bloodhound;
window.Chartkick = Chartkick;
window.$ = jQuery;
window.jQuery = jQuery;