X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/realesbar/platform/packages/plugin-management/public/js
home
/
gfecatvj
/
sites
/
realesbar
/
platform
/
packages
/
plugin-management
/
public
/
js
/
📁
..
📄
plugin.js
(2.64 KB)
Editing: plugin.js
!function(e){var n={};function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(n){return e[n]}.bind(null,r));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s=277)}({277:function(e,n,t){e.exports=t(278)},278:function(e,n){function t(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var o=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,o,r;return n=e,(o=[{key:"init",value:function(){$("#plugin-list").on("click",".btn-trigger-change-status",(function(e){e.preventDefault();var n=$(e.currentTarget);n.addClass("button-loading"),$.ajax({url:route("plugins.change.status",{name:n.data("plugin")}),type:"PUT",success:function(e){e.error?Botble.showError(e.message):(Botble.showSuccess(e.message),$("#plugin-list #app-"+n.data("plugin")).load(window.location.href+" #plugin-list #app-"+n.data("plugin")+" > *"),window.location.reload()),n.removeClass("button-loading")},error:function(e){Botble.handleError(e),n.removeClass("button-loading")}})})),$(document).on("click",".btn-trigger-remove-plugin",(function(e){e.preventDefault(),$("#confirm-remove-plugin-button").data("plugin",$(e.currentTarget).data("plugin")),$("#remove-plugin-modal").modal("show")})),$(document).on("click","#confirm-remove-plugin-button",(function(e){e.preventDefault();var n=$(e.currentTarget);n.addClass("button-loading"),$.ajax({url:route("plugins.remove",{plugin:n.data("plugin")}),type:"DELETE",success:function(e){e.error?Botble.showError(e.message):(Botble.showSuccess(e.message),window.location.reload()),n.removeClass("button-loading"),$("#remove-plugin-modal").modal("hide")},error:function(e){Botble.handleError(e),n.removeClass("button-loading"),$("#remove-plugin-modal").modal("hide")}})}))}}])&&t(n.prototype,o),r&&t(n,r),e}();$(document).ready((function(){(new o).init()}))}});
Upload File
Create Folder