This commit is contained in:
AlexBa16
2026-06-08 15:29:52 +02:00
commit 27903eed4a
9931 changed files with 1535659 additions and 0 deletions
@@ -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

@@ -0,0 +1,57 @@
{
"$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": "44aa77"
},
{
"name": "com_users.two-factor-focus",
"type": "script",
"uri": "com_users/two-factor-focus.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "bcc78d"
},
{
"name": "com_users.activate-user-send-email",
"type": "script",
"uri": "com_users/activate-user-send-email.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "87bb67"
},
{
"name": "com_users.two-factor-list",
"type": "script",
"uri": "com_users/two-factor-list.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module"
},
"version": "7fa9d4"
}
]
}
@@ -0,0 +1,47 @@
/**
* @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
if (!Joomla) {
throw new Error('Joomla API was not properly initialized');
}
const button = document.querySelector('.activate-send-mail');
if (button && Object.keys(button.dataset).length !== 0) {
button.addEventListener('click', () => {
button.querySelector('span').className = 'icon-spinner';
button.disabled = true;
const queryString = Object.keys(button.dataset).reduce((a, k) => {
a.push(`${k}=${encodeURIComponent(button.dataset[k])}`);
return a;
}, []).join('&');
const url = `index.php?${queryString}`;
Joomla.request({
url,
method: 'GET',
headers: {
'X-CSRF-Token': Joomla.getOptions('csrf.token') || ''
},
onSuccess: resp => {
let response;
try {
response = JSON.parse(resp);
} catch (error) {
button.classList.add('error');
}
button.querySelector('span').className = 'icon-mail';
button.disabled = false;
if (response.messages) {
Joomla.renderMessages(response.messages);
}
},
onError: resp => {
const response = JSON.parse(resp);
button.classList.add('error');
if (response.messages) {
Joomla.renderMessages(response.messages);
}
}
});
});
}
@@ -0,0 +1,4 @@
/**
* @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/if(!Joomla)throw new Error("Joomla API was not properly initialized");const button=document.querySelector(".activate-send-mail");button&&Object.keys(button.dataset).length!==0&&button.addEventListener("click",()=>{button.querySelector("span").className="icon-spinner",button.disabled=!0;const r=`index.php?${Object.keys(button.dataset).reduce((s,e)=>(s.push(`${e}=${encodeURIComponent(button.dataset[e])}`),s),[]).join("&")}`;Joomla.request({url:r,method:"GET",headers:{"X-CSRF-Token":Joomla.getOptions("csrf.token")||""},onSuccess:s=>{let e;try{e=JSON.parse(s)}catch{button.classList.add("error")}button.querySelector("span").className="icon-mail",button.disabled=!1,e.messages&&Joomla.renderMessages(e.messages)},onError:s=>{const e=JSON.parse(s);button.classList.add("error"),e.messages&&Joomla.renderMessages(e.messages)}})});
@@ -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);
@@ -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
*/Joomla=window.Joomla||{},(e=>{document.addEventListener("DOMContentLoaded",()=>{e.submitbutton=n=>{if(n==="groups.delete"){const o=document.getElementsByName("cid[]");for(let t=0;t<o.length;t+=1)if(o[t].checked&&o[t].parentNode.getAttribute("data-usercount")!=="0")return window.confirm(e.Text._("COM_USERS_GROUPS_CONFIRM_DELETE"))&&e.submitform(n),!1}return e.submitform(n),!1}})})(Joomla);
@@ -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();
}
});
});
});
})();
@@ -0,0 +1,4 @@
/**
* @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 l;const e=document.getElementById("users-mfa-code"),c=document.getElementById("users-mfa-captive-button-submit"),u=(l=document.getElementById("toolbar-user-mfa-submit"))==null?void 0:l.querySelector("button");e&&e.style.display!=="none"&&!e.classList.contains("visually-hidden")&&e.type!=="hidden"?e.focus():(c&&c.focus(),u&&u.focus()),document.querySelectorAll(".button-user-mfa-submit").forEach(t=>{t.addEventListener("click",o=>{o.preventDefault(),c.click()})}),document.querySelectorAll(".button-user-mfa-logout").forEach(t=>{t.addEventListener("click",o=>{o.preventDefault();const n=document.getElementById("users-mfa-captive-button-logout");n&&n.click()})}),document.querySelectorAll(".button-user-mfa-choose-another").forEach(t=>{t.addEventListener("click",o=>{o.preventDefault();const n=document.getElementById("users-mfa-captive-form-choose-another");n&&n.click()})})});
@@ -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', () => {
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);
+4
View File
@@ -0,0 +1,4 @@
/**
* @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/((e,t)=>{document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".com-users-methods-list-method-record-delete").forEach(o=>{o.addEventListener("click",d=>{t.confirm(e.Text._("JGLOBAL_CONFIRM_DELETE"))||d.preventDefault()})})})})(Joomla,window);