primo commit

This commit is contained in:
2024-12-17 17:34:10 +01:00
commit e650f8df99
16435 changed files with 2451012 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": "752453"
},
{
"name": "com_config.modules",
"type": "script",
"uri": "com_config/modules-default.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "a96b5d"
},
{
"name": "com_config.templates",
"type": "script",
"uri": "com_config/templates-default.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "8e4ec9"
},
{
"name": "com_config.filters",
"type": "script",
"uri": "com_config/config-filters.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "2cad91"
}
]
}

View File

@ -0,0 +1,36 @@
/**
* @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 = () => {
document.querySelectorAll(`[${buttonDataSelector}]`).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,4 @@
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/((r,n)=>{const a="data-submit-task",o=(e,t)=>{(e==="config.cancel"||r.formvalidator.isValid(t))&&n(e,t)},s=()=>{r.querySelectorAll(`[${a}]`).forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const c=t.currentTarget.getAttribute(a);o(c,t.currentTarget.form)})})};r.addEventListener("DOMContentLoaded",()=>{s()})})(document,Joomla.submitform);

Binary file not shown.

View File

@ -0,0 +1,24 @@
/**
* @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 => {
document.querySelectorAll(`#filter-config select[data-parent="${id}"]`).forEach(child => {
recursiveApplyChanges(child.dataset.id);
child.value = 'NONE';
});
};
const applyChanges = event => {
const currentElement = event.currentTarget;
const currentFilter = currentElement.options[currentElement.selectedIndex].value;
if (currentFilter === 'NONE') {
const childs = document.querySelectorAll(`#filter-config select[data-parent="${currentElement.dataset.id}"]`);
if (childs.length && window.confirm(Joomla.Text._('COM_CONFIG_TEXT_FILTERS_NOTE'))) {
childs.forEach(child => {
recursiveApplyChanges(child.dataset.id);
child.value = 'NONE';
});
}
}
};
document.querySelectorAll('#filter-config select').forEach(select => select.addEventListener('change', applyChanges));

View File

@ -0,0 +1,4 @@
/**
* @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=t=>{document.querySelectorAll(`#filter-config select[data-parent="${t}"]`).forEach(e=>{recursiveApplyChanges(e.dataset.id),e.value="NONE"})},applyChanges=t=>{const e=t.currentTarget;if(e.options[e.selectedIndex].value==="NONE"){const r=document.querySelectorAll(`#filter-config select[data-parent="${e.dataset.id}"]`);r.length&&window.confirm(Joomla.Text._("COM_CONFIG_TEXT_FILTERS_NOTE"))&&r.forEach(n=>{recursiveApplyChanges(n.dataset.id),n.value="NONE"})}};document.querySelectorAll("#filter-config select").forEach(t=>t.addEventListener("change",applyChanges));

Binary file not shown.

View File

@ -0,0 +1,36 @@
/**
* @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 = () => {
document.querySelectorAll(`[${buttonDataSelector}]`).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,4 @@
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/((r,n)=>{const a="data-submit-task",o=(e,t)=>{(e==="modules.cancel"||r.formvalidator.isValid(t))&&n(e,t)},s=()=>{r.querySelectorAll(`[${a}]`).forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const c=t.currentTarget.getAttribute(a);o(c,t.currentTarget.form)})})};r.addEventListener("DOMContentLoaded",()=>{s()})})(document,Joomla.submitform);

Binary file not shown.

View File

@ -0,0 +1,36 @@
/**
* @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 = () => {
document.querySelectorAll(`[${buttonDataSelector}]`).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,4 @@
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/((a,n)=>{const r="data-submit-task",s=(e,t)=>{(e==="templates.cancel"||a.formvalidator.isValid(t))&&n(e,t)},o=()=>{a.querySelectorAll(`[${r}]`).forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const c=t.currentTarget.getAttribute(r);s(c,t.currentTarget.form)})})};a.addEventListener("DOMContentLoaded",()=>{o()})})(document,Joomla.submitform);

Binary file not shown.