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.6 KiB
2 lines
9.6 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[137],{CRnD:function(ne,Y,g){"use strict";g.r(Y);var ae=g("DjyN"),W=g("NUBc"),$=g("9og8"),F=g("tJVT"),U=g("q1tI"),i=g.n(U);function K(l){var u=l.item,b=l.type,d=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"}},d===1?b+1:b+1+(d-1)*20),i.a.createElement("span",{style:{flex:"1"}},u.login||"--"),i.a.createElement("span",{style:{flex:"2"}},u.name||"--"),i.a.createElement("span",{style:{flex:"2"}},u.register_info||"--"),i.a.createElement("span",{style:{flex:"1"}},u.competition_info||"--"),i.a.createElement("span",{style:{flex:"2"}},u.ip||"--"),i.a.createElement("span",{style:{flex:"2"}},u.username||"--"))}var Q=K,Z=g("Ty5D"),q=g("ErOA");function G(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */G=function(){return u};var l,u={},b=Object.prototype,d=b.hasOwnProperty,_=Object.defineProperty||function(r,e,t){r[e]=t.value},j=typeof Symbol=="function"?Symbol:{},O=j.iterator||"@@iterator",C=j.asyncIterator||"@@asyncIterator",T=j.toStringTag||"@@toStringTag";function m(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{m({},"")}catch(r){m=function(t,n,o){return t[n]=o}}function I(r,e,t,n){var o=e&&e.prototype instanceof N?e:N,a=Object.create(o.prototype),s=new H(n||[]);return _(a,"_invoke",{value:te(r,t,s)}),a}function R(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(n){return{type:"throw",arg:n}}}u.wrap=I;var D="suspendedStart",B="suspendedYield",M="executing",w="completed",c={};function N(){}function E(){}function f(){}var A={};m(A,O,function(){return this});var v=Object.getPrototypeOf,S=v&&v(v(J([])));S&&S!==b&&d.call(S,O)&&(A=S);var y=f.prototype=N.prototype=Object.create(A);function z(r){["next","throw","return"].forEach(function(e){m(r,e,function(t){return this._invoke(e,t)})})}function k(r,e){function t(o,a,s,p){var h=R(r[o],r,a);if(h.type!=="throw"){var L=h.arg,x=L.value;return x&&typeof x=="object"&&d.call(x,"__await")?e.resolve(x.__await).then(function(P){t("next",P,s,p)},function(P){t("throw",P,s,p)}):e.resolve(x).then(function(P){L.value=P,s(L)},function(P){return t("throw",P,s,p)})}p(h.arg)}var n;_(this,"_invoke",{value:function(a,s){function p(){return new e(function(h,L){t(a,s,h,L)})}return n=n?n.then(p,p):p()}})}function te(r,e,t){var n=D;return function(o,a){if(n===M)throw new Error("Generator is already running");if(n===w){if(o==="throw")throw a;return{value:l,done:!0}}for(t.method=o,t.arg=a;;){var s=t.delegate;if(s){var p=V(s,t);if(p){if(p===c)continue;return p}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(n===D)throw n=w,t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);n=M;var h=R(r,e,t);if(h.type==="normal"){if(n=t.done?w:B,h.arg===c)continue;return{value:h.arg,done:t.done}}h.type==="throw"&&(n=w,t.method="throw",t.arg=h.arg)}}}function V(r,e){var t=e.method,n=r.iterator[t];if(n===l)return e.delegate=null,t==="throw"&&r.iterator.return&&(e.method="return",e.arg=l,V(r,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),c;var o=R(n,r.iterator,e.arg);if(o.type==="throw")return e.method="throw",e.arg=o.arg,e.delegate=null,c;var a=o.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,e.method!=="return"&&(e.method="next",e.arg=l),e.delegate=null,c):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function re(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function X(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function H(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(re,this),this.reset(!0)}function J(r){if(r||r===""){var e=r[O];if(e)return e.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var t=-1,n=function o(){for(;++t<r.length;)if(d.call(r,t))return o.value=r[t],o.done=!1,o;return o.value=l,o.done=!0,o};return n.next=n}}throw new TypeError(typeof r+" is not iterable")}return E.prototype=f,_(y,"constructor",{value:f,configurable:!0}),_(f,"constructor",{value:E,configurable:!0}),E.displayName=m(f,T,"GeneratorFunction"),u.isGeneratorFunction=function(r){var e=typeof r=="function"&&r.constructor;return!!e&&(e===E||(e.displayName||e.name)==="GeneratorFunction")},u.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,f):(r.__proto__=f,m(r,T,"GeneratorFunction")),r.prototype=Object.create(y),r},u.awrap=function(r){return{__await:r}},z(k.prototype),m(k.prototype,C,function(){return this}),u.AsyncIterator=k,u.async=function(r,e,t,n,o){o===void 0&&(o=Promise);var a=new k(I(r,e,t,n),o);return u.isGeneratorFunction(e)?a:a.next().then(function(s){return s.done?s.value:a.next()})},z(y),m(y,T,"Generator"),m(y,O,function(){return this}),m(y,"toString",function(){return"[object Generator]"}),u.keys=function(r){var e=Object(r),t=[];for(var n in e)t.push(n);return t.reverse(),function o(){for(;t.length;){var a=t.pop();if(a in e)return o.value=a,o.done=!1,o}return o.done=!0,o}},u.values=J,H.prototype={constructor:H,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(X),!e)for(var t in this)t.charAt(0)==="t"&&d.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},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 t=this;function n(L,x){return s.type="throw",s.arg=e,t.next=L,x&&(t.method="next",t.arg=l),!!x}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var p=d.call(a,"catchLoc"),h=d.call(a,"finallyLoc");if(p&&h){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(p){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&d.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var s=a?a.completion:{};return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,c):this.complete(s)},complete:function(e,t){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"&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),X(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;X(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:J(e),resultName:t,nextLoc:n},this.method==="next"&&(this.arg=l),c}},u}function ee(l){var u=Object(Z.m)(),b=Object(U.useState)(1),d=Object(F.a)(b,2),_=d[0],j=d[1],O=Object(U.useState)(20),C=Object(F.a)(O,2),T=C[0],m=C[1],I=Object(U.useState)(),R=Object(F.a)(I,2),D=R[0],B=R[1],M=Object(U.useState)(),w=Object(F.a)(M,2),c=w[0],N=w[1];return Object(U.useEffect)(function(){function E(){return f.apply(this,arguments)}function f(){return f=Object($.a)(G().mark(function A(){var v;return G().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,Object(q.a)("/api/user_agents.json",{method:"get",params:{page:_,per_page:T}});case 2:v=y.sent,v.status===0&&(B(v.data.user_agents),N(v.data));case 4:case"end":return y.stop()}},A)})),f.apply(this,arguments)}E()},[_]),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",c&&c.agents_count||"0"),i.a.createElement("span",{style:{marginLeft:"20px"}},"\u7ADE\u8D5B\u6210\u529F\u62A5\u540D\uFF1A",c&&c.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"}},D&&D.map(function(E,f){return i.a.createElement(Q,{page:_,item:E,type:f})}))),c&&c.agents_count>20?i.a.createElement("div",{style:{justifyContent:"center",display:"flex",marginTop:"20px"}},i.a.createElement(W.a,{defaultCurrent:1,defaultPageSize:20,onChange:function(f,A){return j(f)},total:c&&c.agents_count})):""))}var oe=Y.default=ee}}]);
|