Файловый менеджер - Редактировать - /home/opticamezl/www/newok/531c5/com_languages.tar
Назад
joomla.asset.json 0000644 00000005300 15172600072 0010034 0 ustar 00 { "$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json", "name": "com_languages", "version": "4.0.0", "description": "Joomla CMS", "license": "GPL-2.0-or-later", "assets": [ { "name": "com_languages.overrider", "type": "preset", "dependencies": [ "com_languages.overrider#style", "com_languages.overrider#script" ] }, { "name": "com_languages.admin-language-edit-change-flag.es5", "type": "script", "uri": "com_languages/admin-language-edit-change-flag-es5.min.js", "dependencies": [ "core" ], "attributes": { "nomodule": true, "defer": true }, "version": "c34dab0b90251907118d49b239f4640cbe87c78a" }, { "name": "com_languages.admin-override-edit-refresh-searchstring.es5", "type": "script", "uri": "com_languages/admin-override-edit-refresh-searchstring-es5.min.js", "dependencies": [ "core" ], "attributes": { "nomodule": true, "defer": true }, "version": "68b0a31acc446863c2c05ba5d99c11cc7699bd42" }, { "name": "com_languages.admin-override-edit-refresh-searchstring", "type": "script", "uri": "com_languages/admin-override-edit-refresh-searchstring.min.js", "dependencies": [ "com_languages.admin-override-edit-refresh-searchstring.es5" ], "attributes": { "type": "module" }, "version": "c0ecf5fb3a0df8a0ea36a4b7505e5835cfa42285" }, { "name": "com_languages.admin-language-edit-change-flag", "type": "script", "uri": "com_languages/admin-language-edit-change-flag.min.js", "dependencies": [ "com_languages.admin-language-edit-change-flag.es5" ], "attributes": { "type": "module" }, "version": "f56defffd530b649285e57fa31e0dd600f9ae2c9" }, { "name": "com_languages.overrider", "type": "style", "uri": "com_languages/overrider.min.css", "version": "490c9a9733ada84ea36c3ea08c0750b4e81580d7" }, { "name": "com_languages.overrider.es5", "type": "script", "uri": "com_languages/overrider-es5.min.js", "dependencies": [ "core" ], "attributes": { "nomodule": true, "defer": true }, "version": "a6ffb2b277ab2cbb0d1d13b39b912079069295d2" }, { "name": "com_languages.overrider", "type": "script", "uri": "com_languages/overrider.min.js", "dependencies": [ "com_languages.overrider.es5" ], "attributes": { "type": "module" }, "version": "72c4d238d2a1de5fbd2fc97760bf6cc8ea24a38b" } ] } css/overrider.css 0000644 00000001277 15172600072 0010056 0 ustar 00 /** * @package Joomla.Administrator * @subpackage com_languages * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ #overrider-spinner, #overrider-spinner-btn, #refresh-status, #more-results, #language-results, #results-container { display: none; } #overrider-spinner.show, #more-results.show, #results-container.show, #language-results.show { display: grid; } #refresh-status.show { display: block; } #overrider-spinner-btn.show { display: inline-block; } #refresh-status { flex-basis: 100%; } .result-key { color:#666; } .result-string { padding-inline-start: 20px; } css/overrider.min.css 0000644 00000000646 15172600072 0010637 0 ustar 00 @charset "UTF-8";#overrider-spinner,#overrider-spinner-btn,#refresh-status,#more-results,#language-results,#results-container{display:none}#overrider-spinner.show,#more-results.show,#results-container.show,#language-results.show{display:grid}#refresh-status.show{display:block}#overrider-spinner-btn.show{display:inline-block}#refresh-status{flex-basis:100%}.result-key{color:#666}.result-string{padding-inline-start:20px} css/overrider.min.css.gz 0000644 00000000333 15172600072 0011247 0 ustar 00 � m�Mj�@F�R2tg�S�MW=As��G�L5F�3w/4C��������~���^6��/x�|�xBr(�#1�Tk]��u M6MZ��(�:��� ��d�)�%F����Ș�5[�y�-h�*����k���Og/]��1���2I����9^��J���5oo��sC��4Msǚ��ϣu��CQk��ڷz��_��'ߦ js/admin-language-edit-change-flag.min.js.gz 0000644 00000000602 15172600072 0014643 0 ustar 00 � u��N[1F�y���,�ªJh��(U H)k0���?��8!�@�����3��0�o&u��� �T����/��0�*�l�4�"a�������f�۩ǔ��*e{����`, py}�1k7��;��-��R�3H�&�c(���Og��'��i��#)ݶ�-FZ�BG#g?�W��%�b�$����"�<��y���:�p炶��;>���"��`j���i���֤Xh��V��'Z{m�P+� =J�3,�L�O�_�Hˎ\����/�Au�6� �S�_�� �:݄��ym�K��CiN�+��c�� �w��*!g%&��os�Ib�Qei�o�Ƅ��Sы����W=6 js/admin-language-edit-change-flag-es5.min.js 0000644 00000001136 15172600072 0014721 0 ustar 00 (function(){"use strict";/** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */document.addEventListener("DOMContentLoaded",function(){document.getElementById("jform_image").addEventListener("change",function(a){var r=a.currentTarget,t=r.value,e=document.getElementById("flag").querySelector("img"),n=Joomla.getOptions("system.paths").rootFull+"/media/mod_languages/images/"+t+".gif";t?(e.setAttribute("src",n),e.setAttribute("alt",t)):(e.removeAttribute("src"),e.setAttribute("alt",""))},!1)})})(); js/overrider-es5.min.js.gz 0000644 00000002571 15172600072 0011417 0 ustar 00 � �W�o�6~�_��� �2��i��uIj�)�����aF:[liR%ON2��@I�YN3�ow�}w ���Qh�%�-x����^y�������y����� 3P�X�&�#���w�b�"f�wxxϾh=��i3��p%Eʂ�y���w �ާ�N�ػ��0Vh���$G0}�x�g�������M�*�\p�M��e֏�,�KL�e9����l*Ԭ��8�� q/��������1�FH�~�A�,�́���k&��$�A���E� cD�[�����K��w�֖sm`6�h[L��kJq��i����w��ڼ:=� �h���0^�lm�̎�cn[ y� ��\ �h�2�Q�c}���k_g<N�^eg�#��~��l[��QK4,���Ka��$ �M�=��b��`1X�F��P <�,����}0��|"���|�Gn�F���ƿ?�f�1�b�"�0�I�|�oH�O��ޒ�|�®���eR��}�0\�Z��8k{��Z�����-���|��%64�<Z�w7R ���d�gi�&�\/`�ޖ�c�ӫ��F�x@6 ���jryr}~{r>O>_��?F�����h���`|3�F��/h���0f��[T������ۡQ��!�+�t_֗�0���,����ygdYAᮂC�����+��u����:�d1�2 �-�8 1js"e@��[�}ͦ�x�n��Y� (�� T�=K�L�+�j&��C`�u�Zp)B�fu��6x��� -,�4���E*����%y�X�&(�� j'�=�R�C���NY�:�u�F�����oa۪���!��LD:��r�,�OD��k�m��}��7��7��7���� �p���9�͔eBY0Xa���vQ��]`� *rR�fwβDX~'!�ܒ��5�^�^�� ��io���`6x��3�Ϲbh���Y�œ:��.�v�Nt�_ω� G�&@@�( ߵ� q�#D$$$;t�i��u�4բ#,vgF�Y�t~�}�v���;��ô��ޒ����������|�v�M?ق�K� H�4әv�;fl�L LIH����� ��T���X��T�C7�2����3U��n35X �������|L��c[h�4C�H��THp�F\%�Ο������2R�r%P�p.�b�,r�e�b/n���Z{ZC{b۬J��J-�y�e��r���p ���5g�+��.��8��^FU���h0�����s�j.)�����V��kNa� v�G�Z^�}�m�E������p�n+�s�6y��5�W�l�>8������Z.5O !am�Ԧo��ޛ��%����s�}wD����k�+� js/admin-override-edit-refresh-searchstring-es5.min.js 0000644 00000001345 15172600072 0016753 0 ustar 00 (function(){"use strict";/** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */document.addEventListener("DOMContentLoaded",function(){document.getElementById("jform_searchstring").addEventListener("focus",function(e){var r=e.srcElement;if(!Joomla.overrider.states.refreshed){var t=document.getElementById("overrider-spinner").getAttribute("data-search-string-expired");t&&(Joomla.overrider.refreshCache(),Joomla.overrider.states.refreshed=!0)}r.classList.remove("invalid")},!1),document.getElementById("more-results-button").addEventListener("click",function(){Joomla.overrider.searchStrings(Joomla.overrider.states.more)},!1)})})(); js/admin-language-edit-change-flag.js 0000644 00000001442 15172600072 0013445 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 */ document.addEventListener('DOMContentLoaded', () => { document.getElementById('jform_image').addEventListener('change', ({ currentTarget }) => { const flagSelectedValue = currentTarget.value; const flagimage = document.getElementById('flag').querySelector('img'); const src = `${Joomla.getOptions('system.paths').rootFull}/media/mod_languages/images/${flagSelectedValue}.gif`; if (flagSelectedValue) { flagimage.setAttribute('src', src); flagimage.setAttribute('alt', flagSelectedValue); } else { flagimage.removeAttribute('src'); flagimage.setAttribute('alt', ''); } }, false); }); js/admin-override-edit-refresh-searchstring-es5.js 0000644 00000001655 15172600072 0016175 0 ustar 00 (function () { 'use strict'; /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ document.addEventListener('DOMContentLoaded', function () { document.getElementById('jform_searchstring').addEventListener('focus', function (_ref) { var srcElement = _ref.srcElement; if (!Joomla.overrider.states.refreshed) { var expired = document.getElementById('overrider-spinner').getAttribute('data-search-string-expired'); if (expired) { Joomla.overrider.refreshCache(); Joomla.overrider.states.refreshed = true; } } srcElement.classList.remove('invalid'); }, false); document.getElementById('more-results-button').addEventListener('click', function () { Joomla.overrider.searchStrings(Joomla.overrider.states.more); }, false); }); })(); js/overrider-es5.min.js 0000644 00000010237 15172600072 0010776 0 ustar 00 (function(){"use strict";/** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */(function(n,e){var f=function(){function g(){this.states={refreshing:!1,refreshed:!1,counter:0,searchString:"",searchType:"value"},this.spinner=e.getElementById("overrider-spinner"),this.spinnerBtn=e.getElementById("overrider-spinner-btn"),this.moreResults=e.getElementById("more-results"),this.moreResultsButton=e.getElementById("more-results-button"),this.resultsContainer=e.getElementById("results-container"),this.refreshStatus=e.getElementById("refresh-status")}var c=g.prototype;return c.refreshCache=function(){var a=this;this.states.refreshing=!0,this.refreshStatus.classList.add("show"),n.request({url:"index.php?option=com_languages&task=strings.refresh&format=json",method:"POST",headers:{"Content-Type":"application/json"},onSuccess:function(s){s.error&&s.message&&alert(s.message),s.messages&&n.renderMessages(s.messages),a.refreshStatus.classList.remove("show"),a.states.refreshing=!1},onError:function(){alert(n.Text._("COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR")),a.refreshStatus.classList.remove("show")}})},c.searchStrings=function(a){var r=this;if(!this.states.refreshing){var s=e.getElementById("jform_searchstring"),u=e.getElementById("jform_searchtype");if(!a){this.states.searchString=s.value,this.states.searchType=u.value||"value";var o=[].slice.call(e.querySelectorAll(".language-results"));o.forEach(function(t){t.parentNode.removeChild(t)})}if(!this.states.searchString){s.classList.add("invalid");return}if(a)this.spinnerBtn.classList.add("show");else{this.moreResults.classList.remove("show");var h=[].slice.call(e.querySelectorAll("#results-container div.language-results"));h.forEach(function(t){t.parentNode.removeChild(t)}),this.resultsContainer.classList.add("show"),this.spinner.classList.add("show")}n.request({url:"index.php?option=com_languages&task=strings.search&format=json&searchstring="+this.states.searchString+"&searchtype="+this.states.searchType+"&more="+a,method:"POST",headers:{"Content-Type":"application/json"},onSuccess:function(l){var i=JSON.parse(l);i.error&&i.message&&alert(i.message),i.messages&&n.renderMessages(i.messages),i.data&&(i.data.results&&n.overrider.insertResults(i.data.results),i.data.more?(r.states.more=i.data.more,r.moreResultsButton.disabled=!1,r.moreResults.classList.add("show")):(r.moreResultsButton.disabled=!0,r.moreResults.classList.remove("show"))),r.spinnerBtn.classList.remove("show"),r.spinner.classList.remove("show")},onError:function(){alert(n.Text._("COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR")),r.moreResultsButton.disabled=!0,r.moreResults.classList.remove("show"),r.resultsContainer.classList.remove("show")}})}},c.insertResults=function(a){var r=this;this.states.counter+=1;var s=e.createElement("div");if(s.setAttribute("id","language-results"+this.states.counter),s.classList.add("language-results"),s.classList.add("list-group"),s.classList.add("mb-2"),s.classList.add("show"),a.forEach(function(o,h){var t=e.createElement("a");t.setAttribute("onclick","Joomla.overrider.selectString("+r.states.counter+h+");"),t.setAttribute("href","#"),t.classList.add("list-group-item"),t.classList.add("list-group-item-action"),t.classList.add("flex-column"),t.classList.add("align-items-start");var l=e.createElement("div");l.setAttribute("id","override_key"+r.states.counter+h),l.setAttribute("title",o.file),l.classList.add("result-key"),l.innerHTML=n.sanitizeHtml(o.constant);var i=e.createElement("div");i.setAttribute("id","override_string"+r.states.counter+h),i.classList.add("result-string"),i.innerHTML=n.sanitizeHtml(o.string),t.appendChild(l),t.appendChild(i),s.appendChild(t)}),!a.length){var u=e.createElement("div");u.innerText=n.Text._("COM_LANGUAGES_VIEW_OVERRIDE_NO_RESULTS"),s.appendChild(u)}this.moreResults&&this.moreResults.parentNode.insertBefore(s,this.moreResults)},c.selectString=function(a){e.getElementById("jform_key").value=e.getElementById("override_key"+a).innerHTML,e.getElementById("jform_override").value=e.getElementById("override_string"+a).innerHTML},g}();e.addEventListener("DOMContentLoaded",function(){n.overrider=new f})})(Joomla,document)})(); js/admin-language-edit-change-flag-es5.js 0000644 00000001623 15172600072 0014140 0 ustar 00 (function () { 'use strict'; /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ document.addEventListener('DOMContentLoaded', function () { document.getElementById('jform_image').addEventListener('change', function (_ref) { var currentTarget = _ref.currentTarget; var flagSelectedValue = currentTarget.value; var flagimage = document.getElementById('flag').querySelector('img'); var src = Joomla.getOptions('system.paths').rootFull + "/media/mod_languages/images/" + flagSelectedValue + ".gif"; if (flagSelectedValue) { flagimage.setAttribute('src', src); flagimage.setAttribute('alt', flagSelectedValue); } else { flagimage.removeAttribute('src'); flagimage.setAttribute('alt', ''); } }, false); }); })(); js/admin-override-edit-refresh-searchstring-es5.min.js.gz 0000644 00000000641 15172600072 0017370 0 ustar 00 � ��Ak1��c�dv�$�ҭK[�')���,�z��J�hv�����&�$�7!�{�'Yv���A�g�%���-�b:��`_ll��o+�sחW�� �ؑE�5�H)�e�>U�m�8��v;�cSi��`U{�!! ���/���dj��mjoauz푒��!Ԇ� H��Z�w��G�d����s��|�Q���x��ơ٫�/�-����i�x(#5���PB� ��ym�^9�z� �P'�'�r���G"�tbØ4aI�*tG%��"�H����f�2��t�R8�&?2�G�[O�*��B��8m�[�T�!g�K�'mk��Ђ&lb�R�Л�;���JegC4�0'L]�)�t�1�[������W�e;]r&y}Xx�ګ����L@��� js/overrider.js 0000644 00000017771 15172600072 0007534 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 */ ((Joomla, document) => { class Overrider { constructor() { this.states = { refreshing: false, refreshed: false, counter: 0, searchString: '', searchType: 'value' }; this.spinner = document.getElementById('overrider-spinner'); this.spinnerBtn = document.getElementById('overrider-spinner-btn'); this.moreResults = document.getElementById('more-results'); this.moreResultsButton = document.getElementById('more-results-button'); this.resultsContainer = document.getElementById('results-container'); this.refreshStatus = document.getElementById('refresh-status'); } /** * Method for refreshing the database cache of known language strings via Ajax * * @return void * * @since 2.5 */ refreshCache() { this.states.refreshing = true; this.refreshStatus.classList.add('show'); Joomla.request({ url: 'index.php?option=com_languages&task=strings.refresh&format=json', method: 'POST', headers: { 'Content-Type': 'application/json' }, onSuccess: response => { if (response.error && response.message) { alert(response.message); } if (response.messages) { Joomla.renderMessages(response.messages); } this.refreshStatus.classList.remove('show'); this.states.refreshing = false; }, onError: () => { alert(Joomla.Text._('COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR')); this.refreshStatus.classList.remove('show'); } }); } /** * Method for searching known language strings via Ajax * * @param more Determines the limit start of the results * * @return void * * @since 2.5 */ searchStrings(more) { // Prevent searching if the cache is refreshed at the moment if (this.states.refreshing) { return; } const formSearchString = document.getElementById('jform_searchstring'); const formSearchType = document.getElementById('jform_searchtype'); // Only update the used searchstring and searchtype if the search button // was used to start the search (that will be the case if 'more' is null) if (!more) { this.states.searchString = formSearchString.value; this.states.searchType = formSearchType.value || 'value'; // Remove the old results const oldResults = [].slice.call(document.querySelectorAll('.language-results')); oldResults.forEach(result => { result.parentNode.removeChild(result); }); } if (!this.states.searchString) { formSearchString.classList.add('invalid'); return; } if (more) { // If 'more' is greater than 0 we have already displayed some results for // the current searchstring, so display the spinner at the more link this.spinnerBtn.classList.add('show'); } else { // Otherwise it is a new searchstring and we have to remove all previous results first this.moreResults.classList.remove('show'); const childs = [].slice.call(document.querySelectorAll('#results-container div.language-results')); childs.forEach(child => { child.parentNode.removeChild(child); }); this.resultsContainer.classList.add('show'); this.spinner.classList.add('show'); } Joomla.request({ url: `index.php?option=com_languages&task=strings.search&format=json&searchstring=${this.states.searchString}&searchtype=${this.states.searchType}&more=${more}`, method: 'POST', headers: { 'Content-Type': 'application/json' }, onSuccess: resp => { const response = JSON.parse(resp); if (response.error && response.message) { alert(response.message); } if (response.messages) { Joomla.renderMessages(response.messages); } if (response.data) { if (response.data.results) { Joomla.overrider.insertResults(response.data.results); } if (response.data.more) { // If there are more results than the sent ones // display the more link this.states.more = response.data.more; this.moreResultsButton.disabled = false; this.moreResults.classList.add('show'); } else { this.moreResultsButton.disabled = true; this.moreResults.classList.remove('show'); } } this.spinnerBtn.classList.remove('show'); this.spinner.classList.remove('show'); }, onError: () => { alert(Joomla.Text._('COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR')); this.moreResultsButton.disabled = true; this.moreResults.classList.remove('show'); this.resultsContainer.classList.remove('show'); } }); } /** * Method inserting the received results into the results container * * @param results An array of search result objects * * @return void * * @since 2.5 */ insertResults(results) { // For creating an individual ID for each result we use a counter this.states.counter += 1; // Create a container into which all the results will be inserted const resultsDiv = document.createElement('div'); resultsDiv.setAttribute('id', `language-results${this.states.counter}`); resultsDiv.classList.add('language-results'); resultsDiv.classList.add('list-group'); resultsDiv.classList.add('mb-2'); resultsDiv.classList.add('show'); // Create some elements for each result and insert it into the container results.forEach((item, index) => { const a = document.createElement('a'); a.setAttribute('onclick', `Joomla.overrider.selectString(${this.states.counter}${index});`); a.setAttribute('href', '#'); a.classList.add('list-group-item'); a.classList.add('list-group-item-action'); a.classList.add('flex-column'); a.classList.add('align-items-start'); const key = document.createElement('div'); key.setAttribute('id', `override_key${this.states.counter}${index}`); key.setAttribute('title', item.file); key.classList.add('result-key'); key.innerHTML = Joomla.sanitizeHtml(item.constant); const string = document.createElement('div'); string.setAttribute('id', `override_string${this.states.counter}${index}`); string.classList.add('result-string'); string.innerHTML = Joomla.sanitizeHtml(item.string); a.appendChild(key); a.appendChild(string); resultsDiv.appendChild(a); }); // If there aren't any results display an appropriate message if (!results.length) { const noresult = document.createElement('div'); noresult.innerText = Joomla.Text._('COM_LANGUAGES_VIEW_OVERRIDE_NO_RESULTS'); resultsDiv.appendChild(noresult); } if (this.moreResults) { this.moreResults.parentNode.insertBefore(resultsDiv, this.moreResults); } } /** * Inserts a specific constant/value pair into the form and scrolls the page back to the top * * @param id The ID of the element which was selected for insertion * * @return void * * @since 2.5 */ // eslint-disable-next-line class-methods-use-this selectString(id) { document.getElementById('jform_key').value = document.getElementById(`override_key${id}`).innerHTML; document.getElementById('jform_override').value = document.getElementById(`override_string${id}`).innerHTML; } } document.addEventListener('DOMContentLoaded', () => { Joomla.overrider = new Overrider(); }); })(Joomla, document); js/admin-override-edit-refresh-searchstring.min.js 0000644 00000001244 15172600072 0016257 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 */document.addEventListener("DOMContentLoaded",()=>{document.getElementById("jform_searchstring").addEventListener("focus",({srcElement:e})=>{Joomla.overrider.states.refreshed||document.getElementById("overrider-spinner").getAttribute("data-search-string-expired")&&(Joomla.overrider.refreshCache(),Joomla.overrider.states.refreshed=!0),e.classList.remove("invalid")},!1),document.getElementById("more-results-button").addEventListener("click",()=>{Joomla.overrider.searchStrings(Joomla.overrider.states.more)},!1)}); js/admin-language-edit-change-flag.min.js 0000644 00000001066 15172600072 0014231 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 */document.addEventListener("DOMContentLoaded",()=>{document.getElementById("jform_image").addEventListener("change",({currentTarget:a})=>{const t=a.value,e=document.getElementById("flag").querySelector("img"),s=`${Joomla.getOptions("system.paths").rootFull}/media/mod_languages/images/${t}.gif`;t?(e.setAttribute("src",s),e.setAttribute("alt",t)):(e.removeAttribute("src"),e.setAttribute("alt",""))},!1)}); js/overrider.min.js.gz 0000644 00000002473 15172600072 0010726 0 ustar 00 � �W[S�8~�0j�c���>�5]�J'�n݇��D�'��"��q����N��:۷X�s�Χ����7ޮ�g�'F�R��z�~�:P^Og&�#���w�b�"Nlso���}�z,9�ftT��"e��<����;�K�Kv#E�+��Zy�=m<�̡g���i��bx�o�ݽ 0!��hKn��g�VM�6�a*,��l4304`S�F͝�����}�:S��Z�&N{h�!����d�e$K�����%a OΓ��)#0�J���T��jܠ�[���.�L��1u҆)�5'�V/�5n ��yuz�rQ���0��<���!����-ͫ�S���4�Գhg��=+��O���T�f�{�Yfd���=���z�B�(���j��X���l���͘c��jE�1`��&���]�0����q� �$|2�"��0��eq�61:�!c��}dc�������� ���]&*sQ�<�Y�|=��%�V�b��� ��v��9�\��Ǘg��g�^��y��~�k��=���w[]�zW�V����S�9͗��Hgb��I `f�a1ޞ�A�7ׯ~�l%�!A]�衻��q����"���7\�#^�+����YGs,�R��g`z ��ұ�as�=�-eCmZ<N�,�p /uU�NS!��Ҝ�pg[�t&�gB�)�"!�,b���~���:�lG�����/�W�z��� �9l���gx���2m��h��Ͷ�,���X��P���N�~ )�j�d�ϽΥ+��@�C;')�NR����s$e�Hʲ�#����1o��Z�yL(+��i�]H��2�EI��[�>��o$$��A������� _���n� /1�P���W��/J�ő�|V{��@���,ql�#T��DLK�#q�!D$$�3̻:����Ĺ�M5:�bcdt6���o����ZP]�CE�r#GN�\���U,E|K��j�^̓-�����>�w3��Á��U���! �[�D[�m��+T<v�S�9�p߈��Ƶb.�H>�� Za@nÀ���*�[x�^� Q�r6�x-��[x NZ짫�vd��J���p,Ί���y��g(_�gsH��X����,�\/�d*)�Z�~�:H/��2 j�)�`̷e��YE���N���]��zd�nN�uv� �Z�"J�9��6� jsk��� �m�!�Ɨ��枹�|@�*ns97z��V\�9�Ʒ��С������E��5O !a�l,=���;O�4�A�&a���]K���� js/admin-override-edit-refresh-searchstring.js 0000644 00000001470 15172600072 0015476 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 */ document.addEventListener('DOMContentLoaded', () => { document.getElementById('jform_searchstring').addEventListener('focus', ({ srcElement }) => { if (!Joomla.overrider.states.refreshed) { const expired = document.getElementById('overrider-spinner').getAttribute('data-search-string-expired'); if (expired) { Joomla.overrider.refreshCache(); Joomla.overrider.states.refreshed = true; } } srcElement.classList.remove('invalid'); }, false); document.getElementById('more-results-button').addEventListener('click', () => { Joomla.overrider.searchStrings(Joomla.overrider.states.more); }, false); }); js/overrider.min.js 0000644 00000010007 15172600072 0010277 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 */((r,e)=>{class o{constructor(){this.states={refreshing:!1,refreshed:!1,counter:0,searchString:"",searchType:"value"},this.spinner=e.getElementById("overrider-spinner"),this.spinnerBtn=e.getElementById("overrider-spinner-btn"),this.moreResults=e.getElementById("more-results"),this.moreResultsButton=e.getElementById("more-results-button"),this.resultsContainer=e.getElementById("results-container"),this.refreshStatus=e.getElementById("refresh-status")}refreshCache(){this.states.refreshing=!0,this.refreshStatus.classList.add("show"),r.request({url:"index.php?option=com_languages&task=strings.refresh&format=json",method:"POST",headers:{"Content-Type":"application/json"},onSuccess:t=>{t.error&&t.message&&alert(t.message),t.messages&&r.renderMessages(t.messages),this.refreshStatus.classList.remove("show"),this.states.refreshing=!1},onError:()=>{alert(r.Text._("COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR")),this.refreshStatus.classList.remove("show")}})}searchStrings(t){if(this.states.refreshing)return;const i=e.getElementById("jform_searchstring"),a=e.getElementById("jform_searchtype");if(t||(this.states.searchString=i.value,this.states.searchType=a.value||"value",[].slice.call(e.querySelectorAll(".language-results")).forEach(s=>{s.parentNode.removeChild(s)})),!this.states.searchString){i.classList.add("invalid");return}t?this.spinnerBtn.classList.add("show"):(this.moreResults.classList.remove("show"),[].slice.call(e.querySelectorAll("#results-container div.language-results")).forEach(s=>{s.parentNode.removeChild(s)}),this.resultsContainer.classList.add("show"),this.spinner.classList.add("show")),r.request({url:`index.php?option=com_languages&task=strings.search&format=json&searchstring=${this.states.searchString}&searchtype=${this.states.searchType}&more=${t}`,method:"POST",headers:{"Content-Type":"application/json"},onSuccess:n=>{const s=JSON.parse(n);s.error&&s.message&&alert(s.message),s.messages&&r.renderMessages(s.messages),s.data&&(s.data.results&&r.overrider.insertResults(s.data.results),s.data.more?(this.states.more=s.data.more,this.moreResultsButton.disabled=!1,this.moreResults.classList.add("show")):(this.moreResultsButton.disabled=!0,this.moreResults.classList.remove("show"))),this.spinnerBtn.classList.remove("show"),this.spinner.classList.remove("show")},onError:()=>{alert(r.Text._("COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR")),this.moreResultsButton.disabled=!0,this.moreResults.classList.remove("show"),this.resultsContainer.classList.remove("show")}})}insertResults(t){this.states.counter+=1;const i=e.createElement("div");if(i.setAttribute("id",`language-results${this.states.counter}`),i.classList.add("language-results"),i.classList.add("list-group"),i.classList.add("mb-2"),i.classList.add("show"),t.forEach((a,n)=>{const s=e.createElement("a");s.setAttribute("onclick",`Joomla.overrider.selectString(${this.states.counter}${n});`),s.setAttribute("href","#"),s.classList.add("list-group-item"),s.classList.add("list-group-item-action"),s.classList.add("flex-column"),s.classList.add("align-items-start");const l=e.createElement("div");l.setAttribute("id",`override_key${this.states.counter}${n}`),l.setAttribute("title",a.file),l.classList.add("result-key"),l.innerHTML=r.sanitizeHtml(a.constant);const h=e.createElement("div");h.setAttribute("id",`override_string${this.states.counter}${n}`),h.classList.add("result-string"),h.innerHTML=r.sanitizeHtml(a.string),s.appendChild(l),s.appendChild(h),i.appendChild(s)}),!t.length){const a=e.createElement("div");a.innerText=r.Text._("COM_LANGUAGES_VIEW_OVERRIDE_NO_RESULTS"),i.appendChild(a)}this.moreResults&&this.moreResults.parentNode.insertBefore(i,this.moreResults)}selectString(t){e.getElementById("jform_key").value=e.getElementById(`override_key${t}`).innerHTML,e.getElementById("jform_override").value=e.getElementById(`override_string${t}`).innerHTML}}e.addEventListener("DOMContentLoaded",()=>{r.overrider=new o})})(Joomla,document); js/admin-language-edit-change-flag-es5.min.js.gz 0000644 00000000617 15172600072 0015343 0 ustar 00 � u�OoZ1��|��lx�kr�B�?J#**ў#�o1��l�^CQ�w�H�*���jV�ͨuMNBNJ?`-E88�q;`]�8�� ����g�`���\�\[��<9��m�h�~o�s�5���GT�R! ����pE��F�^�bp�������Cf�V��P�`1��nV3#�e öˮ���خ��(�"9~Y^Os���mG6OJ��y�Y���0�ޯ3�����P�@u�<=aY���<��UfJ�ò'id�fgc��&�ƭ���ͯJ|XQ$'��ޣn�����<�r{ + ˡ�fkeSP�Y��G������6�j=���Giq$#4>�q,�B�I��]RX�a�t�\�Q��/�>�������͙>�Vz<�TDv^ js/admin-override-edit-refresh-searchstring.min.js.gz 0000644 00000000606 15172600072 0016677 0 ustar 00 � ��AO1���Ȏv�TAAm�� P)�r�I��k�Ƴ俣MV\ �����=�d<����<��T � .�ο�C���%�pg��r�h5|���|9�l�[��R�N���[o1f �����L���*x��C�>E��D#]AF��|:�_�4?���l[cdm��uy�3��R�|����,�NR]�+6ȳ������I�NT��h�V��ǍP�خ�m�(�K&;�/q�;��vH���l�&\� �����wQ�#�P�����W-�ΰ)t��ħ�:�NO��!ujl�R���>9SjL�}[MX���3�;�v�ɹ*�V�aI���\��)~��6x�oX�G�}��_�Ǡ���N]�� �Nј� js/overrider-es5.js 0000644 00000021562 15172600072 0010217 0 ustar 00 (function () { 'use strict'; /** * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (function (Joomla, document) { var Overrider = /*#__PURE__*/function () { function Overrider() { this.states = { refreshing: false, refreshed: false, counter: 0, searchString: '', searchType: 'value' }; this.spinner = document.getElementById('overrider-spinner'); this.spinnerBtn = document.getElementById('overrider-spinner-btn'); this.moreResults = document.getElementById('more-results'); this.moreResultsButton = document.getElementById('more-results-button'); this.resultsContainer = document.getElementById('results-container'); this.refreshStatus = document.getElementById('refresh-status'); } /** * Method for refreshing the database cache of known language strings via Ajax * * @return void * * @since 2.5 */ var _proto = Overrider.prototype; _proto.refreshCache = function refreshCache() { var _this = this; this.states.refreshing = true; this.refreshStatus.classList.add('show'); Joomla.request({ url: 'index.php?option=com_languages&task=strings.refresh&format=json', method: 'POST', headers: { 'Content-Type': 'application/json' }, onSuccess: function onSuccess(response) { if (response.error && response.message) { alert(response.message); } if (response.messages) { Joomla.renderMessages(response.messages); } _this.refreshStatus.classList.remove('show'); _this.states.refreshing = false; }, onError: function onError() { alert(Joomla.Text._('COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR')); _this.refreshStatus.classList.remove('show'); } }); } /** * Method for searching known language strings via Ajax * * @param more Determines the limit start of the results * * @return void * * @since 2.5 */; _proto.searchStrings = function searchStrings(more) { var _this2 = this; // Prevent searching if the cache is refreshed at the moment if (this.states.refreshing) { return; } var formSearchString = document.getElementById('jform_searchstring'); var formSearchType = document.getElementById('jform_searchtype'); // Only update the used searchstring and searchtype if the search button // was used to start the search (that will be the case if 'more' is null) if (!more) { this.states.searchString = formSearchString.value; this.states.searchType = formSearchType.value || 'value'; // Remove the old results var oldResults = [].slice.call(document.querySelectorAll('.language-results')); oldResults.forEach(function (result) { result.parentNode.removeChild(result); }); } if (!this.states.searchString) { formSearchString.classList.add('invalid'); return; } if (more) { // If 'more' is greater than 0 we have already displayed some results for // the current searchstring, so display the spinner at the more link this.spinnerBtn.classList.add('show'); } else { // Otherwise it is a new searchstring and we have to remove all previous results first this.moreResults.classList.remove('show'); var childs = [].slice.call(document.querySelectorAll('#results-container div.language-results')); childs.forEach(function (child) { child.parentNode.removeChild(child); }); this.resultsContainer.classList.add('show'); this.spinner.classList.add('show'); } Joomla.request({ url: "index.php?option=com_languages&task=strings.search&format=json&searchstring=" + this.states.searchString + "&searchtype=" + this.states.searchType + "&more=" + more, method: 'POST', headers: { 'Content-Type': 'application/json' }, onSuccess: function onSuccess(resp) { var response = JSON.parse(resp); if (response.error && response.message) { alert(response.message); } if (response.messages) { Joomla.renderMessages(response.messages); } if (response.data) { if (response.data.results) { Joomla.overrider.insertResults(response.data.results); } if (response.data.more) { // If there are more results than the sent ones // display the more link _this2.states.more = response.data.more; _this2.moreResultsButton.disabled = false; _this2.moreResults.classList.add('show'); } else { _this2.moreResultsButton.disabled = true; _this2.moreResults.classList.remove('show'); } } _this2.spinnerBtn.classList.remove('show'); _this2.spinner.classList.remove('show'); }, onError: function onError() { alert(Joomla.Text._('COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR')); _this2.moreResultsButton.disabled = true; _this2.moreResults.classList.remove('show'); _this2.resultsContainer.classList.remove('show'); } }); } /** * Method inserting the received results into the results container * * @param results An array of search result objects * * @return void * * @since 2.5 */; _proto.insertResults = function insertResults(results) { var _this3 = this; // For creating an individual ID for each result we use a counter this.states.counter += 1; // Create a container into which all the results will be inserted var resultsDiv = document.createElement('div'); resultsDiv.setAttribute('id', "language-results" + this.states.counter); resultsDiv.classList.add('language-results'); resultsDiv.classList.add('list-group'); resultsDiv.classList.add('mb-2'); resultsDiv.classList.add('show'); // Create some elements for each result and insert it into the container results.forEach(function (item, index) { var a = document.createElement('a'); a.setAttribute('onclick', "Joomla.overrider.selectString(" + _this3.states.counter + index + ");"); a.setAttribute('href', '#'); a.classList.add('list-group-item'); a.classList.add('list-group-item-action'); a.classList.add('flex-column'); a.classList.add('align-items-start'); var key = document.createElement('div'); key.setAttribute('id', "override_key" + _this3.states.counter + index); key.setAttribute('title', item.file); key.classList.add('result-key'); key.innerHTML = Joomla.sanitizeHtml(item.constant); var string = document.createElement('div'); string.setAttribute('id', "override_string" + _this3.states.counter + index); string.classList.add('result-string'); string.innerHTML = Joomla.sanitizeHtml(item.string); a.appendChild(key); a.appendChild(string); resultsDiv.appendChild(a); }); // If there aren't any results display an appropriate message if (!results.length) { var noresult = document.createElement('div'); noresult.innerText = Joomla.Text._('COM_LANGUAGES_VIEW_OVERRIDE_NO_RESULTS'); resultsDiv.appendChild(noresult); } if (this.moreResults) { this.moreResults.parentNode.insertBefore(resultsDiv, this.moreResults); } } /** * Inserts a specific constant/value pair into the form and scrolls the page back to the top * * @param id The ID of the element which was selected for insertion * * @return void * * @since 2.5 */ // eslint-disable-next-line class-methods-use-this ; _proto.selectString = function selectString(id) { document.getElementById('jform_key').value = document.getElementById("override_key" + id).innerHTML; document.getElementById('jform_override').value = document.getElementById("override_string" + id).innerHTML; }; return Overrider; }(); document.addEventListener('DOMContentLoaded', function () { Joomla.overrider = new Overrider(); }); })(Joomla, document); })();
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка