1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8109],{28534:(function(ae,N,n){var M=n(98477),j=n(18211),W=n(48930),D=n(37953),U=n(54713),u=n(89492),w=n(15621),S=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],T=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],r=function(s,e){var $=s.fieldProps,c=s.children,l=s.params,b=s.proFieldProps,R=s.mode,k=s.valueEnum,J=s.request,G=s.showSearch,z=s.options,Z=(0,j.A)(s,S),H=(0,D.useContext)(U.A);return(0,w.jsx)(u.A,(0,M.A)((0,M.A)({valueEnum:(0,W._)(k),request:J,params:l,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,M.A)({options:z,mode:R,showSearch:G,getPopupContainer:H.getPopupContainer},$),ref:e,proFieldProps:b},Z),{},{children:c}))},I=D.forwardRef(function(t,s){var e=t.fieldProps,$=t.children,c=t.params,l=t.proFieldProps,b=t.mode,R=t.valueEnum,k=t.request,J=t.options,G=(0,j.A)(t,T),z=(0,M.A)({options:J,mode:b||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},e),Z=(0,D.useContext)(U.A);return(0,w.jsx)(u.A,(0,M.A)((0,M.A)({valueEnum:(0,W._)(R),request:k,params:c,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,M.A)({getPopupContainer:Z.getPopupContainer},z),ref:s,proFieldProps:l},G),{},{children:$}))}),v=D.forwardRef(r),_=I,y=v;y.SearchSelect=_,y.displayName="ProFormComponent",N.A=y}),41638:(function(ae,N,n){var M=n(73159),j=n(98477),W=n(18211),D=n(74979),U=n(1920),u=n(2118),w=n(34346),S=n(37953),T=n(89492),r=n(15621),I=["fieldProps","proFieldProps"],v=["fieldProps","proFieldProps"],_="text",y=function(c){var l=c.fieldProps,b=c.proFieldProps,R=(0,W.A)(c,I);return(0,r.jsx)(T.A,(0,j.A)({valueType:_,fieldProps:l,filedConfig:{valueType:_},proFieldProps:b},R))},t=function(c){var l=(0,D.A)(c.open||!1,{value:c.open,onChange:c.onOpenChange}),b=(0,M.A)(l,2),R=b[0],k=b[1];return(0,r.jsx)(U.A.Item,{shouldUpdate:!0,noStyle:!0,children:function(G){var z,Z=G.getFieldValue(c.name||[]);return(0,r.jsx)(u.A,(0,j.A)((0,j.A)({getPopupContainer:function(L){return L&&L.parentNode?L.parentNode:L},onOpenChange:function(L){return k(L)},content:(0,r.jsxs)("div",{style:{padding:"4px 0"},children:[(z=c.statusRender)===null||z===void 0?void 0:z.call(c,Z),c.strengthText?(0,r.jsx)("div",{style:{marginTop:10},children:(0,r.jsx)("span",{children:c.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},c.popoverProps),{},{open:R,children:c.children}))}})},s=function(c){var l=c.fieldProps,b=c.proFieldProps,R=(0,W.A)(c,v),k=(0,S.useState)(!1),J=(0,M.A)(k,2),G=J[0],z=J[1];return l!=null&&l.statusRender&&R.name?(0,r.jsx)(t,{name:R.name,statusRender:l==null?void 0:l.statusRender,popoverProps:l==null?void 0:l.popoverProps,strengthText:l==null?void 0:l.strengthText,open:G,onOpenChange:z,children:(0,r.jsx)("div",{children:(0,r.jsx)(T.A,(0,j.A)({valueType:"password",fieldProps:(0,j.A)((0,j.A)({},(0,w.A)(l,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(H){var L;l==null||(L=l.onBlur)===null||L===void 0||L.call(l,H),z(!1)},onClick:function(H){var L;l==null||(L=l.onClick)===null||L===void 0||L.call(l,H),z(!0)}}),proFieldProps:b,filedConfig:{valueType:_}},R))})}):(0,r.jsx)(T.A,(0,j.A)({valueType:"password",fieldProps:l,proFieldProps:b,filedConfig:{valueType:_}},R))},e=y;e.Password=s,e.displayName="ProFormComponent",N.A=e}),65912:(function(ae,N,n){var M=n(98477),j=n(18211),W=n(37953),D=n(89492),U=n(15621),u=["fieldProps","proFieldProps"],w=function(T,r){var I=T.fieldProps,v=T.proFieldProps,_=(0,j.A)(T,u);return(0,U.jsx)(D.A,(0,M.A)({ref:r,valueType:"textarea",fieldProps:I,proFieldProps:v},_))};N.A=W.forwardRef(w)}),78639:(function(ae,N,n){var M=n(37810),j=n.n(M),W=n(53028),D=n(74094),U=n(2122),u=n.n(U),w=n(37953),S=n(15621);function T(r){var I=r.text,v=r.successMsg,_=r.style,y=(0,w.useMemo)(function(){return"copy_".concat(Math.random().toString(36).substring(2,10))},[]);return(0,w.useEffect)(function(){var t=document.getElementById(y);if(t){var s=new(u())(t,{});return s.on("success",function(){D.Ay.success(v||"\u590D\u5236\u6210\u529F")}
1),s.on("error",function(){D.Ay.error("\u590D\u5236\u5931\u8D25")}),function(){s.destroy()}}},[I]),I==null||I===""?null:(0,S.jsx)(W.A,{id:y,"data-clipboard-text":String(I),onClick:function(s){s.stopPropagation(),s.preventDefault()},style:j()({color:"#1890ff",cursor:"pointer",fontSize:12,flexShrink:0},_)})}N.A=T}),48618:(function(ae,N,n){n.d(N,{h:function(){return T}});var M=n(45843),j=n(30807),W=n(61793),D=n(89903),U=n(15774),u=n(15621);function w(r){var I=r.toolbar,v=r.loading,_=r.total,y=_===void 0?0:_,t=r.page,s=t===void 0?1:t,e=r.pageSize,$=e===void 0?20:e,c=r.onPageChange,l=r.showPagination,b=l===void 0?!0:l,R=r.children,k=!v&&!y;return(0,u.jsxs)("div",{className:U.A.page,children:[I&&(0,u.jsx)("div",{className:U.A.toolbar,children:I}),(0,u.jsxs)(W.A,{spinning:!!v,children:[R,k&&(0,u.jsx)(M.A,{description:"\u6682\u65E0\u6570\u636E"})]}),b&&y>0&&(0,u.jsx)(j.A,{simple:!0,current:s,pageSize:$,total:y,onChange:c})]})}var S={Processing:"processing",Error:"error",Success:"success",Default:"default",Warning:"warning"};function T(r){var I=r.valueEnum,v=r.value,_=I==null?void 0:I[v];return _?(0,u.jsx)(D.A,{color:S[_.status]||"default",children:_.text}):(0,u.jsx)("span",{children:"-"})}N.A=w}),64671:(function(ae,N,n){n.r(N),n.d(N,{default:function(){return ge}});var M=n(57704),j=n.n(M),W=n(65788),D=n.n(W),U=n(37810),u=n.n(U),w=n(55472),S=n.n(w),T=n(15554),r=n(60343),I=n(36100),v=n(41638),_=n(28534),y=n(52089),t=n(74094),s=n(37953),e=n(15621),$=(function(d){var a=d.onFinish;return(0,e.jsxs)(I.K,{trigger:(0,e.jsx)(y.A,{type:"ghost",size:"small",children:"\u8D2D\u4E70\u670D\u52A1\u5668"}),modalProps:{destroyOnClose:!0},title:"\u8D2D\u4E70\u670D\u52A1\u5668",initialValues:{regionId:"cn-hangzhou"},onFinish:function(m){return(0,r.request)("/api/v1/admin/ops/aliyun/create_instance",{method:"post",data:u()({},m)}).then(function(E){if(E.success)return t.Ay.success(E.msg),a==null||a(),E;throw t.Ay.error(E.msg),new Error(E.msg)})},children:[(0,e.jsx)(v.A,{label:"\u540D\u79F0(\u82F1\u6587)",name:"ecsName",required:!0}),(0,e.jsx)(v.A,{label:"\u8D26\u53F7",name:"account",required:!0}),(0,e.jsx)(_.A,{label:"\u5730\u57DF",name:"regionId",required:!0,options:[{label:"\u676D\u5DDE",value:"cn-hangzhou"},{label:"\u9999\u6E2F",value:"cn-hongkong"}]})]})});n.dn($);var c=(function(d){var a=d.record,x=d.onFinish;return(0,e.jsxs)(I.K,{trigger:a?(0,e.jsx)("span",{className:"text-click",children:"\u7F16\u8F91"}
1):(0,e.jsx)(y.A,{type:"primary",size:"small",children:"\u65B0\u589E\u670D\u52A1\u5668"}),modalProps:{destroyOnClose:!0},title:a?"\u7F16\u8F91":"\u65B0\u589E",initialValues:a,onFinish:function(E){var O="/api/v1/admin/ops/server/edit";return a||(O="/api/v1/admin/ops/server/add"),(0,r.request)(O,{method:"post",data:u()(u()({},a||{}),E)}).then(function(P){if(P.success)return t.Ay.success(P.msg),x==null||x(),P;throw t.Ay.error(P.msg),new Error(P.msg)})},children:[(0,e.jsx)(v.A,{label:"\u540D\u79F0(\u82F1\u6587)",name:"name",required:!0}),(0,e.jsx)(v.A,{label:"\u540D\u79F0(\u4E2D\u6587)",name:"desc"}),(0,e.jsx)(v.A,{label:"\u5B9E\u4F8BID",name:"instanceId",required:!0}),(0,e.jsx)(v.A,{label:"\u5730\u57DF",name:"regionId",required:!0}),(0,e.jsx)(v.A,{label:"\u516C\u7F51IP",name:"publicIp",required:!0}),(0,e.jsx)(v.A,{label:"\u79C1\u7F51IP",name:"vpcIp",required:!0}),(0,e.jsx)(v.A,{label:"\u7AEF\u53E3",name:"port",placeholder:"\u9ED8\u8BA4 7001"}),(0,e.jsx)(v.A,{label:"Endpoint",name:"endpoint",required:!0}),(0,e.jsx)(v.A,{label:"ak",name:"ak"}),(0,e.jsx)(v.A,{label:"sk",name:"sk"}),a?null:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(v.A,{label:"Ak",name:"ak",required:!0}),(0,e.jsx)(v.A,{label:"Sk",name:"sk",required:!0})]})]})});n.dn(c);var l=n(76979),b=n.n(l),R=n(9359);function k(d,a){for(var x=a||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-.,",m="",E=0;E<d;E++){var O=Math.floor(Math.random()*x.length);m+=x[O]}return m}var J=n(19289),G=n(2400),z=n(50724),Z=n(65912),H=n(77919),L=n(66018),Pe=n(12538),ue=n(27209);function de(d){return new Date().getTime()-d>1e3*60*5}var je=function(a){var x=a.ecsName,m=a.cmd,E=a.onFinish,O=(0,s.useState)("\u6267\u884C\u4E2D..."),P=S()(O,2),A=P[0],h=P[1];return(0,s.useEffect)(function(){var F=function C(X){(0,r.request)("/api/v1/admin/ops/aliyun/cmd/result",{method:"POST",data:{ecsName:x,invokeId:X}}).then(function(V){V.success&&h(V.data.output),!V.success||V.data.invokeRecordStatus!=="Finished"?setTimeout(function(){C(X)},1e3):E()}).catch(function(V){h(`\u8C03\u7528\u63A5\u53E3[/api/v1/admin/ops/aliyun/cmd/result]\u5931\u8D25 2`.concat(V.message)),E()})};(0,r.request)("/api/v1/admin/ops/aliyun/cmd/run",{method:"POST",data:{ecsName:x,cmd:m}}).then(function(C){C.success&&C.data.invokeId?F(C.data.invokeId):h(C.msg)}).catch(function(C){h(`\u8C03\u7528\u63A5\u53E3[/api/v1/admin/ops/aliyun/cmd/run]\u5931\u8D25 3`.concat(C.message))})},[x,m]),(0,e.jsx)("pre",{style:{padding:"10px",background:"#000",color:"#fff",fontSize:"12px",minHeight:"100px",maxHeight:"calc(80vh - 500px)",overflow:"auto"},children:A})},Ee=function(a){var x=a.onClick,m=(0,s.useState)([]),E=S()(m,2),O=E[0],P=E[1];(0,s.useEffect)(function(){(0,r.request)("/api/v1/admin/ops/aliyun/cmd/list_group",{method:"POST"}).then(function(h){h.success&&P(h.data)})},[]);var A=(0,s.useCallback)(function(h){(0,r.request)("/api/v1/admin/ops/aliyun/cmd/group_detail",{method:"POST",data:{group:h}}).then(function(F){F.success?x&&x(F.data,h):t.Ay.error(F.msg)}).catch(function(F){t.Ay.error(F.message)})},[x]);return(0,e.jsx)(H.A,{style:O.length?{marginBottom:"10px",marginTop:"5px"}:{},children:O.map(function(h){return(0,e.jsx)(y.A,{size:"small",onClick:function(){A(h)},children:h},h)})})},oe=(function(){var d=(0,s.useState)(!1),a=S()(d,2),x=a[0],m=a[1],E=(0,s.useState)([]),O=S()(E,2),P=O[0],A=O[1],h=(0,s.useState)(),F=S()(h,2),C=F[0],X=F[1],V=G.U.useForm(),q=S()(V,1),ne=q[0],se=(0,s.useState)(""),i=S()(se,2),B=i[0],ee=i[1];return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.A,{size:"small",onClick:function(){m(!0)},children:"\u6267\u884C\u547D\u4EE4"}),(0,e.jsxs)(L.A,{title:"ECS\u6267\u884C\u547D\u4EE4",width:"80%",open:x,footer:null,onCancel:function(){return m(!1)},children:[(0,e.jsxs)(G.U,{form:ne,submitter:{searchConfig:{submitText:"\u6267\u884C"}},layout:"horizontal",onFinish:function(g){if(console.log(g),!g.ecsName){t.Ay.error("ECS \u4E0D\u80FD\u4E3A\u7A7A");return}if(!g.cmd){t.Ay.error("\u547D\u4EE4 \u4E0D\u80FD\u4E3A\u7A7A");return}var o=k(10);A(function(Y){return[{values:g,key:o,loading:!0}].concat(b()(Y))}),X(o)},children:[(0,e.jsx)(_.A,{label:"ECS",name:"ecsName",required:!0,request:function(){return(0,r.request)("/api/v1/admin/ops/server/list",{method:"POST"}).then(function(g){return g.data})},fieldProps:{fieldNames:{value:"name"},showSearch:!0,filterOption:function(g,o){var Y=String(g||"").trim();return Y?String(o.name).toLowerCase().indexOf(Y.toLowerCase())>-1:!0}
3,optionItemRender:function(g){return(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{children:g.name}),(0,e.jsxs)("div",{style:{color:"#aaa"},children:[g.publicIp," | ",g.regionId," | ",g.instanceId," |",(0,e.jsx)("span",{style:{marginLeft:4,color:de(g.hb)?"red":"#aaa"},children:(0,R.LE)(g.hb)})]})]})}}}),(0,e.jsxs)(z.A,{label:"\u547D\u4EE4",children:[(0,e.jsx)("div",{children:(0,e.jsx)(Ee,{onClick:function(g,o){ne.setFieldValue("cmd",g),ee(o)}})}),(0,e.jsx)(Z.A,{label:"",name:"cmd",required:!0,fieldProps:{rows:10}}),(0,e.jsx)("div",{children:(0,e.jsx)(I.K,{title:"\u4FDD\u5B58\u6A21\u7248",onFinish:function(g){return(0,r.request)("/api/v1/admin/ops/aliyun/cmd/update_group",{method:"POST",data:u()(u()({},g),{},{config:ne.getFieldValue("cmd")})}).then(function(o){return o.success?t.Ay.success(o.msg||"\u4FDD\u5B58\u6210\u529F"):t.Ay.error(o.msg),o})},trigger:(0,e.jsx)(y.A,{children:"\u4FDD\u5B58"}),modalProps:{destroyOnClose:!0},initialValues:{group:B},children:(0,e.jsx)(v.A,{label:"\u5206\u7EC4\u540D\u79F0",name:"group"})})})]})]}),(0,e.jsx)(Pe.A,{}),(0,e.jsx)(ue.A,{activeKey:C,onChange:X,type:"editable-card",size:"small",hideAdd:!0,onEdit:function(g){A(function(o){return o.filter(function(Y){return Y.key!==g})})},children:P.map(function(p){return(0,e.jsx)(ue.A.TabPane,{tab:p.loading?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{children:p.values.ecsName}),(0,e.jsx)(J.A,{})]}):p.values.ecsName,closable:!0,children:(0,e.jsx)(je,u()(u()({},p.values),{},{onFinish:function(){A(function(o){var Y=o.findIndex(function(ie){return ie.key===p.key});return o[Y].loading=!1,b()(o)})}}))},p.key)})})]})]})});n.dn(oe);var Ce=n(24189),Ie=n(7408),ce=n(4813),ye=n(9182),me=n.n(ye),K=n(1920),Q=n(3524),Fe={labelCol:{flex:"0 0 140px"}},Se=(0,s.forwardRef)(function(d,a){var x=d.record,m=K.A.useForm(),E=S()(m,1),O=E[0];return(0,s.useImperativeHandle)(a,function(){return O}),(0,e.jsxs)(K.A,u()(u()({form:O},Fe),{},{initialValues:x,children:[(0,e.jsx)(K.A.Item,{label:"\u540D\u79F0(\u82F1\u6587)",name:"name",required:!0,children:(0,e.jsx)(Q.A,{})}),(0,e.jsx)(K.A.Item,{label:"\u540D\u79F0(\u4E2D\u6587)",name:"desc",children:(0,e.jsx)(Q.A,{})}),(0,e.jsx)(K.A.Item,{label:"\u5B9E\u4F8BID",name:"instanceId",required:!0,children:(0,e.jsx)(Q.A,{})}),(0,e.jsx)(K.A.Item,{label:"\u5730\u57DF",name:"regionId",required:!0,children:(0,e.jsx)(Q.A,{})}),(0,e.jsx)(K.A.Item,{label:"\u516C\u7F51IP",name:"publicIp",required:!0,children:(0,e.jsx)(Q.A,{})}),(0,e.jsx)(K.A.Item,{label:"\u79C1\u7F51IP",name:"vpcIp",required:!0,children:(0,e.jsx)(Q.A,{})}),(0,e.jsx)(K.A.Item,{label:"\u7AEF\u53E3",name:"port",children:(0,e.jsx)(Q.A,{placeholder:"\u9ED8\u8BA4 7001"})}),(0,e.jsx)(K.A.Item,{label:"Endpoint",name:"endpoint",required:!0,children:(0,e.jsx)(Q.A,{})}),(0,e.jsx)(K.A.Item,{label:"Ak",name:"ak",required:!0,children:(0,e.jsx)(Q.A,{})}),(0,e.jsx)(K.A.Item,{label:"Sk",name:"sk",required:!0,children:(0,e.jsx)(Q.A,{})})]}))}),pe=Se,he=n(15687),_e=n(50165),ve=n(78639),Oe=n(48618),f=n(15774);function fe(d){return(0,r.request)("/api/v1/admin/ops/server/list",{method:"POST",data:d})}function xe(d){return(0,r.request)("/api/v1/admin/ops/server/delete",{method:"POST",data:{name:d}})}function Ae(d,a){return(0,r.request)("/api/v1/admin/ops/server/add",{method:"POST",data:u()(u()({},d||{}),a)})}var Me=[{label:"\u91C7\u96C6\u673A\u5668",value:"spider"},{label:"\u540E\u7AEF\u673A\u5668",value:"temu"}];function De(d){if(d==null||d==="")return"-";var a=me()(d);return a.isValid()?a.format("YYYY-MM-DD HH:mm:ss"):d}function Te(d){return le.apply(this,arguments)}function le(){return le=D()(j()().mark(function d(a){return j()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",fe(u()(u()({},a.formValues),{},{page:a.page,pageSize:a.pageSize})));case 1:case"end":return m.stop()}},d)})),le.apply(this,arguments)}function be(){var d=K.A.useForm(),a=S()(d,1),x=a[0],m=(0,T.Q_)(Te,{pageSize:50}),E=m.list,O=m.total,P=m.page,A=m.pageSize,h=m.loading,F=m.fetchList,C=(0,T.sp)(),X=S()(C,2),V=X[0],q=X[1],ne=function(B){V({title:"\u514B\u9686",component:pe,componentProps:{record:B},onOk:(function(){var ee=D()(j()().mark(function g(o,Y,ie){var re;return j()().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return Y(),te.next=3,Ae(B,o);case 3:if(re=te.sent,re!=null&&re.success){te.next=8;break}return ie(),t.Ay.error((re==null?void 0:re.msg)||"\u65B0\u589E\u670D\u52A1\u5668\u5931\u8D25"),te.abrupt("return");case 8:Y(),t.Ay.success("\u65B0\u589E\u670D\u52A1\u5668\u6210\u529F"),F(P);case 11:case"end":return te.stop()}},g)}));function p(g,o,Y){return ee.apply(this,arguments)}return p})()})},se=(function(){var i=D()(j()().mark(function B(ee){var p;return j()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,xe(ee);case 2:if(p=o.sent,!p.success){o.next=7;break}return t.Ay.success("\u670D\u52A1\u5668\u5DF2\u5220\u9664"),F(P),o.abrupt("return",!0);case 7:throw t.Ay.error(p.msg||"\u670D\u52A1\u5668\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),new Error(p.msg||"\u670D\u52A1\u5668\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 9:case"end":return o.stop()}},B)}));return function(ee){return i.apply(this,arguments)}})();return(0,e.jsxs)(Oe.A,{toolbar:(0,e.jsxs)(H.A.Compact,{children:[(0,e.jsx)(c,{onFinish:function(){F(P)}}),(0,e.jsx)($,{onFinish:function(){F(P)}}),(0,e.jsx)(oe,{})]}),loading:h,total:O,page:P,pageSize:A,onPageChange:function(B){F(B)},children:[(0,e.jsx)(he.A,{className:f.A.filterCard,children:(0,e.jsxs)(K.A,{form:x,layout:"vertical",onFinish:function(){F(1,x.getFieldsValue())},children:[(0,e.jsx)(K.A.Item,{label:"\u7C7B\u578B",name:"type",children:(0,e.jsx)(_e.A,{size:"small",allowClear:!0,options:Me,placeholder:"\u5168\u90E8"})}),(0,e.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[(0,e.jsx)(y.A,{size:"small",onClick:function(){x.resetFields(),F(1,x.getFieldsValue())},children:"\u91CD\u7F6E"}),(0,e.jsx)(y.A,{size:"small",type:"primary",onClick:function(){x.submit()},children:"\u67E5\u8BE2"})]})]})}),E.map(function(i){return(0,e.jsxs)(he.A,{className:f.A.card,title:(0,e.jsxs)("div",{className:f.A.cardTitle,children:[(0,e.jsx)("span",{className:f.A.titleMain,children:i.name||"-"}),(0,e.jsx)(ve.A,{text:i.name,successMsg:"\u5B9E\u4F8B\u540D\u79F0\u5DF2\u590
3D\u5236"})]}),children:[i.desc?(0,e.jsx)("div",{className:f.A.desc,children:i.desc}):null,(0,e.jsxs)("div",{className:f.A.rows,children:[(0,e.jsxs)("div",{className:f.A.row,children:[(0,e.jsx)("span",{className:f.A.rowLabel,children:"\u5B9E\u4F8BID"}),(0,e.jsxs)("span",{className:f.A.rowValue,children:[i.instanceId||"-",(0,e.jsx)(ve.A,{text:i.instanceId,successMsg:"\u5B9E\u4F8BID\u5DF2\u590D\u5236"})]})]}),(0,e.jsxs)("div",{className:f.A.row,children:[(0,e.jsx)("span",{className:f.A.rowLabel,children:"\u5730\u57DF"}),(0,e.jsx)("span",{className:f.A.rowValue,children:i.regionId||"-"})]}),(0,e.jsxs)("div",{className:f.A.row,children:[(0,e.jsx)("span",{className:f.A.rowLabel,children:"\u516C\u7F51IP"}),(0,e.jsx)("span",{className:f.A.rowValue,children:i.publicIp||"-"})]}),(0,e.jsxs)("div",{className:f.A.row,children:[(0,e.jsx)("span",{className:f.A.rowLabel,children:"\u79C1\u7F51IP"}),(0,e.jsx)("span",{className:f.A.rowValue,children:i.vpcIp||"-"})]}),(0,e.jsxs)("div",{className:f.A.row,children:[(0,e.jsx)("span",{className:f.A.rowLabel,children:"\u7AEF\u53E3"}),(0,e.jsx)("span",{className:f.A.rowValue,children:i.port||"-"})]}),(0,e.jsxs)("div",{className:f.A.row,children:[(0,e.jsx)("span",{className:f.A.rowLabel,children:"endpoint"}),(0,e.jsx)("span",{className:f.A.rowValue,children:i.endpoint||"-"})]}),(0,e.jsxs)("div",{className:f.A.row,children:[(0,e.jsx)("span",{className:f.A.rowLabel,children:"\u6700\u540E\u4E00\u6B21\u5FC3\u8DF3"}),(0,e.jsx)("span",{className:f.A.rowValue,style:de(i.hb)?{color:"#ff4d4f",justifyContent:"flex-end"}:void 0,children:De(i.hb)})]})]}),(0,e.jsxs)("div",{className:f.A.actionBar,children:[(0,e.jsx)(c,{record:i,onFinish:function(){F(P)}}),(0,e.jsx)("span",{className:"text-click",onClick:function(){ne(i)},children:"\u514B\u9686"}),(0,e.jsx)(ce.A,{placement:"bottomRight",title:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u670D\u52A1\u5668\uFF1F",onConfirm:function(){return se(i.name)},okText:"Yes",cancelText:"No",children:(0,e.jsx)("span",{style:{color:"red"},className:"text-click",children:"\u5220\u9664"})})]})]},"".concat(i.instanceId,"_").concat(i.id))}),q]})}var Re=be,ge=(function(){var d=(0,T.al)(),a=(0,s.useRef)(),x=(0,T.sp)(),m=S()(x,2),E=m[0],O=m[1];return d?(0,e.jsx)(Re,{}):(0,e.jsxs)(Ie.Ay,{ghost:!0,children:[(0,e.jsx)(Ce.A,{actionRef:a,rowKey:function(A){return"".concat(A.instanceId,"_").concat(A.id)},request:function(A){return fe(u()(u()({},A),{},{page:A.current,pageSize:A.pageSize}))},toolbar:{title:(0,e.jsxs)(H.A.Compact,{children:[(0,e.jsx)(c,{onFinish:function(){var A;return(A=a.current)===null||A===void 0?void 0:A.reload()}}),(0,e.jsx)($,{onFinish:function(){var A;return(A=a.current)===null||A===void 0?void 0:A.reload()}}),(0,e.jsx)(oe,{})]})},search:{labelWidth:"auto"},scroll:{x:"100%"},pagination:{defaultPageSize:50},columns:[{dataIndex:"type",title:"\u7C7B\u578B",hideInTable:!0,valueEnum:{spider:{text:"\u91C7\u96C6\u673A\u5668"},temu:{text:"\u540E\u7AEF\u673A\u5668"}}},{dataIndex:"name",title:"\u5B9E\u4F8B\u540D\u79F0",copyable:!0,width:"180px",hideInSearch:!0,fixed:"left",ellipsis:!0,render:function(A,h){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{children:h.name}),(0,e.jsx)("div",{children:h.desc})]})}},{dataIndex:"instanceId",title:"\u5B9E\u4F8BID",width:"230px",copyable:!0},{dataIndex:"regionId",title:"\u5730\u57DF",width:"120px"},{dataIndex:"publicIp",title:"\u516C\u7F51IP",width:"160px",hideInSearch:!0},{dataIndex:"vpcIp",title:"\u79C1\u7F51IP",hideInSearch:!0,width:"160px"},{dataIndex:"port",title:"\u7AEF\u53E3",hideInSearch:!0,width:"80px"},{dataIndex:"endpoint",title:"endpoint",hideInSearch:!0,width:"220px"},{dataIndex:"hb",title:"\u6700\u540E\u4E00\u6B21\u5FC3\u8DF3",hideInSearch:!0,width:"200px",render:function(A,h){return(0,e.jsx)("span",{style:new Date().getTime()-h.hb>1e3*60*5?{color:"red"}:{},children:me()(h.hb).format("YYYY-MM-DD HH:mm:ss")})}},{dataIndex:"expiredTime",title:"\u64CD\u4F5C",width:"160px",align:"center",fixed:"right",hideInSearch:!0,render:function(A,h,F,C){var X=function(){E({title:"\u514B\u9686",component:pe,componentProps:{record:h},onOk:(function(){var q=D()(j()().mark(function se(i,B,ee){var p;return j()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return B(),o.next=3,Ae(h,i);case 3:if(p=o.sent,p!=null&&p.success){o.next=8;break}return ee(),t.Ay.error((p==null?void 0:p.msg)||"\u65B0\u589E\u670D\u52A1\u5668\u5931\u8D25"),o.abrupt("return");case 8:B(),t.Ay.success("\u65B0\u589E\u670D\u52A1\u5668\u6210\u529F"),C==null||C.reload();case 11:case"end":return o.stop()}},se)}));function ne(se,i,B){return q.apply(this,arguments)}return ne})()})};return(0,e.jsxs)(H.A,{children:[(0,e.jsx)(c,{record:h,onFinish:function(){C==null||C.reload()}}),(0,e.jsx)(y.A,{type:"link",style:{padding:0},onClick:X,children:"\u514B\u9686"}),(0,e.jsx)(ce.A,{placement:"bottomRight",title:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u670D\u52A1\u5668\uFF1F",onConfirm:function(){return xe(h.name).then(function(q){if(q.success)return t.Ay.success("\u670D\u52A1\u5668\u5DF2\u5220\u9664"),C==null||C.reload(),!0;throw t.Ay.error(q.msg||"\u670D\u52A1\u5668\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),new Error(q.msg||"\u670D\u52A1\u5668\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")})},okText:"Yes",cancelText:"No",children:(0,e.jsx)("span",{style:{color:"red"},className:"text-click",children:"\u5220\u9664"})})]})}}]}),O]})});n.dn(ge)}),15774:(function(ae,N){N.A={page:"page___ryFw5",toolbar:"toolbar___ygQkc",card:"card___oNkfm",cardTitle:"cardTitle___m86nS",titleMain:"titleMain___Chy_Q",link:"link___wB_7B",danger:"danger___eKrPo",tagRow:"tagRow___rr6yz",rows:"rows___c_8nj",row:"row___aHK5u",rowLabel:"rowLabel___f4KcL",rowValue:"rowValue___O7aiP",actionBar:"actionBar___DIo6C",time:"time___aFBer",desc:"desc___RXcRz",filterCard:"filterCard___qLLMc"}})}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.