diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d1f713c5..db246efb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -65,9 +65,10 @@ Version 1.5.10 - allow to group export in UI -Master branch -============= +Branch CRUD-Init +================ - improve `chill_print_or_message` to support date time; - add a module `show_hide` for javascript; - +- load assets using functions ; +- load a `runtime.js` assets for objects shared by webpack ; diff --git a/Resources/public/main.js b/Resources/public/main.js new file mode 100644 index 000000000..50d4e9740 --- /dev/null +++ b/Resources/public/main.js @@ -0,0 +1,38 @@ +// import jQuery +const $ = require('jquery'); +// create global $ and jQuery variables +global.$ = global.jQuery = $; + +const moment = require('moment'); +global.moment = moment; + +const pikaday = require('pikaday-jquery'); + +const select2 = require('select2'); +global.select2 = select2; + +// import js +import {chill} from './js/chill.js'; +global.chill = chill; + +// css +require('./sass/scratch.scss'); +require('./css/chillmain.css'); +require('./css/pikaday.css'); +require('./js/collection/collections.js'); +require('./modules/breadcrumb/index.js'); +require('./modules/download-report/index.js'); +//require('./css/scratch.css'); +//require('./css/select2/select2.css'); +require('select2/dist/css/select2.css'); +require('./modules/select_interactive_loading/index.js'); +require('./modules/export-list/export-list.scss'); +//import {ChillShowHide} from './modules/show_hide/index.js'; +//global.ChillShowHide = ChillShowHide; + +// img +require('./img/favicon.ico'); +require('./img/logo-chill-sans-slogan_white.png'); +require('./img/logo-chill-outil-accompagnement_white.png'); + + diff --git a/Resources/views/Login/login.html.twig b/Resources/views/Login/login.html.twig index 114188f75..54d5ae26c 100644 --- a/Resources/views/Login/login.html.twig +++ b/Resources/views/Login/login.html.twig @@ -15,7 +15,6 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} - @@ -48,5 +47,7 @@ + + diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 2f69e26a6..3029516d5 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -142,6 +142,7 @@ {{ include('@ChillMain/Layout/_footer.html.twig') }} +