reorganize assets: move files and adapt links, remove unused

* chill: chill theme entrypoint
* lib: local libs, called in several place but don't have entrypoint
* module: local libs with specific entrypoints
* page: pages with specific entrypoints
* vuejs: vue components with specific entrypoints

remove local libs jquery and select2, they already exists in node_modules
remove duplicate fonts
This commit is contained in:
2021-07-23 14:58:37 +02:00
parent d20a3cf9d4
commit 8384508c1a
331 changed files with 89 additions and 14335 deletions

View File

@@ -40,22 +40,24 @@ buildCKEditor = function(encore)
module.exports = function(encore, entries)
{
// Push into "chill" entrypoint
entries.push(__dirname + '/Resources/public/main.js');
entries.push(__dirname + '/Resources/public/chill/index.js');
// Aliases are used when webpack is trying to resolve modules path
encore.addAliases({
ChillMainAssets: __dirname + '/Resources/public',
ShowHide: __dirname + '/Resources/public/modules/show_hide'
ShowHide: __dirname + '/Resources/public/lib/show_hide',
Tabs: __dirname + '/Resources/public/lib/tabs'
});
// Page entrypoints
encore.addEntry('page_login', __dirname + '/Resources/public/modules/login_page/index.js');
encore.addEntry('page_login', __dirname + '/Resources/public/page/login/index.js');
buildCKEditor(encore);
// Modules entrypoints
encore.addEntry('mod_forkawesome', __dirname + '/Resources/public/modules/forkawesome/index.js');
encore.addEntry('mod_bootstrap', __dirname + '/Resources/public/modules/bootstrap/index.js');
buildCKEditor(encore);
encore.addEntry('mod_ckeditor5', __dirname + '/Resources/public/modules/ckeditor5/index.js');
encore.addEntry('mod_forkawesome', __dirname + '/Resources/public/module/forkawesome/index.js');
encore.addEntry('mod_bootstrap', __dirname + '/Resources/public/module/bootstrap/index.js');
encore.addEntry('mod_ckeditor5', __dirname + '/Resources/public/module/ckeditor5/index.js');
// Vue entrypoints
encore.addEntry('vue_address', __dirname + '/Resources/public/vuejs/Address/index.js');