Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion build/build-modules-js/init/minify-vendor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const RootPath = process.cwd();

const folders = [
'media/vendor/accessibility/js',
'media/vendor/chosen/js',
'media/vendor/debugbar',
'media/vendor/diff/js',
'media/vendor/es-module-shims/js',
Expand Down
15 changes: 1 addition & 14 deletions build/build-modules-js/init/patches.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,9 @@ const RootPath = process.cwd();
*
* @returns {Promise}
*/
export const patchPackages = async (options) => {
export const patchPackages = async () => {
const mediaVendorPath = join(RootPath, 'media/vendor');

// Joomla's hack to expose the chosen base classes so we can extend it ourselves
// (it was better than the many hacks we had before. But I'm still ashamed of myself).
const dest = join(mediaVendorPath, 'chosen');
const chosenPath = `${dest}/${options.settings.vendors['chosen-js'].js['chosen.jquery.js']}`;
let ChosenJs = await readFile(chosenPath, { encoding: 'utf8' });
ChosenJs = ChosenJs.replace(
'}).call(this);',
` document.AbstractChosen = AbstractChosen;
document.Chosen = Chosen;
}).call(this);`,
);
await writeFile(chosenPath, ChosenJs, { encoding: 'utf8', mode: 0o644 });

// Include the v5 shim for Font Awesome
const faPath = join(mediaVendorPath, 'fontawesome-free/scss/fontawesome.scss');
const newScss = (await readFile(faPath, { encoding: 'utf8' })).concat(`
Expand Down
34 changes: 0 additions & 34 deletions build/build-modules-js/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -631,40 +631,6 @@
}
]
},
"chosen-js": {
"name": "chosen",
"js": {
"chosen.jquery.js": "js/chosen.jquery.js"
},
"css": {
"chosen.css": "css/chosen.css",
"chosen-sprite.png": "css/chosen-sprite.png",
"[email protected]": "css/[email protected]"
},
"provideAssets": [
{
"name": "chosen",
"type": "style",
"uri": "chosen.css"
},
{
"name": "chosen",
"type": "script",
"uri": "chosen.jquery.js",
"dependencies": [
"jquery"
]
},
{
"name": "chosen",
"type": "preset",
"dependencies": [
"chosen#style",
"chosen#script"
]
}
]
},
"accessibility": {
"name": "accessibility",
"licenseFilename": "LICENSE",
Expand Down
161 changes: 0 additions & 161 deletions build/media_source/legacy/js/ajax-chosen.es5.js

This file was deleted.

102 changes: 0 additions & 102 deletions build/media_source/legacy/js/joomla-chosen.es5.js

This file was deleted.

Loading
Loading