You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
9.5 KiB
2 lines
9.5 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[135],{CRnD:function(te,J,v){"use strict";v.r(J);var re=v("DjyN"),V=v("NUBc"),W=v("9og8"),G=v("tJVT"),A=v("q1tI"),i=v.n(A);function K(l){var _=l.item,d=l.type,w=l.page;return i.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#ffffff",padding:"0px 15px"}},i.a.createElement("span",{style:{flex:"1"}},w===1?d+1:d+1+(w-1)*20),i.a.createElement("span",{style:{flex:"1"}},_.login||"--"),i.a.createElement("span",{style:{flex:"2"}},_.name||"--"),i.a.createElement("span",{style:{flex:"2"}},_.register_info||"--"),i.a.createElement("span",{style:{flex:"1"}},_.competition_info||"--"),i.a.createElement("span",{style:{flex:"2"}},_.ip||"--"),i.a.createElement("span",{style:{flex:"2"}},_.username||"--"))}var Q=K,Z=v("Ty5D"),q=v("ErOA");function B(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return l};var l={},_=Object.prototype,d=_.hasOwnProperty,w=typeof Symbol=="function"?Symbol:{},P=w.iterator||"@@iterator",F=w.asyncIterator||"@@asyncIterator",D=w.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(r,n,a){return r[n]=a}}function I(t,e,r,n){var a=e&&e.prototype instanceof x?e:x,o=Object.create(a.prototype),u=new b(n||[]);return o._invoke=function(E,g,s){var c="suspendedStart";return function(y,z){if(c==="executing")throw new Error("Generator is already running");if(c==="completed"){if(y==="throw")throw z;return Y()}for(s.method=y,s.arg=z;;){var $=s.delegate;if($){var H=N($,s);if(H){if(H===p)continue;return H}}if(s.method==="next")s.sent=s._sent=s.arg;else if(s.method==="throw"){if(c==="suspendedStart")throw c="completed",s.arg;s.dispatchException(s.arg)}else s.method==="return"&&s.abrupt("return",s.arg);c="executing";var C=M(E,g,s);if(C.type==="normal"){if(c=s.done?"completed":"suspendedYield",C.arg===p)continue;return{value:C.arg,done:s.done}}C.type==="throw"&&(c="completed",s.method="throw",s.arg=C.arg)}}}(t,r,u),o}function M(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}l.wrap=I;var p={};function x(){}function O(){}function L(){}var j={};f(j,P,function(){return this});var S=Object.getPrototypeOf,h=S&&S(S(X([])));h&&h!==_&&d.call(h,P)&&(j=h);var U=L.prototype=x.prototype=Object.create(j);function R(t){["next","throw","return"].forEach(function(e){f(t,e,function(r){return this._invoke(e,r)})})}function m(t,e){function r(a,o,u,E){var g=M(t[a],t,o);if(g.type!=="throw"){var s=g.arg,c=s.value;return c&&typeof c=="object"&&d.call(c,"__await")?e.resolve(c.__await).then(function(y){r("next",y,u,E)},function(y){r("throw",y,u,E)}):e.resolve(c).then(function(y){s.value=y,u(s)},function(y){return r("throw",y,u,E)})}E(g.arg)}var n;this._invoke=function(a,o){function u(){return new e(function(E,g){r(a,o,E,g)})}return n=n?n.then(u,u):u()}}function N(t,e){var r=t.iterator[e.method];if(r===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,N(t,e),e.method==="throw"))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=M(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,p;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function X(t){if(t){var e=t[P];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function a(){for(;++r<t.length;)if(d.call(t,r))return a.value=t[r],a.done=!1,a;return a.value=void 0,a.done=!0,a};return n.next=n}}return{next:Y}}function Y(){return{value:void 0,done:!0}}return O.prototype=L,f(U,"constructor",L),f(L,"constructor",O),O.displayName=f(L,D,"GeneratorFunction"),l.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===O||(e.displayName||e.name)==="GeneratorFunction")},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,L):(t.__proto__=L,f(t,D,"GeneratorFunction")),t.prototype=Object.create(U),t},l.awrap=function(t){return{__await:t}},R(m.prototype),f(m.prototype,F,function(){return this}),l.AsyncIterator=m,l.async=function(t,e,r,n,a){a===void 0&&(a=Promise);var o=new m(I(t,e,r,n),a);return l.isGeneratorFunction(e)?o:o.next().then(function(u){return u.done?u.value:o.next()})},R(U),f(U,D,"Generator"),f(U,P,function(){return this}),f(U,"toString",function(){return"[object Generator]"}),l.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var a=e.pop();if(a in t)return n.value=a,n.done=!1,n}return n.done=!0,n}},l.values=X,b.prototype={constructor:b,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var r in this)r.charAt(0)==="t"&&d.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(s,c){return u.type="throw",u.arg=e,r.next=s,c&&(r.method="next",r.arg=void 0),!!c}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],u=o.completion;if(o.tryLoc==="root")return n("end");if(o.tryLoc<=this.prev){var E=d.call(o,"catchLoc"),g=d.call(o,"finallyLoc");if(E&&g){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(E){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&d.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&(e==="break"||e==="continue")&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=e,u.arg=r,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(u)},complete:function(e,r){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&r&&(this.next=r),p},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),p}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var a=n.completion;if(a.type==="throw"){var o=a.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:X(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),p}},l}function ee(l){var _=Object(Z.m)(),d=Object(A.useState)(1),w=Object(G.a)(d,2),P=w[0],F=w[1],D=Object(A.useState)(20),f=Object(G.a)(D,2),I=f[0],M=f[1],p=Object(A.useState)(),x=Object(G.a)(p,2),O=x[0],L=x[1],j=Object(A.useState)(),S=Object(G.a)(j,2),h=S[0],U=S[1];return Object(A.useEffect)(function(){function R(){return m.apply(this,arguments)}function m(){return m=Object(W.a)(B().mark(function N(){var T;return B().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,Object(q.a)("/api/user_agents.json",{method:"get",params:{page:P,per_page:I}});case 2:T=b.sent,T.status===0&&(L(T.data.user_agents),U(T.data));case 4:case"end":return b.stop()}},N)})),m.apply(this,arguments)}R()},[P]),i.a.createElement("div",{className:"edu-container minH500"},i.a.createElement("div",{className:"educontent mb20 persmstyle",style:{width:"1200px",marginTop:"26px"}},i.a.createElement("div",{style:{display:"flex",background:"#ffffff",height:"60px",alignItems:"center",padding:"0px 15px"}},i.a.createElement("span",null,"\u5F15\u6D41\u603B\u4EBA\u6570\uFF1A",h&&h.agents_count||"0"),i.a.createElement("span",{style:{marginLeft:"20px"}},"\u7ADE\u8D5B\u6210\u529F\u62A5\u540D\uFF1A",h&&h.action_count||"0")),i.a.createElement("div",{style:{marginTop:"1px",background:"#ffffff"}},i.a.createElement("div",{style:{display:"flex",alignItems:"center",flexDirection:"initial",height:"37px",background:"#ffffff",padding:"0px 15px"}},i.a.createElement("span",{style:{flex:"1"}},"\u5E8F\u53F7"),i.a.createElement("span",{style:{flex:"1"}},"\u4EE3\u7406\u4EBA\u767B\u5F55\u540D"),i.a.createElement("span",{style:{flex:"2"}},"\u4EE3\u7406\u4EBA\u59D3\u540D"),i.a.createElement("span",{style:{flex:"2"}},"\u6CE8\u518C\u60C5\u51B5"),i.a.createElement("span",{style:{flex:"1"}},"\u7ADE\u8D5B\u62A5\u540D"),i.a.createElement("span",{style:{flex:"2"}},"IP"),i.a.createElement("span",{style:{flex:"2"}},"\u5F15\u6D41\u4EBA\u59D3\u540D")),i.a.createElement("div",{style:{border:"1px solid #fafafa",minHeight:"400px"}},O&&O.map(function(R,m){return i.a.createElement(Q,{page:P,item:R,type:m})}))),h&&h.agents_count>20?i.a.createElement("div",{style:{justifyContent:"center",display:"flex",marginTop:"20px"}},i.a.createElement(V.a,{defaultCurrent:1,defaultPageSize:20,onChange:function(m,N){return F(m)},total:h&&h.agents_count})):""))}var ne=J.default=ee}}]);
|