Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/sitepress-multilingual-cms/dist/js/wpml-requirements/app.js
Назад
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),i=n.n(a),u=function(){function e(t){var n=this;o()(this,e),this.ajax=t,document.addEventListener("otgs-notice-added",(function(e){n.attachEvents()}))}return i()(e,[{key:"attachEvents",value:function(){var e=this,t=document.querySelectorAll(".wpml-requirements-disabled");[].forEach.call(t,(function(t){return t.onclick=function(t){return e.activatePlugin(t)}}))}},{key:"activatePlugin",value:function(e){e.preventDefault();var t=e.currentTarget;t.innerHTML=t.dataset.wpmlActivating,this.ajax.post({nonce:e.currentTarget.dataset.wpmlDisabledPluginNonce,action:"installer_activate_plugin",plugin_id:t.dataset.pluginFile},"form").then((function(n){n.error?t.innerHTML=e.currentTarget.dataset.wpmlError:t.outerHTML=t.dataset.wpmlActivated}))}}]),e}(),c=function(){function e(t){o()(this,e),this.ajaxUrl=t}return i()(e,[{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"json",n="",r=null,o=new URL(this.ajaxUrl,document.location);switch(t){case"json":n="application/json";break;case"form":n="application/x-www-form-urlencoded; charset=utf-8"}return o.searchParams.toString()?Object.keys(e).map((function(t){return o.searchParams.append(t,e[t])})):r=Object.keys(e).map((function(t){return t+"="+e[t]})).join("&"),fetch(o,{method:"POST",body:r,headers:{"Content-Type":n},credentials:"same-origin"}).then((function(e){if(e.ok)switch(t){case"json":return e.json();case"form":return e.text();default:return e}throw new Error("Invalid Request")})).catch((function(e){console.log("There has been a problem with your fetch operation: ",e.message)}))}}]),e}();window.addEventListener("DOMContentLoaded",(function(){new u(new c(ajaxurl)).attachEvents()}))}]);
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка