From 6d5ce792ce8e76db92f915eb6969696be1f8224e Mon Sep 17 00:00:00 2001 From: ZhouYixun <291028775@qq.com> Date: Sat, 12 Mar 2022 22:53:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=A1=A8=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addon/web/client/build/asset-manifest.json | 30 +- addon/web/client/build/index.html | 2 +- .../build/static/css/main.a44df68e.chunk.css | 2 + .../static/css/main.a44df68e.chunk.css.map | 1 + .../build/static/css/main.e083a17d.chunk.css | 2 - .../static/css/main.e083a17d.chunk.css.map | 1 - .../build/static/js/2.7c1c8c66.chunk.js | 3 + ...SE.txt => 2.7c1c8c66.chunk.js.LICENSE.txt} | 0 .../build/static/js/2.7c1c8c66.chunk.js.map | 1 + .../build/static/js/2.7f8aa84a.chunk.js | 3 - .../build/static/js/2.7f8aa84a.chunk.js.map | 1 - ....289b8867.chunk.js => 3.8bef17b9.chunk.js} | 4 +- ...7.chunk.js.map => 3.8bef17b9.chunk.js.map} | 2 +- ...b541ce.chunk.js => main.479f2438.chunk.js} | 4 +- .../static/js/main.479f2438.chunk.js.map | 1 + .../static/js/main.5cb541ce.chunk.js.map | 1 - ...n.2c16e99a.js => runtime-main.62996a3d.js} | 4 +- ...9a.js.map => runtime-main.62996a3d.js.map} | 2 +- addon/web/client/src/App.tsx | 2 +- addon/web/client/yarn.lock | 21305 ++++++++-------- 20 files changed, 10649 insertions(+), 10722 deletions(-) create mode 100644 addon/web/client/build/static/css/main.a44df68e.chunk.css create mode 100644 addon/web/client/build/static/css/main.a44df68e.chunk.css.map delete mode 100644 addon/web/client/build/static/css/main.e083a17d.chunk.css delete mode 100644 addon/web/client/build/static/css/main.e083a17d.chunk.css.map create mode 100644 addon/web/client/build/static/js/2.7c1c8c66.chunk.js rename addon/web/client/build/static/js/{2.7f8aa84a.chunk.js.LICENSE.txt => 2.7c1c8c66.chunk.js.LICENSE.txt} (100%) create mode 100644 addon/web/client/build/static/js/2.7c1c8c66.chunk.js.map delete mode 100644 addon/web/client/build/static/js/2.7f8aa84a.chunk.js delete mode 100644 addon/web/client/build/static/js/2.7f8aa84a.chunk.js.map rename addon/web/client/build/static/js/{3.289b8867.chunk.js => 3.8bef17b9.chunk.js} (97%) rename addon/web/client/build/static/js/{3.289b8867.chunk.js.map => 3.8bef17b9.chunk.js.map} (98%) rename addon/web/client/build/static/js/{main.5cb541ce.chunk.js => main.479f2438.chunk.js} (94%) create mode 100644 addon/web/client/build/static/js/main.479f2438.chunk.js.map delete mode 100644 addon/web/client/build/static/js/main.5cb541ce.chunk.js.map rename addon/web/client/build/static/js/{runtime-main.2c16e99a.js => runtime-main.62996a3d.js} (95%) rename addon/web/client/build/static/js/{runtime-main.2c16e99a.js.map => runtime-main.62996a3d.js.map} (98%) diff --git a/addon/web/client/build/asset-manifest.json b/addon/web/client/build/asset-manifest.json index 4eb9aa7..f579a78 100644 --- a/addon/web/client/build/asset-manifest.json +++ b/addon/web/client/build/asset-manifest.json @@ -1,25 +1,25 @@ { "files": { - "main.css": "/static/css/main.e083a17d.chunk.css", - "main.js": "/static/js/main.5cb541ce.chunk.js", - "main.js.map": "/static/js/main.5cb541ce.chunk.js.map", - "runtime-main.js": "/static/js/runtime-main.2c16e99a.js", - "runtime-main.js.map": "/static/js/runtime-main.2c16e99a.js.map", + "main.css": "/static/css/main.a44df68e.chunk.css", + "main.js": "/static/js/main.479f2438.chunk.js", + "main.js.map": "/static/js/main.479f2438.chunk.js.map", + "runtime-main.js": "/static/js/runtime-main.62996a3d.js", + "runtime-main.js.map": "/static/js/runtime-main.62996a3d.js.map", "static/css/2.4659568d.chunk.css": "/static/css/2.4659568d.chunk.css", - "static/js/2.7f8aa84a.chunk.js": "/static/js/2.7f8aa84a.chunk.js", - "static/js/2.7f8aa84a.chunk.js.map": "/static/js/2.7f8aa84a.chunk.js.map", - "static/js/3.289b8867.chunk.js": "/static/js/3.289b8867.chunk.js", - "static/js/3.289b8867.chunk.js.map": "/static/js/3.289b8867.chunk.js.map", + "static/js/2.7c1c8c66.chunk.js": "/static/js/2.7c1c8c66.chunk.js", + "static/js/2.7c1c8c66.chunk.js.map": "/static/js/2.7c1c8c66.chunk.js.map", + "static/js/3.8bef17b9.chunk.js": "/static/js/3.8bef17b9.chunk.js", + "static/js/3.8bef17b9.chunk.js.map": "/static/js/3.8bef17b9.chunk.js.map", "index.html": "/index.html", "static/css/2.4659568d.chunk.css.map": "/static/css/2.4659568d.chunk.css.map", - "static/css/main.e083a17d.chunk.css.map": "/static/css/main.e083a17d.chunk.css.map", - "static/js/2.7f8aa84a.chunk.js.LICENSE.txt": "/static/js/2.7f8aa84a.chunk.js.LICENSE.txt" + "static/css/main.a44df68e.chunk.css.map": "/static/css/main.a44df68e.chunk.css.map", + "static/js/2.7c1c8c66.chunk.js.LICENSE.txt": "/static/js/2.7c1c8c66.chunk.js.LICENSE.txt" }, "entrypoints": [ - "static/js/runtime-main.2c16e99a.js", + "static/js/runtime-main.62996a3d.js", "static/css/2.4659568d.chunk.css", - "static/js/2.7f8aa84a.chunk.js", - "static/css/main.e083a17d.chunk.css", - "static/js/main.5cb541ce.chunk.js" + "static/js/2.7c1c8c66.chunk.js", + "static/css/main.a44df68e.chunk.css", + "static/js/main.479f2438.chunk.js" ] } \ No newline at end of file diff --git a/addon/web/client/build/index.html b/addon/web/client/build/index.html index 8f0028f..08bb9ad 100644 --- a/addon/web/client/build/index.html +++ b/addon/web/client/build/index.html @@ -1 +1 @@ -
"+(e=x,(e?e.replace(/<|>|&|"|'/g,(function(e){return s[e]})):e)+"")}}))}return u.createElement("div",a({},O,{dangerouslySetInnerHTML:{__html:'
"+this._pretty(d,x,i,+l,E)+""}}))},t.prototype._pretty=function(e,t,n,r,a){var o=JSON.stringify(t,"function"===typeof n?n:null,isNaN(r)?2:r);return o?o.replace(/&/g,"&").replace(/\\"([^,])/g,"\\"$1").replace(//g,">").replace(/^( *)("[^"]+": )?("[^"]*"|[\w.+-]*)?([,[{]|\[\s*\],?|\{\s*\},?)?$/gm,this._replace.bind(null,e,a)):o},t.prototype._replace=function(e,t,n,r,a,o,i){var l="",u='",s='",f='",d='",p=r||"";return a&&(p=p+'"'+u+a.replace(/^"|":\s$/g,"")+'": '),o&&(p="true"===o||"false"===o?p+d+o+l:p+('"'===o[0]?f:s)+o+l),p+(i||"")},t.propTypes={data:l.any,json:l.any,replacer:l.func,silent:l.bool,space:l.oneOfType([l.number,l.string]),theme:l.object,themeClassName:l.string,onJSONPrettyError:l.func},t.defaultProps={data:"",json:"",silent:!0,space:2,themeClassName:"__json-pretty__"},t}(u.Component);e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28);function a(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){u=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(u)throw i}}}}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=n(1).isInBrowser,a=new(n(2))(r?document.body:null);a.setStateFromDOM(null),a.listenToDOM(),r&&(window.scrollMonitor=a),e.exports=a},function(e,t){"use strict";t.VISIBILITYCHANGE="visibilityChange",t.ENTERVIEWPORT="enterViewport",t.FULLYENTERVIEWPORT="fullyEnterViewport",t.EXITVIEWPORT="exitViewport",t.PARTIALLYEXITVIEWPORT="partiallyExitViewport",t.LOCATIONCHANGE="locationChange",t.STATECHANGE="stateChange",t.eventTypes=[t.VISIBILITYCHANGE,t.ENTERVIEWPORT,t.FULLYENTERVIEWPORT,t.EXITVIEWPORT,t.PARTIALLYEXITVIEWPORT,t.LOCATIONCHANGE,t.STATECHANGE],t.isOnServer="undefined"==typeof window,t.isInBrowser=!t.isOnServer,t.defaultOffsets={top:0,bottom:0}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){return u?0:e===document.body?window.innerHeight||document.documentElement.clientHeight:e.clientHeight}function o(e){return u?0:e===document.body?Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight):e.scrollHeight}function i(e){return u?0:e===document.body?window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop}var l=n(1),u=l.isOnServer,c=l.isInBrowser,s=l.eventTypes,f=n(3),d=!1;if(c)try{var p=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("test",null,p)}catch(e){}var h=!!d&&{capture:!1,passive:!0},m=function(){function e(t,n){function l(){if(p.viewportTop=i(t),p.viewportBottom=p.viewportTop+p.viewportHeight,p.documentHeight=o(t),p.documentHeight!==c){for(f=p.watchers.length;f--;)p.watchers[f].recalculateLocation();c=p.documentHeight}}function u(){for(d=p.watchers.length;d--;)p.watchers[d].update();for(d=p.watchers.length;d--;)p.watchers[d].triggerCallbacks()}r(this,e);var c,f,d,p=this;this.item=t,this.watchers=[],this.viewportTop=null,this.viewportBottom=null,this.documentHeight=o(t),this.viewportHeight=a(t),this.DOMListener=function(){e.prototype.DOMListener.apply(p,arguments)},this.eventTypes=s,n&&(this.containerWatcher=n.create(t)),this.update=function(){l(),u()},this.recalculateLocations=function(){this.documentHeight=0,this.update()}}return e.prototype.listenToDOM=function(){c&&(window.addEventListener?(this.item===document.body?window.addEventListener("scroll",this.DOMListener,h):this.item.addEventListener("scroll",this.DOMListener,h),window.addEventListener("resize",this.DOMListener)):(this.item===document.body?window.attachEvent("onscroll",this.DOMListener):this.item.attachEvent("onscroll",this.DOMListener),window.attachEvent("onresize",this.DOMListener)),this.destroy=function(){window.addEventListener?(this.item===document.body?(window.removeEventListener("scroll",this.DOMListener,h),this.containerWatcher.destroy()):this.item.removeEventListener("scroll",this.DOMListener,h),window.removeEventListener("resize",this.DOMListener)):(this.item===document.body?(window.detachEvent("onscroll",this.DOMListener),this.containerWatcher.destroy()):this.item.detachEvent("onscroll",this.DOMListener),window.detachEvent("onresize",this.DOMListener))})},e.prototype.destroy=function(){},e.prototype.DOMListener=function(e){this.setStateFromDOM(e)},e.prototype.setStateFromDOM=function(e){var t=i(this.item),n=a(this.item),r=o(this.item);this.setState(t,n,r,e)},e.prototype.setState=function(e,t,n,r){var a=t!==this.viewportHeight||n!==this.contentHeight;if(this.latestEvent=r,this.viewportTop=e,this.viewportHeight=t,this.viewportBottom=e+t,this.contentHeight=n,a)for(var o=this.watchers.length;o--;)this.watchers[o].recalculateLocation();this.updateAndTriggerWatchers(r)},e.prototype.updateAndTriggerWatchers=function(e){for(var t=this.watchers.length;t--;)this.watchers[t].update();for(t=this.watchers.length;t--;)this.watchers[t].triggerCallbacks(e)},e.prototype.createCustomContainer=function(){return new e},e.prototype.createContainer=function(t){"string"==typeof t?t=document.querySelector(t):t&&t.length>0&&(t=t[0]);var n=new e(t,this);return n.setStateFromDOM(),n.listenToDOM(),n},e.prototype.create=function(e,t){"string"==typeof e?e=document.querySelector(e):e&&e.length>0&&(e=e[0]);var n=new f(this,e,t);return this.watchers.push(n),n},e.prototype.beget=function(e,t){return this.create(e,t)},e}();e.exports=m},function(e,t,n){"use strict";function r(e,t,n){function r(e,t){if(0!==e.length)for(b=e.length;b--;)(y=e[b]).callback.call(g,t,g),y.isOne&&e.splice(b,1)}var a,h,m,v,b,y,g=this;this.watchItem=t,this.container=e,this.offsets=n?n===+n?{top:n,bottom:n}:{top:n.top||p.top,bottom:n.bottom||p.bottom}:p,this.callbacks={};for(var w=0,k=d.length;w
"+(e=x,(e?e.replace(/<|>|&|"|'/g,(function(e){return s[e]})):e)+"")}}))}return u.createElement("div",a({},O,{dangerouslySetInnerHTML:{__html:'
"+this._pretty(d,x,i,+l,E)+""}}))},t.prototype._pretty=function(e,t,n,r,a){var o=JSON.stringify(t,"function"===typeof n?n:null,isNaN(r)?2:r);return o?o.replace(/&/g,"&").replace(/\\"([^,])/g,"\\"$1").replace(//g,">").replace(/^( *)("[^"]+": )?("[^"]*"|[\w.+-]*)?([,[{]|\[\s*\],?|\{\s*\},?)?$/gm,this._replace.bind(null,e,a)):o},t.prototype._replace=function(e,t,n,r,a,o,i){var l="
\" + xss(obj) + \"\"\n } })));\n }\n }\n return (React.createElement(\"div\", __assign({}, rest, { dangerouslySetInnerHTML: { __html: \"
\" + this._pretty(theme, obj, replacer, +space, styles) + \"\"\n } })));\n };\n // JSON =》 HTML转换器\n JSONPretty.prototype._pretty = function (theme, obj, replacer, space, styles) {\n // 逐行匹配,列举:“key”: \"value\" | \"key\": value | \"key\": [ | \"key\": { | \"key\": [],| \"Key\": {},\n var regLine = /^( *)(\"[^\"]+\": )?(\"[^\"]*\"|[\\w.+-]*)?([,[{]|\\[\\s*\\],?|\\{\\s*\\},?)?$/mg;\n var text = JSON.stringify(obj, typeof replacer === 'function' ? replacer : null, isNaN(space) ? 2 : space);\n /* istanbul ignore next */\n if (!text) {\n return text;\n }\n return text.replace(/&/g, '&').replace(/\\\\\"([^,])/g, '\\\\"$1')\n .replace(//g, '>')\n .replace(regLine, this._replace.bind(null, theme, styles));\n };\n // 格式化函数\n JSONPretty.prototype._replace = function (theme, styles, match, ind, key, val, tra) {\n var spanEnd = '
{pv.data}
{flow.hexviewResponseBody()}\r\n }\r\n\r\n render() {\r\n if (!this.props.flow) return null\r\n\r\n const flow = this.props.flow\r\n const flowTab = this.state.flowTab\r\n\r\n const request = flow.request\r\n const response: IResponse = (flow.response || {}) as any\r\n\r\n // Query String Parameters\r\n const searchItems: Array<{ key: string; value: string }> = []\r\n if (flow.url && flow.url.search) {\r\n flow.url.searchParams.forEach((value, key) => {\r\n searchItems.push({ key, value })\r\n })\r\n }\r\n\r\n return (\r\n
General
\r\nRequest URL: {request.url}
\r\nRequest Method: {request.method}
\r\nStatus Code: {`${response.statusCode || '(pending)'}`}
\r\nResponse Headers
\r\n{key}: {response.header[key].join(' ')}
\r\n )\r\n })\r\n }\r\nRequest Headers
\r\n{key}: {request.header[key].join(' ')}
\r\n )\r\n })\r\n }\r\nQuery String Parameters
\r\n{key}: {value}
\r\n )\r\n })\r\n }\r\nRequest Body
\r\nNo | \r\nMethod | \r\nHost | \r\nPath | \r\nType | \r\nStatus | \r\nSize | \r\nTime | \r\n
---|
{pv.data}
{flow.hexviewResponseBody()}\n }\n\n render() {\n if (!this.props.flow) return null\n\n const flow = this.props.flow\n const flowTab = this.state.flowTab\n\n const request = flow.request\n const response: IResponse = (flow.response || {}) as any\n\n // Query String Parameters\n const searchItems: Array<{ key: string; value: string }> = []\n if (flow.url && flow.url.search) {\n flow.url.searchParams.forEach((value, key) => {\n searchItems.push({ key, value })\n })\n }\n\n return (\n
General
\nRequest URL: {request.url}
\nRequest Method: {request.method}
\nStatus Code: {`${response.statusCode || '(pending)'}`}
\nResponse Headers
\n{key}: {response.header[key].join(' ')}
\n )\n })\n }\nRequest Headers
\n{key}: {request.header[key].join(' ')}
\n )\n })\n }\nQuery String Parameters
\n{key}: {value}
\n )\n })\n }\nRequest Body
\nNo | \nMethod | \nHost | \nPath | \nType | \nStatus | \nSize | \nTime | \n
---|