66 lines
1.5 KiB
JavaScript
66 lines
1.5 KiB
JavaScript
|
// JQuery
|
||
|
global.$ = window.$ = window.jQuery = require('jquery');
|
||
|
|
||
|
// JQueryui
|
||
|
require('jquery-ui');
|
||
|
|
||
|
// 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');
|
||
|
|
||
|
// bs-stepper
|
||
|
require('bs-stepper/dist/css/bs-stepper.min.css');
|
||
|
const Stepper = require('bs-stepper/dist/js/bs-stepper.min.js');
|
||
|
global.Stepper = Stepper;
|
||
|
|
||
|
// jquery-confirm
|
||
|
require('jquery-confirm/dist/jquery-confirm.min.css');
|
||
|
require('jquery-confirm/dist/jquery-confirm.min.js');
|
||
|
|
||
|
// Moment
|
||
|
const moment = require('moment');
|
||
|
global.moment = moment;
|
||
|
require('moment/locale/fr.js');
|
||
|
|
||
|
// Start the Stimulus application
|
||
|
//import './bootstrap';
|
||
|
|
||
|
// App sytle
|
||
|
import './styles/font.css';
|
||
|
import './styles/app.css';
|
||
|
|
||
|
// App js
|
||
|
require('./js/app.js');
|
||
|
|
||
|
|