app/javascript/packs/application.js
/* eslint no-console:0 */
// This file is automatically compiled by Webpack, along with any other files
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
//
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate
// layout file, like app/views/layouts/application.html.erb
import Rails from 'rails-ujs';
import availability from '../availability';
import bookCovers from '../book_covers';
import search from '../search';
import '../psulib_blacklight';
import '../psulib_blacklight_range_limit';
import '../blacklight_overrides';
import '../iiif_viewer';
require.context('../psulib_blacklight/images/', true);
document.addEventListener('DOMContentLoaded', () => {
Rails.start();
availability.loadAvailability();
bookCovers.start();
search.autoPlaceholder();
Blacklight.doBookmarkToggleBehavior();
Blacklight.doSearchContextBehavior();
});