UNPKG

zan-proxy

Version:
2 lines 41.7 kB
webpackJsonp([1],{101:function(t,e,n){"use strict";var s=n(15),r=n.n(s),a=n(14),i=n.n(a),o=n(38),c=n.n(o),u=n(51),l=n.n(u),d=n(150),v=n.n(d),p=n(3),f=n.n(p),h=n(391),_=n(390),m=n(399),y=n(398),C=n(210),b=n(368);n.n(b);e.a={components:{HttpTraffic:h.a,Detail:_.a,"record-table":m.a,"record-detail":y.a},data:function(){return{isDataCenter:!0,width:0,height:0,recordMap:{},originRecordArray:[],filterdRecordArray:[],selectId:"",rightClickId:"",currentRequestBody:"",currentResponseBody:"",requestingClear:!1,state:{stopRecord:!1,overflow:!1},filter:""}},computed:{total:function(){return this.filterdRecordArray.length},hasCurrent:function(){return!!this.recordMap[this.selectId]},currentRow:function(){return this.recordMap[this.selectId]||{}},rightClickRow:function(){return this.recordMap[this.rightClickId]},originRequestHeader:function(){try{return this.currentRow.originRequest.headers}catch(t){return{}}},originRequestCookie:function(){try{return C.a(this.currentRow.originRequest.headers.cookie||"")}catch(t){return{}}},originRequestQueryParams:function(){try{return C.b(this.currentRow.originRequest.path)}catch(t){return{}}},requestHeader:function(){try{return this.currentRow.requestData.headers}catch(t){return{}}},requestCookie:function(){try{return C.a(this.currentRow.requestData.headers.cookie||"")}catch(t){return{}}},requestQueryParams:function(){try{return C.b(this.currentRow.requestData.path)}catch(t){return{}}},responseHeader:function(){try{var t=l()({},this.currentRow.response.headers);return delete t["set-cookie"],t}catch(t){return{}}},responseHeaderList:function(){try{var t=l()({},this.currentRow.response.headers),e=t["set-cookie"];return delete t["set-cookie"],c()(t).map(function(e){return[e,t[e]]}).concat(e.map(function(t){return["set-cookie",t]}))}catch(t){return{}}},setCookies:function(){try{return this.currentRow.response.headers["set-cookie"]||[]}catch(t){return[]}},timeline:function(){return{"请求":""}}},methods:{requestToggleRecordState:function(){this.state.stopRecord=!this.state.stopRecord,C.c(this.state.stopRecord)},requestClear:function(){this.requestingClear=!0,this.clear(),C.d()},filterRecords:function(){var t=this,e=[];this.originRecordArray.forEach(function(n){var s=t.recordMap[n],r=s.originRequest;r&&r.href.includes(t.filter)&&e.push(s.id)}),this.filterdRecordArray=e},calcSize:function(){this.width=v()(window).width(),this.height=v()(window).height()-28},receiveTraffic:function(t){var e=this;this.state.stopRecord||this.requestingClear||f.a.forEach(t,function(t){var n=t.id,s=!!e.recordMap[n],r=e.recordMap[n]||{};l()(r,t),e.$set(e.recordMap,n,r),s||e.originRecordArray.push(n);var a=t.originRequest;a&&a.href.includes(e.filter)&&e.filterdRecordArray.push(n)})},setCurrentRowIndex:function(t){var e=this;return i()(r.a.mark(function n(){var s;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e.selectId!=t){n.next=2;break}return n.abrupt("return");case 2:if(e.selectId=t,e.currentRequestBody="",e.currentResponseBody="",s=e.recordMap[t]){n.next=8;break}return n.abrupt("return");case 8:if("POST"!==s.originRequest.method){n.next=12;break}return n.next=11,C.e(t);case 11:e.currentRequestBody=n.sent;case 12:if(n.prev=12,!/(text)|(javascript)|(json)/i.test(s.response.headers["content-type"])){n.next=17;break}return n.next=16,C.f(t);case 16:e.currentResponseBody=n.sent;case 17:n.next=22;break;case 19:n.prev=19,n.t0=n.catch(12),console.log(n.t0);case 22:case"end":return n.stop()}},n,e,[[12,19]])}))()},setRightClickedRecordId:function(t){this.rightClickId=t},setFilter:function(t){this.filter=t},setState:function(t){this.state=t},clear:function(){this.recordMap={},this.originRecordArray=[],this.filterdRecordArray=[],this.currentRequestBody="",this.currentResponseBody=""}},watch:{filter:{handler:f.a.debounce(function(){this.filterRecords(),C.g(this.filter)},1e3),deep:!0}},created:function(){var t=this;if(this.calcSize(),v()(window).resize(f.a.debounce(this.calcSize,200)),window.io){var e=io("/httptrafic");e.on("rows",this.receiveTraffic),e.on("filter",function(e){t.setFilter(e)}),e.on("state",this.setState),e.on("clear",function(){t.requestingClear=!1,t.clear()})}}}},102:function(t,e,n){"use strict";var s=n(400),r=n(401),a=n(393),i=n(402),o=n(290);n.n(o);e.a={props:["height"],components:{RequestDetail:s.a,ResponseDetail:r.a,Origin:a.a,Timeline:i.a},data:function(){return{activeName:"Origin"}},methods:{tabClick:function(t){this.activeName=t}}}},103:function(t,e,n){"use strict";var s=n(3),r=(n.n(s),n(392)),a=n(227),i=n.n(a),o=n(213),c=n.n(o),u=n(50),l=n(291),d=(n.n(l),n(403));e.a={props:["height"],components:{List:r.a,ContextMenu:c.a,Record:d.a},data:function(){return{}},methods:{saveData:function(){var t=this;if(!this.$dc.rightClickRow.response)return void this.$message({message:"服务器还没有响应",type:"warning"});this.$prompt("请输入数据文件名","保存为数据文件",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(e){var n=e.value;u.a.saveDataEntryFromTraffic(t.$dc.rightClickId,n,t.$dc.rightClickRow.response.headers["content-type"].split(";")[0]).then(function(e){var n=e.data;0==n.code?t.$message({type:"success",message:"保存成功!"}):t.$message.error("出错了,"+n.msg)})})},copyUrl:function(){var t=this.$dc.rightClickRow.originRequest,e=t.protocol,n=t.host,s=t.port,r=t.path,a=e+"//"+n;s&&(a+=":"+s),a+=r,i()(a),this.$message("已将url复制到剪切板")},onCtxOpen:function(t){this.$dc.setRightClickedRecordId(t)},rightClicked:function(t,e){this.$refs.ctx.open(t,e)},onCtxClose:function(t){},resetCtxLocals:function(){this.$dc.setRightClickedRecordId("")}}}},104:function(t,e,n){"use strict";var s=n(292);n.n(s);e.a={props:["data"]}},105:function(t,e,n){"use strict";var s=n(3),r=n.n(s);e.a={props:{total:{type:Number,required:!0},height:{type:Number,required:!0},rowHeight:{type:Number,required:!0}},data:function(){return{scrollTop:0,start:0}},computed:{ids:function(){for(var t=[],e=this.start;e<this.end;e++)t.push(e);return t},contentHeight:function(){return this.rowHeight*this.total},keeps:function(){return Math.ceil(this.height/this.rowHeight)+2},end:function(){var t=this.start+20+this.keeps-1;return t+=20,t>this.total?this.total:t},top:function(){return this.rowHeight*this.start}},methods:{handleScroll:r.a.throttle(function(){var t=this.$refs.container.scrollTop,e=Math.floor(t/this.rowHeight);this.start=e<20?0:e-20},100)}}},106:function(t,e,n){"use strict";var s=n(293),r=(n.n(s),n(46));e.a={components:{KeyValueList:r.a},data:function(){return{activeName:"Header"}},methods:{tabClick:function(t){this.activeName=t}}}},107:function(t,e,n){"use strict";var s=n(47);e.a={name:"kv-list",components:{kv:s.a},props:["list"]}},108:function(t,e,n){"use strict";e.a={props:["k","v"]}},109:function(t,e,n){"use strict";var s=n(47);e.a={components:{kv:s.a},props:["obj"]}},110:function(t,e,n){"use strict";var s=n(52),r=n.n(s),a=n(47),i=n(395),o=n(215);e.a={data:function(){return{activeNames:["general","headers","query","body"],queryMode:"parsed"}},components:{kv:a.a,"obj-kv":i.a},computed:{href:function(){return this.$dc.currentRow.originRequest&&this.$dc.currentRow.originRequest.href||""},method:function(){return this.$dc.currentRow.originRequest&&this.$dc.currentRow.originRequest.method||""},protocol:function(){return this.$dc.currentRow.originRequest&&this.$dc.currentRow.originRequest.protocol.slice(0,-1)||"http"},httpVersion:function(){return this.$dc.currentRow.originRequest&&this.$dc.currentRow.originRequest.httpVersion||""},curl:function(){var t=this.$dc.currentRow;return n.i(o.a)(r()({},t.originRequest,{body:this.$dc.currentRequestBody||""}))}},methods:{toggleQueryMode:function(t){t.stopPropagation(),this.queryMode="parsed"===this.queryMode?"raw":"parsed"},onCopySuccess:function(){this.$message({type:"success",message:"已成功复制到粘贴板!"})},onCopyFail:function(){this.$message.error("复制失败,请重试")}}}},111:function(t,e,n){"use strict";var s=n(47),r=n(394),a=n(372);e.a={data:function(){return{activeNames:["general","headers","body"],bodyMode:"parsed"}},components:{kv:s.a,"kv-list":r.a,"json-tree":a.default},computed:{status:function(){return this.$dc.currentRow.response&&this.$dc.currentRow.response.statusCode?this.$dc.currentRow.response.statusCode+" "+this.$dc.currentRow.response.statusText:""},contentType:function(){return this.$dc.currentRow.response.contentType}},methods:{toggleBodyMode:function(t){t.stopPropagation(),this.bodyMode="parsed"===this.bodyMode?"raw":"parsed"}}}},112:function(t,e,n){"use strict";var s=n(396),r=n(397);e.a={components:{request:s.a,response:r.a},data:function(){return{activeName:"Request"}}}},113:function(t,e,n){"use strict";var s=n(38),r=n.n(s),a=n(323),i=(n.n(a),n(216)),o=n(354),c=n.n(o),u={html:"Document",javascript:"Script",css:"Stylesheet",font:"Font",json:"JSON",png:"PNG",jpg:"JPEG",gif:"GIF"};e.a={methods:{tableRowClassName:function(t){return this.$dc.currentRow&&t.id===this.$dc.currentRow.id?"record-selected":""},onRowClicked:function(t){this.$emit("select",t.id)}},computed:{records:function(){var t=this.$dc,e=t.recordMap;return t.filterdRecordArray.map(function(t){var s=e[t],o=s.originRequest.pathname.split("/");if(s.name=s.originRequest.search||"",s.hostpath=s.originRequest.hostname||"",s.originRequest.port&&(s.hostpath+=":"+s.originRequest.port),o.length&&(s.name=o.slice(-1)[0]+s.name),s.name||(s.name="/"),o.length>1&&(s.hostpath+=o.slice(0,-1).join("/")),s.response&&s.response.statusCode&&(s.response.statusText=n.i(a.getStatusText)(s.response.statusCode)),s.response&&s.response.headers){var l=s.response.headers;if(r()(l).forEach(function(t){l[t.toLowerCase()]=l[t]}),l["content-type"]){var d=l["content-type"];s.response.contentType=d,s.response.contentTypeText="XHR",r()(u).forEach(function(t){d.includes(t)&&(s.response.contentTypeText=u[t])})}l["content-length"]&&(s.response.size=n.i(i.a)(l["content-length"]))}return s.response&&s.response.receiveRequestTime&&s.response.requestEndTime&&(s.response.duration=c()(s.response.requestEndTime-s.response.receiveRequestTime)),s})}}}},114:function(t,e,n){"use strict";var s=n(46),r=n(294);n.n(r);e.a={components:{KeyValueList:s.a},data:function(){return{activeName:"Header"}},methods:{tabClick:function(t){this.activeName=t}}}},115:function(t,e,n){"use strict";var s=n(46),r=n(295);n.n(r);e.a={components:{KeyValueList:s.a},data:function(){return{activeName:"Header"}},methods:{tabClick:function(t){this.activeName=t}}}},116:function(t,e,n){"use strict";var s=n(46);e.a={components:{KeyValueList:s.a}}},117:function(t,e,n){"use strict";e.a={props:["index","id"],computed:{row:function(){return this.$dc.recordMap[this.id]},status:function(){try{return this.row.response.statusCode}catch(t){return""}},method:function(){return this.row.originRequest.method},protocol:function(){return this.row.originRequest.protocol},host:function(){return this.row.originRequest.host},path:function(){return this.row.originRequest.path},type:function(){try{return this.row.response.headers["content-type"]}catch(t){return""}},duration:function(){try{return this.row.response.remoteResponseEndTime-this.row.response.remoteRequestBeginTime}catch(t){return""}}},methods:{clickRow:function(t){this.$dc.setCurrentRowIndex(t)},rightClicked:function(t,e){this.$emit("right-clicked",t,e)}}}},124:function(t,e,n){"use strict";var s=n(212),r=n.n(s);e.a={name:"context-menu",props:{id:{type:String,default:"default-ctx"},ctxOpen:{type:Function},ctxCancel:{type:Function},ctxClose:{type:Function}},data:function(){var t=this;return{locals:{},align:"left",ctxTop:0,ctxLeft:0,ctxVisible:!1,bodyClickListener:r()(function(e){if(!t.ctxVisible||t.$el.contains(e.target))t.ctxVisible=!1,t.ctxClose&&t.ctxClose(t.locals);else{if(1!==e.which)return e.preventDefault(),e.stopPropagation(),!1;t.ctxVisible=!1,t.ctxCancel&&t.ctxCancel(t.locals),e.stopPropagation()}})}},methods:{setPositionFromEvent:function(t){var e=t.pageX,n=t.pageY;this.ctxTop=n-document.body.scrollTop,this.ctxLeft=e},open:function(t,e){return this.ctxVisible=!0,this.ctxOpen&&this.ctxOpen(e),this.setPositionFromEvent(t),this.$el.setAttribute("tab-index",-1),this.bodyClickListener.start(),this}},watch:{ctxVisible:function(t,e){!0===e&&!1===t&&this.bodyClickListener.stop(function(t){})}},computed:{ctxStyle:function(){return{display:this.ctxVisible?"block":"none",top:(this.ctxTop||0)+"px",left:(this.ctxLeft||0)+"px"}}}}},13:function(t,e){},164:function(t,e){},167:function(t,e,n){"use strict";var s=n(101),r=n(439),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},210:function(t,e,n){"use strict";function s(t,e){try{return e(t)}catch(e){return t}}function r(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},r=e||{},a=t.split(C),i=r.decode||b,o=0;o<a.length;o++){var c=a[o],u=c.indexOf("=");if(!(u<0)){var l=c.substr(0,u).trim(),d=c.substr(++u,c.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),void 0==n[l]&&(n[l]=s(d,i))}}return n}function a(t){return!t||t.indexOf("?")<0?{}:p.a.parse(t.split("?")[1])}n.d(e,"f",function(){return f}),n.d(e,"e",function(){return h}),n.d(e,"c",function(){return _}),n.d(e,"d",function(){return m}),n.d(e,"g",function(){return y}),e.a=r,e.b=a;var i=n(15),o=n.n(i),c=n(14),u=n.n(c),l=n(10),d=n.n(l),v=n(358),p=n.n(v),f=function(){var t=u()(o.a.mark(function t(e){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.a.get("/traffic/getResponseBody?id="+e);case 3:return n=t.sent,t.abrupt("return",n.data);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return","");case 10:case"end":return t.stop()}},t,this,[[0,7]])}));return function(e){return t.apply(this,arguments)}}(),h=function(){var t=u()(o.a.mark(function t(e){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.a.get("/traffic/getRequestBody?id="+e);case 3:return n=t.sent,t.abrupt("return",n.data);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return","");case 10:case"end":return t.stop()}},t,this,[[0,7]])}));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=u()(o.a.mark(function t(e){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.a.get("/traffic/stopRecord?stop="+e);case 3:return n=t.sent,t.abrupt("return",n.data);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return","");case 10:case"end":return t.stop()}},t,this,[[0,7]])}));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=u()(o.a.mark(function t(){var e;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.a.get("/traffic/clear");case 3:return e=t.sent,t.abrupt("return",e.data);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return","");case 10:case"end":return t.stop()}},t,this,[[0,7]])}));return function(){return t.apply(this,arguments)}}(),y=function(){var t=u()(o.a.mark(function t(e){var n;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d.a.get("/traffic/setfilter?filter="+e);case 3:return n=t.sent,t.abrupt("return",n.data);case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return","");case 10:case"end":return t.stop()}},t,this,[[0,7]])}));return function(e){return t.apply(this,arguments)}}(),C=/; */,b=decodeURIComponent},212:function(t,e){t.exports=function(t){function e(e){e.preventDefault(),"function"==typeof t&&t(e);try{stop()}catch(e){}}function n(t){27===t.keyCode&&e(t)}var s=!1;return{get isListening(){return s},start:function(t){window.addEventListener("click",e,!0),window.addEventListener("keyup",n,!0),s=!0,"function"==typeof t&&t()},stop:function(t){window.removeEventListener("click",e,!0),window.removeEventListener("keyup",n,!0),s=!1,"function"==typeof t&&t()}}}},213:function(t,e,n){var s=n(373);s.install=function(t){return t.component("context-menu",s)},window.VueContextMenu=s,t.exports=t.exports.default=s},215:function(t,e,n){"use strict";var s=n(37),r=n.n(s),a=n(38),i=n.n(a),c=n(364),u=n.n(c),l=n(3),d=(n.n(l),function(t){var e=t.method,s=t.headers,a=t.body,c=t.href,d=t.auth,v=["curl"];return v.push("-X"),v.push(e||"GET"),d&&(v.push("-u"),v.push(o.auth)),s=s||{},i()(s).forEach(function(t){var e=s[t];v.push("-H");var n=e?t+": "+e:t+";";v.push(n)}),a&&((n.i(l.isObject)(a)||n.i(l.isArray)(a))&&(a=r()(a)),v.push("--data"),v.push(a)),v.push(c),u()(v)});e.a=d},216:function(t,e,n){"use strict";var s=n(29),r=n.n(s),a=["Bytes","kB","MB","GB","TB","PB","EB"],i=function(t,e,n,s){if("object"===(void 0===e?"undefined":r()(e))){var i=e;e=i.nospace,n=i.one,s=i.places||1}else s=s||1;var o=void 0;if(a.forEach(function(r,a){n&&(r=r.slice(0,1));var i=Math.pow(1024,a),c=void 0;t>=i&&(c=String((t/i).toFixed(s)),c.indexOf(".0")===c.length-2&&(c=c.slice(0,-2)),o=c+(e?"":" ")+r)}),!o){var c=n?a[0].slice(0,1):a[0];o="0"+(e?"":" ")+c}return o};e.a=i},217:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(1),r=n(167),a=n(28),i=n.n(a),o=n(164),c=(n.n(o),n(27)),u=n.n(c),l=n(13),d=(n.n(l),n(165)),v=n.n(d);s.default.use(u.a),s.default.use(i.a),s.default.use(v.a),new s.default({el:"#app",render:function(t){return t(r.a)}})},290:function(t,e){},291:function(t,e){},292:function(t,e){},293:function(t,e){},294:function(t,e){},295:function(t,e){},297:function(t,e){},298:function(t,e){},300:function(t,e){},311:function(t,e){},315:function(t,e){},320:function(t,e){},321:function(t,e){},322:function(t,e){},372:function(t,e,n){"use strict";function s(t){n(315)}var r=n(82),a=n.n(r),i=n(438),o=n(0),c=s,u=n.i(o.a)(a.a,i.a,i.b,!1,c,null,null);e.default=u.exports},373:function(t,e,n){"use strict";function s(t){n(322)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(124),a=n(435),i=n(0),o=s,c=n.i(i.a)(r.a,a.a,a.b,!1,o,null,null);e.default=c.exports},390:function(t,e,n){"use strict";var s=n(102),r=n(426),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},391:function(t,e,n){"use strict";var s=n(103),r=n(414),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},392:function(t,e,n){"use strict";var s=n(105),r=n(409),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},393:function(t,e,n){"use strict";var s=n(106),r=n(441),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},394:function(t,e,n){"use strict";var s=n(107),r=n(436),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},395:function(t,e,n){"use strict";var s=n(109),r=n(419),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},396:function(t,e,n){"use strict";function s(t){n(300)}var r=n(110),a=n(416),i=n(0),o=s,c=n.i(i.a)(r.a,a.a,a.b,!1,o,"data-v-1c2c8ccf",null);e.a=c.exports},397:function(t,e,n){"use strict";function s(t){n(311)}var r=n(111),a=n(448),i=n(0),o=s,c=n.i(i.a)(r.a,a.a,a.b,!1,o,"data-v-e652d728",null);e.a=c.exports},398:function(t,e,n){"use strict";function s(t){n(320)}var r=n(112),a=n(418),i=n(0),o=s,c=n.i(i.a)(r.a,a.a,a.b,!1,o,null,null);e.a=c.exports},399:function(t,e,n){"use strict";function s(t){n(321),n(298)}var r=n(113),a=n(413),i=n(0),o=s,c=n.i(i.a)(r.a,a.a,a.b,!1,o,"data-v-1432d3ac",null);e.a=c.exports},400:function(t,e,n){"use strict";var s=n(114),r=n(428),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},401:function(t,e,n){"use strict";var s=n(115),r=n(421),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},402:function(t,e,n){"use strict";var s=n(116),r=n(444),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},403:function(t,e,n){"use strict";var s=n(117),r=n(411),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},409:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"container",style:{"overflow-y":"scroll",height:t.height+"px"},on:{scroll:function(e){e.preventDefault(),t.handleScroll(e)}}},[n("div",{style:{height:t.contentHeight+"px"}},[n("div",{style:{transform:"translate3d(0,"+t.top+"px,0)"}},[t._t("default",null,{ids:t.ids})],2)])])},r=[]},410:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"kv-pair"},[n("label",[t._v(t._s(t.k)+": ")]),t._v(" "),n("span",[t._v(t._s(t.v)),t._t("default")],2)])},r=[]},411:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"record row",class:{selected:t.$dc.selectId==t.id,"right-clicked":t.$dc.rightClickId==t.id},on:{click:function(e){t.clickRow(t.id)},contextmenu:function(e){e.preventDefault(),t.rightClicked(e,t.id)}}},[n("div",{staticClass:"cell cell-index"},[t._v(t._s(t.index+1))]),t._v(" "),n("div",{staticClass:"cell cell-status"},[t._v(t._s(t.status))]),t._v(" "),n("div",{staticClass:"cell cell-method"},[t._v(t._s(t.method))]),t._v(" "),n("div",{staticClass:"cell cell-protocol"},[t._v(t._s(t.protocol))]),t._v(" "),n("div",{staticClass:"cell cell-host"},[t._v(t._s(t.host))]),t._v(" "),n("div",{staticClass:"cell cell-path"},[t._v(t._s(t.path))]),t._v(" "),n("div",{staticClass:"cell cell-type"},[t._v(t._s(t.type))]),t._v(" "),n("div",{staticClass:"cell cell-time"},[t._v(t._s(t.duration))])])},r=[]},413:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-table",{attrs:{data:t.records,stripe:"",border:"","row-class-name":t.tableRowClassName},on:{"row-click":t.onRowClicked}},[n("el-table-column",{attrs:{label:"Name"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"name-container",attrs:{title:e.row.originRequest.href}},[n("div",{staticClass:"name text"},[t._v("\n "+t._s(e.row.name)+"\n ")]),t._v(" "),n("div",{staticClass:"foot"},[t._v("\n "+t._s(e.row.hostpath)+"\n ")])])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"Status",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"status-container"},[n("div",{staticClass:"code text"},[t._v("\n "+t._s(e.row.response&&e.row.response.statusCode||"--")+"\n ")]),t._v(" "),n("div",{staticClass:"foot"},[t._v("\n "+t._s(e.row.response&&e.row.response.statusText||"")+"\n ")])])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"Type",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"type-container"},[n("div",{staticClass:"type text"},[t._v("\n "+t._s(e.row.response&&e.row.response.contentTypeText||"--")+"\n ")]),t._v(" "),n("div",{staticClass:"foot"},[t._v("\n "+t._s(e.row.response&&e.row.response.contentType||"")+"\n ")])])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"Method",width:"180",prop:"originRequest.method"}}),t._v(" "),n("el-table-column",{attrs:{label:"Size",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"size-container"},[n("div",{staticClass:"size text"},[t._v("\n "+t._s(e.row.response&&e.row.response.size||"--")+"\n ")])])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"Duration"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"duration-container"},[n("div",{staticClass:"duration text"},[t._v("\n "+t._s(e.row.response&&e.row.response.duration||"--")+"\n ")])])]}}])})],1)},r=[]},414:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"traffic"},[t._m(0),t._v(" "),n("list",{attrs:{total:t.$dc.total,height:t.height-28,rowHeight:24},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.ids,function(e){return n("record",{key:e,attrs:{index:e,id:t.$dc.filterdRecordArray[e]},on:{"right-clicked":t.rightClicked}})})}}])}),t._v(" "),n("context-menu",{ref:"ctx",attrs:{id:"testingctx",ctxOpen:t.onCtxOpen,ctxCancel:t.resetCtxLocals,ctxClose:t.onCtxClose}},[n("li",{staticClass:"ctx-item",on:{click:t.saveData}},[t._v("保存为mock数据")]),t._v(" "),n("li",{staticClass:"ctx-item",on:{click:t.copyUrl}},[t._v("复制url")])])],1)},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header row"},[n("div",{staticClass:"cell cell-index"},[t._v("#")]),t._v(" "),n("div",{staticClass:"cell cell-status"},[t._v("Status")]),t._v(" "),n("div",{staticClass:"cell cell-method"},[t._v("Method")]),t._v(" "),n("div",{staticClass:"cell cell-protocol"},[t._v("Protocol")]),t._v(" "),n("div",{staticClass:"cell cell-host"},[t._v("Host")]),t._v(" "),n("div",{staticClass:"cell cell-path"},[t._v("Path")]),t._v(" "),n("div",{staticClass:"cell cell-type"},[t._v("Type")]),t._v(" "),n("div",{staticClass:"cell cell-time"},[t._v("Time")])])}]},416:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[n("el-collapse-item",{attrs:{title:"General",name:"general"}},[n("div",[n("kv",{attrs:{k:"Request URL",v:t.href}},[n("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.curl,expression:"curl",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopySuccess,expression:"onCopySuccess",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onCopyFail,expression:"onCopyFail",arg:"error"}],staticClass:"copy-as-curl"},[t._v("Copy as cURL")])]),t._v(" "),n("kv",{attrs:{k:"Request Method",v:t.method}}),t._v(" "),n("kv",{attrs:{k:"Protocol",v:t.protocol}}),t._v(" "),n("kv",{attrs:{k:"HTTP Version",v:t.httpVersion}})],1)]),t._v(" "),n("el-collapse-item",{attrs:{title:"Headers",name:"headers"}},[n("obj-kv",{attrs:{obj:t.$dc.requestHeader}})],1),t._v(" "),Object.keys(t.$dc.requestQueryParams).length?n("el-collapse-item",{attrs:{name:"query"}},[n("template",{slot:"title"},[t._v("\n Query\n "),n("span",{staticClass:"toggle-mode-button",on:{click:t.toggleQueryMode}},["parsed"===t.queryMode?n("span",[t._v("View Source")]):n("span",[t._v("View Parsed")])])]),t._v(" "),"parsed"===t.queryMode?n("obj-kv",{attrs:{obj:t.$dc.requestQueryParams}}):n("div",[t._v(t._s(t.$dc.currentRow.originRequest.query))])],2):t._e(),t._v(" "),t.$dc.currentRequestBody?n("el-collapse-item",{attrs:{title:"Body",name:"body"}},[t._v("\n\n "+t._s(t.$dc.currentRequestBody||"")+"\n ")]):t._e()],1)},r=[]},417:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"keyvalue-wrapper"},[t._l(t.data,function(e,s){return[n("div",{staticClass:"row"},[n("div",{staticClass:"name"},[t._v(t._s(s))]),t._v(" "),n("div",{staticClass:"value"},[t._v(t._s(e))])])]})],2)},r=[]},418:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"record-detail",class:{show:t.$dc.hasCurrent}},[n("span",{staticClass:"close-button",on:{click:function(e){t.$emit("close")}}},[n("i",{staticClass:"el-icon-close"})]),t._v(" "),t.$dc.hasCurrent?n("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"Request",name:"Request"}},[n("request")],1),t._v(" "),n("el-tab-pane",{attrs:{label:"Response",name:"Response"}},[n("response")],1)],1):t._e()],1)},r=[]},419:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.obj,function(t,e){return n("kv",{key:e,attrs:{k:e,v:t}})}))},r=[]},421:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"response"},[n("div",{staticClass:"response__header"},[n("div",{staticClass:"response__tab",class:{active:"Header"==t.activeName},on:{click:function(e){t.tabClick("Header")}}},[t._v("Header")]),t._v(" "),n("div",{staticClass:"response__tab",class:{active:"Set Cookies"==t.activeName},on:{click:function(e){t.tabClick("Set Cookies")}}},[t._v("Set Cookies")]),t._v(" "),n("div",{staticClass:"response__tab",class:{active:"Body"==t.activeName},on:{click:function(e){t.tabClick("Body")}}},[t._v("Body")])]),t._v(" "),n("div",{staticClass:"response__body"},["Header"==t.activeName?n("div",[n("key-value-list",{attrs:{data:t.$dc.responseHeader}})],1):t._e(),t._v(" "),"Set Cookies"==t.activeName?n("div",{staticClass:"set-cookies"},t._l(t.$dc.setCookies,function(e){return n("div",{staticClass:"cookie-row"},[t._v("\n "+t._s(e)+"\n ")])})):t._e(),t._v(" "),"Body"==t.activeName?n("div",{staticClass:"text-area"},[t._v(t._s(t.$dc.currentResponseBody))]):t._e()])])},r=[]},426:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"detail",style:{height:t.height+"px"}},[n("div",{staticClass:"detail__header"},[n("div",{staticClass:"detail__tab",class:{active:"Origin"==t.activeName},on:{click:function(e){t.tabClick("Origin")}}},[t._v("原始请求")]),t._v(" "),n("div",{staticClass:"detail__tab",class:{active:"Request"==t.activeName},on:{click:function(e){t.tabClick("Request")}}},[t._v("Request")]),t._v(" "),n("div",{staticClass:"detail__tab",class:{active:"Response"==t.activeName},on:{click:function(e){t.tabClick("Response")}}},[t._v("Response")]),t._v(" "),n("div",{staticClass:"detail__tab",class:{active:"Timeline"==t.activeName},on:{click:function(e){t.tabClick("Timeline")}}},[t._v("Timeline")])]),t._v(" "),n("div",{staticClass:"detail__body"},["Origin"==t.activeName?n("div",[n("origin")],1):t._e(),t._v(" "),"Request"==t.activeName?n("div",[n("request-detail")],1):t._e(),t._v(" "),"Response"==t.activeName?n("div",[n("response-detail")],1):t._e()])])},r=[]},428:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"request"},[n("div",{staticClass:"request__header"},[n("div",{staticClass:"request__tab",class:{active:"Header"==t.activeName},on:{click:function(e){t.tabClick("Header")}}},[t._v("Header")]),t._v(" "),n("div",{staticClass:"request__tab",class:{active:"Cookie"==t.activeName},on:{click:function(e){t.tabClick("Cookie")}}},[t._v("Cookie")]),t._v(" "),n("div",{staticClass:"request__tab",class:{active:"Query Params"==t.activeName},on:{click:function(e){t.tabClick("Query Params")}}},[t._v("Query Params")]),t._v(" "),n("div",{staticClass:"request__tab",class:{active:"Body"==t.activeName},on:{click:function(e){t.tabClick("Body")}}},[t._v("Body")])]),t._v(" "),n("div",{staticClass:"request__body"},["Header"==t.activeName?n("div",[n("key-value-list",{attrs:{data:t.$dc.requestHeader}})],1):t._e(),t._v(" "),"Cookie"==t.activeName?n("div",[n("key-value-list",{attrs:{data:t.$dc.requestCookie}})],1):t._e(),t._v(" "),"Query Params"==t.activeName?n("div",[n("key-value-list",{attrs:{data:t.$dc.requestQueryParams}})],1):t._e(),t._v(" "),"Body"==t.activeName?n("div",{staticClass:"text-area"},[t._v(t._s(t.$dc.currentRequestBody))]):t._e()])])},r=[]},435:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"contextMenu",staticClass:"ctx-menu-container",style:t.ctxStyle,attrs:{id:t.id},on:{click:function(t){t.stopPropagation()},contextmenu:function(t){t.stopPropagation()}}},[n("div",{staticClass:"ctx open",staticStyle:{"background-color":"transparent"}},[n("ul",{staticClass:"ctx-menu",class:{"ctx-menu-right":"right"===t.align,"ctx-menu-left":"left"===t.align},attrs:{role:"menu"}},[t._t("default")],2)])])},r=[]},436:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.list,function(t,e){return n("kv",{key:e,attrs:{k:t[0],v:t[1]}})}))},r=[]},438:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"json-tree",class:{"json-tree-root":0===t.parsed.depth}},[t.parsed.primitive?n("span",{staticClass:"json-tree-row"},[t._l(2*t.parsed.depth+3,function(e){return n("span",{key:e,staticClass:"json-tree-indent"},[t._v(" ")])}),t._v(" "),t.parsed.key?n("span",{staticClass:"json-tree-key"},[t._v(t._s(t.parsed.key))]):t._e(),t._v(" "),t.parsed.key?n("span",{staticClass:"json-tree-colon"},[t._v(": ")]):t._e(),t._v(" "),n("span",{staticClass:"json-tree-value",class:"json-tree-value-"+t.parsed.type,attrs:{title:""+t.parsed.value}},[t._v(t._s(""+t.parsed.value))]),t._v(" "),t.parsed.last?t._e():n("span",{staticClass:"json-tree-comma"},[t._v(",")]),t._v(" "),n("span",{staticClass:"json-tree-indent"},[t._v(" ")])],2):t._e(),t._v(" "),t.parsed.primitive?t._e():n("span",{staticClass:"json-tree-deep"},[n("span",{staticClass:"json-tree-row json-tree-expando",on:{click:function(e){t.expanded=!t.expanded},mouseover:function(e){t.hovered=!0},mouseout:function(e){t.hovered=!1}}},[n("span",{staticClass:"json-tree-indent"},[t._v(" ")]),t._v(" "),n("span",{staticClass:"json-tree-sign"},[t._v(t._s(t.expanded?"-":"+"))]),t._v(" "),t._l(2*t.parsed.depth+1,function(e){return n("span",{key:e,staticClass:"json-tree-indent"},[t._v(" ")])}),t._v(" "),t.parsed.key?n("span",{staticClass:"json-tree-key"},[t._v(t._s(t.parsed.key))]):t._e(),t._v(" "),t.parsed.key?n("span",{staticClass:"json-tree-colon"},[t._v(": ")]):t._e(),t._v(" "),n("span",{staticClass:"json-tree-open"},[t._v(t._s("array"===t.parsed.type?"[":"{"))]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.expanded,expression:"!expanded"}],staticClass:"json-tree-collapsed"},[t._v(" /* "+t._s(t.format(t.parsed.value.length))+" */ ")]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.expanded,expression:"!expanded"}],staticClass:"json-tree-close"},[t._v(t._s("array"===t.parsed.type?"]":"}"))]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!t.expanded&&!t.parsed.last,expression:"!expanded && !parsed.last"}],staticClass:"json-tree-comma"},[t._v(",")]),t._v(" "),n("span",{staticClass:"json-tree-indent"},[t._v(" ")])],2),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"json-tree-deeper"},t._l(t.parsed.value,function(e,s){return n("json-tree",{key:s,attrs:{kv:e,level:t.level}})})),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"json-tree-row"},[n("span",{staticClass:"json-tree-ending",class:{"json-tree-paired":t.hovered}},[t._l(2*t.parsed.depth+3,function(e){return n("span",{key:e,staticClass:"json-tree-indent"},[t._v(" ")])}),t._v(" "),n("span",{staticClass:"json-tree-close"},[t._v(t._s("array"===t.parsed.type?"]":"}"))]),t._v(" "),t.parsed.last?t._e():n("span",{staticClass:"json-tree-comma"},[t._v(",")]),t._v(" "),n("span",{staticClass:"json-tree-indent"},[t._v(" ")])],2)])])])},r=[]},439:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app",attrs:{id:"app"}},[n("div",{staticClass:"op-bar"},[n("div",{staticClass:"buttons"},[t.state.stopRecord?n("el-button",{attrs:{type:"primary",icon:"caret-right"},on:{click:t.requestToggleRecordState}},[t._v("记录\n ")]):n("el-button",{attrs:{type:"danger"},on:{click:t.requestToggleRecordState}},[n("i",{staticClass:"icon-stop"}),n("span",[t._v("停止")])]),t._v(" "),n("el-button",{attrs:{icon:"delete"},on:{click:t.requestClear}},[t._v("清空\n ")])],1),t._v(" "),n("div",{staticClass:"filter-input"},[n("el-input",{attrs:{placeholder:"Filter",icon:"search"},model:{value:t.filter,callback:function(e){t.filter=e},expression:"filter"}})],1)]),t._v(" "),n("div",{staticClass:"monitor"},[n("record-table",{on:{select:t.setCurrentRowIndex}}),t._v(" "),n("record-detail",{on:{close:function(e){t.setCurrentRowIndex(null)}}})],1)])},r=[]},441:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"origin"},[n("div",{staticClass:"request__header"},[n("div",{staticClass:"request__tab",class:{active:"Header"==t.activeName},on:{click:function(e){t.tabClick("Header")}}},[t._v("Header")]),t._v(" "),n("div",{staticClass:"request__tab",class:{active:"Cookie"==t.activeName},on:{click:function(e){t.tabClick("Cookie")}}},[t._v("Cookie")]),t._v(" "),n("div",{staticClass:"request__tab",class:{active:"Query Params"==t.activeName},on:{click:function(e){t.tabClick("Query Params")}}},[t._v("Query Params")])]),t._v(" "),n("div",{staticClass:"request__body"},["Header"==t.activeName?n("div",[n("key-value-list",{attrs:{data:t.$dc.originRequestHeader}})],1):t._e(),t._v(" "),"Cookie"==t.activeName?n("div",[n("key-value-list",{attrs:{data:t.$dc.originRequestCookie}})],1):t._e(),t._v(" "),"Query Params"==t.activeName?n("div",[n("key-value-list",{attrs:{data:t.$dc.originRequestQueryParams}})],1):t._e()])])},r=[]},444:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("key-value-list",{attrs:{data:t.$dc.timeline}})],1)},r=[]},448:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[n("el-collapse-item",{attrs:{title:"General",name:"general"}},[n("div",[n("kv",{attrs:{k:"Status Code",v:t.status}}),t._v(" "),n("kv",{attrs:{k:"Response size",v:t.$dc.currentRow.response.size}}),t._v(" "),n("kv",{attrs:{k:"Duration",v:t.$dc.currentRow.response.duration}})],1)]),t._v(" "),n("el-collapse-item",{attrs:{title:"Headers",name:"headers"}},[n("kv-list",{attrs:{list:t.$dc.responseHeaderList}})],1),t._v(" "),t.$dc.currentResponseBody?n("el-collapse-item",{attrs:{name:"body"}},[n("template",{slot:"title"},[t._v("\n Body\n "),n("span",{staticClass:"toggle-mode-button",on:{click:t.toggleBodyMode}},["parsed"===t.bodyMode?n("span",[t._v("View Source")]):n("span",[t._v("View Parsed")])])]),t._v(" "),"parsed"===t.bodyMode&&t.contentType.includes("json")?n("json-tree",{attrs:{data:t.$dc.currentResponseBody}}):n("div",[t._v(t._s(t.$dc.currentResponseBody))])],2):t._e()],1)},r=[]},46:function(t,e,n){"use strict";var s=n(104),r=n(417),a=n(0),i=n.i(a.a)(s.a,r.a,r.b,!1,null,null,null);e.a=i.exports},47:function(t,e,n){"use strict";function s(t){n(297)}var r=n(108),a=n(410),i=n(0),o=s,c=n.i(i.a)(r.a,a.a,a.b,!1,o,"data-v-0c97231c",null);e.a=c.exports},50:function(t,e,n){"use strict";var s=n(10),r=n.n(s),a=n(34),i=n.n(a);e.a={getDataList:function(){return r.a.get("/data/getdatalist")},saveDataList:function(t){return r.a.post("/data/savedatalist",t)},getDataFile:function(t){return r.a.get("/data/getdatafile?id="+t)},saveDataFile:function(t,e){return r.a.post("/data/savedatafile?id="+t,{content:e})},saveDataEntryFromTraffic:function(t,e,n){return r.a.post("/data/savedatafromtraffic",{id:i()(),name:e,contenttype:n,reqid:t})}}},82:function(t,e,n){"use strict";function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,i={depth:e,last:n,primitive:!0,key:JSON.stringify(a)};if("object"!==(void 0===t?"undefined":r(t)))return Object.assign(i,{type:void 0===t?"undefined":r(t),value:JSON.stringify(t)});if(null===t)return Object.assign(i,{type:"null",value:"null"});if(Array.isArray(t)){var o=t.map(function(n,r){return s(n,e+1,r===t.length-1)});return Object.assign(i,{primitive:!1,type:"array",value:o})}var c=Object.keys(t),u=c.map(function(n,r){return s(t[n],e+1,r===c.length-1,n)});return Object.assign(i,{primitive:!1,type:"object",value:u})}Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default={name:"json-tree",props:{level:{type:Number,default:1/0},kv:{type:Object},raw:{type:String},data:{}},data:function(){return{expanded:!0,hovered:!1}},computed:{parsed:function(){if(this.kv)return this.kv;var t=void 0;try{this.raw?t=JSON.parse(this.raw):void 0!==this.data?t=this.data:(t="[Vue JSON Tree] No data passed.",console.warn(t))}catch(e){t="[Vue JSON Tree] Invalid raw JSON.",console.warn(t)}finally{return s(t)}}},methods:{format:function(t){return t>1?t+" items":t?"1 item":"no items"}},created:function(){this.expanded=this.parsed.depth<this.level}}}},[217]); //# sourceMappingURL=monitor.js.map