From 68c04ee5fcae22dd26e937f74bbc69f96dd88f47 Mon Sep 17 00:00:00 2001 From: selul Date: Wed, 27 Mar 2019 10:16:23 +0200 Subject: [PATCH] fix: remove unnecessary variables in the rest request causing conflicts with redirection plugins --- assets/js/bundle.min.js | 2 +- assets/vue/components/api-key-form.vue | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/assets/js/bundle.min.js b/assets/js/bundle.min.js index 5a863da4..baa92f35 100644 --- a/assets/js/bundle.min.js +++ b/assets/js/bundle.min.js @@ -8,7 +8,7 @@ var _a=Object.freeze({}),za=Object.prototype.toString,Ca=h("slot,component",!0), * https://github.com/pagekit/vue-resource * Released under the MIT License. */ -var st=2;o.reject=function(t){return new o(function(e,n){n(t)})},o.resolve=function(t){return new o(function(e,n){e(t)})},o.all=function(t){return new o(function(e,n){var i=0,a=[];0===t.length&&e(a);for(var r=0;r=200&&i<300,this.status=i||0,this.statusText=a||"",this.headers=new wt(o),this.body=t,f(t)?this.bodyText=t:v(t)&&(this.bodyBlob=t,nt(t)&&(this.bodyText=et(t)))};yt.prototype.blob=function(){return x(this.bodyBlob)},yt.prototype.text=function(){return x(this.bodyText)},yt.prototype.json=function(){return x(this.text(),function(t){return JSON.parse(t)})},Object.defineProperty(yt.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var kt=function(t){this.body=null,this.params={},gt(this,t,{method:m(t.method||"GET")}),this.headers instanceof wt||(this.headers=new wt(this.headers))};kt.prototype.getUrl=function(){return M(this)},kt.prototype.getBody=function(){return this.body},kt.prototype.respondWith=function(t,e){return new yt(t,gt(e||{},{url:this.getUrl()}))};var _t={Accept:"application/json, text/plain, */*"},zt={"Content-Type":"application/json;charset=utf-8"};ot.options={},ot.headers={put:zt,post:zt,patch:zt,delete:zt,common:_t,custom:{}},ot.interceptor={before:W,method:K,jsonp:H,json:G,form:B,header:V,cors:R},ot.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach(function(t){ot[t]=function(e,n){return this(gt(n||{},{url:e,method:t}))}}),["post","put","patch"].forEach(function(t){ot[t]=function(e,n,o){return this(gt(o||{},{url:e,method:t,body:n}))}}),it.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use(rt),e.default=rt},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var i=n(3),a=o(i),r=n(10),s=o(r),p=n(53),l=o(p),c=n(58),d=o(c),m=n(59),f=o(m);a.default.use(f.default),a.default.use(d.default),window.addEventListener("load",function(){new a.default({el:"#optimole-app",store:l.default,components:{App:s.default}})})},function(t,e,n){(function(t){function o(t,e){this._id=t,this._clearFn=e}var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;e.setTimeout=function(){return new o(a.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new o(a.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(8),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(2))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function o(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n