2023-01-10 11:13:28 +01:00
|
|
|
// jquery
|
|
|
|
import $ from 'jquery'
|
|
|
|
window.jQuery = $;
|
|
|
|
window.$ = $;
|
2022-07-21 16:15:47 +02:00
|
|
|
|
2023-01-10 11:13:28 +01:00
|
|
|
// jqueryui
|
|
|
|
import 'jqueryui'
|
|
|
|
import 'jqueryui/jquery-ui.min.css';
|
2022-07-21 16:15:47 +02:00
|
|
|
|
|
|
|
// Bootstrap
|
|
|
|
require('bootstrap');
|
|
|
|
require('bootstrap/dist/css/bootstrap.css');
|
|
|
|
|
|
|
|
// Fontawesome
|
|
|
|
require('@fortawesome/fontawesome-free/css/all.css');
|
|
|
|
|
|
|
|
// Datatables
|
|
|
|
require('datatables.net-bs4');
|
|
|
|
require('datatables.net-bs4/css/dataTables.bootstrap4.min.css');
|
|
|
|
require('./js/datatables.init.js');
|
|
|
|
|
|
|
|
// Select2
|
|
|
|
require('select2');
|
|
|
|
require('select2/dist/js/i18n/fr.js');
|
|
|
|
require('select2/dist/css/select2.css');
|
|
|
|
require('@ttskch/select2-bootstrap4-theme/dist/select2-bootstrap4.css');
|
|
|
|
$(() => {
|
|
|
|
$('.select2entity').select2(
|
|
|
|
{
|
|
|
|
theme: 'bootstrap4',
|
|
|
|
language: "fr"
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
// Spectrum-colorpicker2
|
|
|
|
require('spectrum-colorpicker2/dist/spectrum.min.js');
|
|
|
|
require('spectrum-colorpicker2/dist/spectrum.min.css');
|
|
|
|
|
|
|
|
// CropSelectJs
|
|
|
|
require('crop-select-js/crop-select-js.min.css');
|
|
|
|
window.CropSelectJs = require('crop-select-js/crop-select-js.min.js');
|
|
|
|
|
2023-01-23 09:46:34 +01:00
|
|
|
// iframe-resizer
|
|
|
|
require('iframe-resizer/js/iframeResizer.min.js');
|
|
|
|
require('iframe-resizer/js/iframeResizer.contentWindow.min.js');
|
|
|
|
|
2023-02-01 09:03:27 +01:00
|
|
|
// Slick
|
|
|
|
require('slick-carousel/slick/slick.css');
|
|
|
|
require('slick-carousel/slick/slick-theme.css');
|
|
|
|
const slick = require('slick-carousel/slick/slick.min.js');
|
|
|
|
global.slick = slick;
|
|
|
|
|
|
|
|
// Imageloaded
|
|
|
|
const imagesLoaded = require('imagesloaded/imagesloaded.js');
|
|
|
|
global.imagesLoaded = imagesLoaded;
|
|
|
|
|
|
|
|
// Masonry
|
|
|
|
const masonry = require('masonry-layout/dist/masonry.pkgd.min.js');
|
|
|
|
global.masonry = masonry;
|
|
|
|
|
2022-07-21 16:15:47 +02:00
|
|
|
// Start the Stimulus application
|
|
|
|
import './bootstrap';
|
|
|
|
|
|
|
|
// App sytle
|
|
|
|
import './styles/font.css';
|
|
|
|
import './styles/app.css';
|
|
|
|
|
|
|
|
// App js
|
|
|
|
require('./js/app.js');
|
|
|
|
|
|
|
|
|