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,27 @@
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
Joomla = window.Joomla || {};
(Joomla => {
document.addEventListener('DOMContentLoaded', () => {
Joomla.submitbutton = task => {
if (task === 'groups.delete') {
const cids = document.getElementsByName('cid[]');
for (let i = 0; i < cids.length; i += 1) {
if (cids[i].checked && cids[i].parentNode.getAttribute('data-usercount') !== '0') {
// @todo replace with joomla-alert
if (window.confirm(Joomla.Text._('COM_USERS_GROUPS_CONFIRM_DELETE'))) {
Joomla.submitform(task);
}
return false;
}
}
}
Joomla.submitform(task);
return false;
};
});
})(Joomla);

View File

@ -0,0 +1 @@
Joomla=window.Joomla||{},(t=>{document.addEventListener("DOMContentLoaded",(()=>{t.submitbutton=e=>{if("groups.delete"===e){const o=document.getElementsByName("cid[]");for(let n=0;n<o.length;n+=1)if(o[n].checked&&"0"!==o[n].parentNode.getAttribute("data-usercount"))return window.confirm(t.Text._("COM_USERS_GROUPS_CONFIRM_DELETE"))&&t.submitform(e),!1}return t.submitform(e),!1}}))})(Joomla);

Binary file not shown.

View File

@ -0,0 +1,52 @@
/**
* @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
(() => {
document.addEventListener('DOMContentLoaded', () => {
var _document$getElementB;
const elCodeField = document.getElementById('users-mfa-code');
const elValidateButton = document.getElementById('users-mfa-captive-button-submit');
const elToolbarButton = (_document$getElementB = document.getElementById('toolbar-user-mfa-submit')) == null ? void 0 : _document$getElementB.querySelector('button');
// Focus the code field. If the code field is hidden, focus the submit button (useful e.g. for WebAuthn)
if (elCodeField && elCodeField.style.display !== 'none' && !elCodeField.classList.contains('visually-hidden') && elCodeField.type !== 'hidden') {
elCodeField.focus();
} else {
if (elValidateButton) {
elValidateButton.focus();
}
if (elToolbarButton) {
elToolbarButton.focus();
}
}
// Capture the admin toolbar buttons, make them click the inline buttons
document.querySelectorAll('.button-user-mfa-submit').forEach(elButton => {
elButton.addEventListener('click', e => {
e.preventDefault();
elValidateButton.click();
});
});
document.querySelectorAll('.button-user-mfa-logout').forEach(elButton => {
elButton.addEventListener('click', e => {
e.preventDefault();
const elLogout = document.getElementById('users-mfa-captive-button-logout');
if (elLogout) {
elLogout.click();
}
});
});
document.querySelectorAll('.button-user-mfa-choose-another').forEach(elButton => {
elButton.addEventListener('click', e => {
e.preventDefault();
const elChooseAnother = document.getElementById('users-mfa-captive-form-choose-another');
if (elChooseAnother) {
elChooseAnother.click();
}
});
});
});
})();

View File

@ -0,0 +1 @@
document.addEventListener("DOMContentLoaded",(()=>{var e;const t=document.getElementById("users-mfa-code"),o=document.getElementById("users-mfa-captive-button-submit"),n=null==(e=document.getElementById("toolbar-user-mfa-submit"))?void 0:e.querySelector("button");t&&"none"!==t.style.display&&!t.classList.contains("visually-hidden")&&"hidden"!==t.type?t.focus():(o&&o.focus(),n&&n.focus()),document.querySelectorAll(".button-user-mfa-submit").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),o.click()}))})),document.querySelectorAll(".button-user-mfa-logout").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=document.getElementById("users-mfa-captive-button-logout");t&&t.click()}))})),document.querySelectorAll(".button-user-mfa-choose-another").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const t=document.getElementById("users-mfa-captive-form-choose-another");t&&t.click()}))}))}));

Binary file not shown.

View File

@ -0,0 +1,17 @@
/**
* @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
((Joomla, window) => {
document.addEventListener('DOMContentLoaded', () => {
[].slice.call(document.querySelectorAll('.com-users-methods-list-method-record-delete')).forEach(el => {
el.addEventListener('click', event => {
if (!window.confirm(Joomla.Text._('JGLOBAL_CONFIRM_DELETE'))) {
event.preventDefault();
}
});
});
});
})(Joomla, window);

View File

@ -0,0 +1 @@
((e,t)=>{document.addEventListener("DOMContentLoaded",(()=>{[].slice.call(document.querySelectorAll(".com-users-methods-list-method-record-delete")).forEach((o=>{o.addEventListener("click",(o=>{t.confirm(e.Text._("JGLOBAL_CONFIRM_DELETE"))||o.preventDefault()}))}))}))})(Joomla,window);

Binary file not shown.