first commit

This commit is contained in:
2025-06-17 11:53:18 +02:00
commit 9f0f7ba12b
8804 changed files with 1369176 additions and 0 deletions

View File

@ -0,0 +1,57 @@
{
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
"name": "com_config",
"version": "4.0.0",
"description": "Joomla CMS",
"license": "GPL-2.0-or-later",
"assets": [
{
"name": "com_config.config",
"type": "script",
"uri": "com_config/config-default.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "7fff86"
},
{
"name": "com_config.modules",
"type": "script",
"uri": "com_config/modules-default.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "e3d9c2"
},
{
"name": "com_config.templates",
"type": "script",
"uri": "com_config/templates-default.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "ed437d"
},
{
"name": "com_config.filters",
"type": "script",
"uri": "com_config/config-filters.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "8b334f"
}
]
}

View File

@ -0,0 +1,37 @@
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
((document, submitForm) => {
// Selectors used by this script
const buttonDataSelector = 'data-submit-task';
/**
* Submit the task
* @param task
* @param form
*/
const submitTask = (task, form) => {
if (task === 'config.cancel' || document.formvalidator.isValid(form)) {
submitForm(task, form);
}
};
/**
* Register events
*/
const registerEvents = () => {
const buttons = [].slice.call(document.querySelectorAll(`[${buttonDataSelector}]`));
buttons.forEach(button => {
button.addEventListener('click', e => {
e.preventDefault();
const task = e.currentTarget.getAttribute(buttonDataSelector);
submitTask(task, e.currentTarget.form);
});
});
};
document.addEventListener('DOMContentLoaded', () => {
registerEvents();
});
})(document, Joomla.submitform);

View File

@ -0,0 +1 @@
((t,e)=>{const r="data-submit-task",a=()=>{[].slice.call(t.querySelectorAll(`[${r}]`)).forEach((a=>{a.addEventListener("click",(a=>{a.preventDefault();((r,a)=>{("config.cancel"===r||t.formvalidator.isValid(a))&&e(r,a)})(a.currentTarget.getAttribute(r),a.currentTarget.form)}))}))};t.addEventListener("DOMContentLoaded",(()=>{a()}))})(document,Joomla.submitform);

Binary file not shown.

View File

@ -0,0 +1,27 @@
/**
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
const recursiveApplyChanges = id => {
const childs = [].slice.call(document.querySelectorAll(`#filter-config select[data-parent="${id}"]`));
childs.map(child => {
recursiveApplyChanges(child.dataset.id);
child.value = 'NONE';
return child;
});
};
const applyChanges = event => {
const currentElement = event.currentTarget;
const currentFilter = currentElement.options[currentElement.selectedIndex].value;
if (currentFilter === 'NONE') {
const childs = [].slice.call(document.querySelectorAll(`#filter-config select[data-parent="${currentElement.dataset.id}"]`));
if (childs.length && window.confirm(Joomla.Text._('COM_CONFIG_TEXT_FILTERS_NOTE'))) {
childs.map(child => {
recursiveApplyChanges(child.dataset.id);
child.value = 'NONE';
return child;
});
}
}
};
[].slice.call(document.querySelectorAll('#filter-config select')).map(select => select.addEventListener('change', applyChanges));

View File

@ -0,0 +1 @@
const recursiveApplyChanges=e=>{[].slice.call(document.querySelectorAll(`#filter-config select[data-parent="${e}"]`)).map((e=>(recursiveApplyChanges(e.dataset.id),e.value="NONE",e)))},applyChanges=e=>{const l=e.currentTarget;if("NONE"===l.options[l.selectedIndex].value){const e=[].slice.call(document.querySelectorAll(`#filter-config select[data-parent="${l.dataset.id}"]`));e.length&&window.confirm(Joomla.Text._("COM_CONFIG_TEXT_FILTERS_NOTE"))&&e.map((e=>(recursiveApplyChanges(e.dataset.id),e.value="NONE",e)))}};[].slice.call(document.querySelectorAll("#filter-config select")).map((e=>e.addEventListener("change",applyChanges)));

Binary file not shown.

View File

@ -0,0 +1,37 @@
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
((document, submitForm) => {
// Selectors used by this script
const buttonDataSelector = 'data-submit-task';
/**
* Submit the task
* @param task
* @param form
*/
const submitTask = (task, form) => {
if (task === 'modules.cancel' || document.formvalidator.isValid(form)) {
submitForm(task, form);
}
};
/**
* Register events
*/
const registerEvents = () => {
const buttons = [].slice.call(document.querySelectorAll(`[${buttonDataSelector}]`));
buttons.forEach(button => {
button.addEventListener('click', e => {
e.preventDefault();
const task = e.currentTarget.getAttribute(buttonDataSelector);
submitTask(task, e.currentTarget.form);
});
});
};
document.addEventListener('DOMContentLoaded', () => {
registerEvents();
});
})(document, Joomla.submitform);

View File

@ -0,0 +1 @@
((e,t)=>{const r="data-submit-task",a=()=>{[].slice.call(e.querySelectorAll(`[${r}]`)).forEach((a=>{a.addEventListener("click",(a=>{a.preventDefault();((r,a)=>{("modules.cancel"===r||e.formvalidator.isValid(a))&&t(r,a)})(a.currentTarget.getAttribute(r),a.currentTarget.form)}))}))};e.addEventListener("DOMContentLoaded",(()=>{a()}))})(document,Joomla.submitform);

Binary file not shown.

View File

@ -0,0 +1,37 @@
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
((document, submitForm) => {
// Selectors used by this script
const buttonDataSelector = 'data-submit-task';
/**
* Submit the task
* @param task
* @param form
*/
const submitTask = (task, form) => {
if (task === 'templates.cancel' || document.formvalidator.isValid(form)) {
submitForm(task, form);
}
};
/**
* Register events
*/
const registerEvents = () => {
const buttons = [].slice.call(document.querySelectorAll(`[${buttonDataSelector}]`));
buttons.forEach(button => {
button.addEventListener('click', e => {
e.preventDefault();
const task = e.currentTarget.getAttribute(buttonDataSelector);
submitTask(task, e.currentTarget.form);
});
});
};
document.addEventListener('DOMContentLoaded', () => {
registerEvents();
});
})(document, Joomla.submitform);

View File

@ -0,0 +1 @@
((t,e)=>{const a="data-submit-task",r=()=>{[].slice.call(t.querySelectorAll(`[${a}]`)).forEach((r=>{r.addEventListener("click",(r=>{r.preventDefault();((a,r)=>{("templates.cancel"===a||t.formvalidator.isValid(r))&&e(a,r)})(r.currentTarget.getAttribute(a),r.currentTarget.form)}))}))};t.addEventListener("DOMContentLoaded",(()=>{r()}))})(document,Joomla.submitform);

Binary file not shown.