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