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 @@
<svg height="45" viewBox="0 0 113 45.000001" width="113" xmlns="http://www.w3.org/2000/svg"><g transform="matrix(.26346604 0 0 .25599983 -138.31967 -172.80458)"><circle cx="587.5" cy="764.86218" fill="#fc0" r="62.5"/><path d="m676.999999 702.36215h25v25h-25z"/><path d="m726.999999 702.36212h224.99998v24.999987h-224.99998z"/><path d="m676.999999 752.36215h25v25h-25z"/><path d="m726.999999 752.36212h224.99998v24.999987h-224.99998z"/><path d="m676.999999 802.36215h25v25h-25z"/><path d="m726.999999 802.36212h224.99998v24.999987h-224.99998z"/><text font-family="sans-serif" font-size="64.253807" letter-spacing="0" word-spacing="0" x="569.52271" y="809.21387"><tspan font-family="Arial" font-size="128.507614" x="569.52271" y="809.21387">!</tspan></text></g></svg>

After

Width:  |  Height:  |  Size: 765 B

View File

@ -0,0 +1,45 @@
{
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
"name": "com_users",
"version": "4.0.0",
"description": "Joomla CMS",
"license": "GPL-2.0-or-later",
"assets": [
{
"name": "com_users.admin-users-groups",
"type": "script",
"uri": "com_users/admin-users-groups.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "47afc6"
},
{
"name": "com_users.two-factor-list",
"type": "script",
"uri": "com_users/two-factor-list.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "26f2bb"
},
{
"name": "com_users.two-factor-focus",
"type": "script",
"uri": "com_users/two-factor-focus.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "7814c6"
}
]
}

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.