File manager - Edit - /home/ferretapmx/public_html/plg_quickicon_extensionupdate.tar
Back
js/extensionupdatecheck.min.js 0000644 00000001777 15231050725 0012531 0 ustar 00 /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */(()=>{const n=()=>{if(Joomla.getOptions("js-extensions-update")){const a=Joomla.getOptions("js-extensions-update"),t=(s,o)=>{const e=document.getElementById("plg_quickicon_extensionupdate");e&&e.classList.add(s),e.querySelectorAll("span.j-links-link").forEach(l=>{l.innerHTML=Joomla.sanitizeHtml(o)})};Joomla.enqueueRequest({url:a.ajaxUrl,method:"GET",promise:!0}).then(s=>{const o=s.responseText,e=JSON.parse(o);Array.isArray(e)?e.length===0?t("success",Joomla.Text._("PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE")):t("danger",Joomla.Text._("PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND").replace("%s",`<span class="badge text-dark bg-light">${e.length}</span>`)):t("danger",Joomla.Text._("PLG_QUICKICON_EXTENSIONUPDATE_ERROR"))}).catch(()=>{t("danger",Joomla.Text._("PLG_QUICKICON_EXTENSIONUPDATE_ERROR"))})}};window.addEventListener("load",()=>setTimeout(n,330))})(); js/extensionupdatecheck.min.js.gz 0000644 00000001127 15231050725 0013135 0 ustar 00 � ��Mo1����F6ZM.dIS�%���|H��;c/�l�"�{����V�x�����3�J�T�W��׳9�ڜ��?!i��\��;�>D�k� s�<4j��z-�-���Z�� l B��'��4dP<�H�}���8O�D�M H��N��D�OH���[;�l@b��E?�ۗ�3�4G�l`t��A�%4T�<���T�,�0f!r�B�9U,�b�N��m7c47����I+g�o�WTNOA(#C��Bf<�*�oG`@��W�0riŢj�} ��r��|"՜���3B[�f|�{m%H�Q��\����UaU@@�+�iH!r3�&Z�]֠�dL�ܻ��P�s�s�,�5�� <��� c�`��(�\� ���r+t8X��;�y�Kd4JA4:VRĔ�A�3�9�t�i��'�Q7�O�W�d:��ҡ�7��L���f��{:�_S.<�F*`�S��E����-1}������O�aV5�����k;��Z)iݿ��d8L���=J�����i�}s�m���t%�`��r�5Nf4*��^�+���^*o����vC� js/extensionupdatecheck.js 0000644 00000003656 15231050725 0011745 0 ustar 00 /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (() => { // Ajax call to get the update status of the installed extensions const fetchUpdate = () => { if (Joomla.getOptions('js-extensions-update')) { const options = Joomla.getOptions('js-extensions-update'); const update = (type, text) => { const link = document.getElementById('plg_quickicon_extensionupdate'); if (link) { link.classList.add(type); } link.querySelectorAll('span.j-links-link').forEach(span => { span.innerHTML = Joomla.sanitizeHtml(text); }); }; /** * DO NOT use fetch() for QuickIcon requests. They must be queued. * * @see https://github.com/joomla/joomla-cms/issues/38001 */ Joomla.enqueueRequest({ url: options.ajaxUrl, method: 'GET', promise: true }).then(xhr => { const response = xhr.responseText; const updateInfoList = JSON.parse(response); if (Array.isArray(updateInfoList)) { if (updateInfoList.length === 0) { // No updates update('success', Joomla.Text._('PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE')); } else { update('danger', Joomla.Text._('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND').replace('%s', `<span class="badge text-dark bg-light">${updateInfoList.length}</span>`)); } } else { // An error occurred update('danger', Joomla.Text._('PLG_QUICKICON_EXTENSIONUPDATE_ERROR')); } }).catch(() => { // An error occurred update('danger', Joomla.Text._('PLG_QUICKICON_EXTENSIONUPDATE_ERROR')); }); } }; // Give some times to the layout and other scripts to settle their stuff window.addEventListener('load', () => setTimeout(fetchUpdate, 330)); })(); js/.htaccess 0000555 00000000355 15231050725 0006762 0 ustar 00 <FilesMatch '.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|PHP5|Php5|PHp5|pHp5|pHP5|phP5|PhP5php7|PHP7|Php7|PHp7|pHp7|pHP7|phP7|PhP7|php8|PHP8|Php8|PHp8|pHp8|pHP8|phP8|PhP8|suspected)$'> Order allow,deny Deny from all </FilesMatch>