silverstripe-webpack/app/client/src/js/app.js

53 lines
1.5 KiB
JavaScript
Raw Normal View History

import $ from 'jquery';
import './_consts';
2018-02-05 12:11:01 +01:00
2018-06-23 12:27:06 +02:00
// import Bootstrap
import 'popper.js';
2018-02-09 13:10:40 +01:00
import 'bootstrap/js/dist/util';
import 'bootstrap/js/dist/alert';
import 'bootstrap/js/dist/button';
import 'bootstrap/js/dist/carousel';
import 'bootstrap/js/dist/collapse';
import 'bootstrap/js/dist/dropdown';
2018-02-09 13:10:40 +01:00
import 'bootstrap/js/dist/modal';
import 'bootstrap/js/dist/tooltip';
import 'bootstrap/js/dist/popover';
import 'bootstrap/js/dist/scrollspy';
import 'bootstrap/js/dist/tab';
2018-02-05 12:11:01 +01:00
//
// Offcanvas menu
2019-09-07 03:49:31 +02:00
//import 'offcanvas-bootstrap/dist/js/bootstrap.offcanvas';
import '../scss/app.scss';
import '@a2nt/meta-lightbox/src/js/meta-lightbox';
2019-09-07 03:49:31 +02:00
// youtube video preview image
2019-11-25 08:00:33 +01:00
import '@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/js/_components/_ui.video.preview';
2019-09-07 03:49:31 +02:00
// MainUI
import '@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/js/_main';
// Uncomment it to enable meta-lightbox zooming on hover
//import 'jquery-zoom/jquery.zoom';
2019-12-02 18:49:28 +01:00
// Forms UI
import '@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/js/_components/_ui.form.basics';
import '@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/js/_components/_ui.form.validate';
import '@a2nt/ss-bootstrap-ui-webpack-boilerplate/src/js/_components/_ui.form.stepped';
2018-02-05 12:11:01 +01:00
// Import fonts and images
function importAll(r) {
return r.keys().map(r);
}
const images = importAll(
require.context('../img/', false, /\.(png|jpe?g|svg)$/),
);
const fontAwesome = importAll(
require.context('font-awesome', false, /\.(otf|eot|svg|ttf|woff|woff2)$/),
);
// Your custom JS
import './_layout';