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,Y,v){"use strict";v.r(Y);var re=v("DjyN"),$=v("NUBc"),K=v("5Tp6"),G=v("k16G"),A=v("q1tI"),i=v.n(A);function Q(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 V=Q,Z=v("WHYC"),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:{},U=w.iterator||"@@iterator",F=w.asyncIterator||"@@asyncIterator",T=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),s=new P(n||[]);return o._invoke=function(E,g,u){var c="suspendedStart";return function(y,J){if(c==="executing")throw new Error("Generator is already running");if(c==="completed"){if(y==="throw")throw J;return z()}for(u.method=y,u.arg=J;;){var W=u.delegate;if(W){var H=N(W,u);if(H){if(H===p)continue;return H}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(c==="suspendedStart")throw c="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);c="executing";var C=M(E,g,u);if(C.type==="normal"){if(c=u.done?"completed":"suspendedYield",C.arg===p)continue;return{value:C.arg,done:u.done}}C.type==="throw"&&(c="completed",u.method="throw",u.arg=C.arg)}}}(t,r,s),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 D={};f(D,U,function(){return this});var S=Object.getPrototypeOf,h=S&&S(S(X([])));h&&h!==_&&d.call(h,U)&&(D=h);var b=L.prototype=x.prototype=Object.create(D);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,s,E){var g=M(t[a],t,o);if(g.type!=="throw"){var u=g.arg,c=u.value;return c&&typeof c=="object"&&d.call(c,"__await")?e.resolve(c.__await).then(function(y){r("next",y,s,E)},function(y){r("throw",y,s,E)}):e.resolve(c).then(function(y){u.value=y,s(u)},function(y){return r("throw",y,s,E)})}E(g.arg)}var n;this._invoke=function(a,o){function s(){return new e(function(E,g){r(a,o,E,g)})}return n=n?n.then(s,s):s()}}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 j(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 P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function X(t){if(t){var e=t[U];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:z}}function z(){return{value:void 0,done:!0}}return O.prototype=L,f(b,"constructor",L),f(L,"constructor",O),O.displayName=f(L,T,"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,T,"GeneratorFunction")),t.prototype=Object.create(b),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(s){return s.done?s.value:o.next()})},R(b),f(b,T,"Generator"),f(b,U,function(){return this}),f(b,"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,P.prototype={constructor:P,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(u,c){return s.type="throw",s.arg=e,r.next=u,c&&(r.method="next",r.arg=void 0),!!c}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=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 s=o?o.completion:{};return s.type=e,s.arg=r,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(s)},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),U=w[0],F=w[1],T=Object(A.useState)(20),f=Object(G.a)(T,2),I=f[0],M=f[1],p=Object(A.useState)(),x=Object(G.a)(p,2),O=x[0],L=x[1],D=Object(A.useState)(),S=Object(G.a)(D,2),h=S[0],b=S[1];return Object(A.useEffect)(function(){function R(){return m.apply(this,arguments)}function m(){return m=Object(K.a)(B().mark(function N(){var j;return B().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(q.a)("/api/user_agents.json",{method:"get",params:{page:U,per_page:I}});case 2:j=P.sent,j.status===0&&(L(j.data.user_agents),b(j.data));case 4:case"end":return P.stop()}},N)})),m.apply(this,arguments)}R()},[U]),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(V,{page:U,item:R,type:m})}))),h&&h.agents_count>20?i.a.createElement("div",{style:{justifyContent:"center",display:"flex",marginTop:"20px"}},i.a.createElement($.a,{defaultCurrent:1,defaultPageSize:20,onChange:function(m,N){return F(m)},total:h&&h.agents_count})):""))}var ne=Y.default=ee}}]);
|