forgeplus/public/react/build/static/js/63.5b1e48c6.chunk.js

1 line
24 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(this.webpackJsonp=this.webpackJsonp||[]).push([[63,132],{Bahx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n("kLXV")),a=i(n("2/Rp"));n("k3Gp"),n("L/Qf");var l=i(n("q1tI"));function i(e){return e&&e.__esModule?e:{default:e}}n("KkuB"),t.default=function(e){var t=e.visible,n=e.title,i=e.content,o=e.onOk,u=e.onCancel;return l.default.createElement(r.default,{className:"modalsStyle",visible:t,title:n,onCancel:u,closable:!0,footer:l.default.createElement("div",null,l.default.createElement(a.default,{onClick:u},"取消"),l.default.createElement(a.default,{type:"primary",style:{marginLeft:"20px"},onClick:o},"确定"))},l.default.createElement("div",{style:{fontSize:"16px"}},i))}},Kj3p:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(n("kLXV")),a=f(n("W9HT")),l=f(n("5rEg")),i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,l=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,l=e}finally{try{!r&&o.return&&o.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("k3Gp"),n("04bd"),n("1vPl");var o=n("q1tI"),u=f(o),c=n("spEH"),d=f(n("vDqi"));function f(e){return e&&e.__esModule?e:{default:e}}n("KkuB"),t.default=function(e){var t=e.authorityValBox,n=e.successFunc,f=e.cancelFunc,s=(0,o.useState)(void 0),p=i(s,2),m=p[0],x=p[1],g=(0,o.useState)(!1),b=i(g,2),h=b[0],y=b[1],v=(0,o.useState)(!1),k=i(v,2),E=k[0],C=k[1];return u.default.createElement(r.default,{visible:t,centered:!0,title:"授权",onCancel:function(){x(void 0),f()},onOk:function(){if(m){C(!0);d.default.get("/users/ci/oauth_grant.json",{params:{password:m}}).then((function(e){C(!1),e&&n(e.data.step)})).catch((function(e){C(!1)}))}else y(!0)}},u.default.createElement(a.default,{spinning:E},u.default.createElement("p",{style:{textAlign:"center"}},"请输入您的登录密码确认授权DevOps应用"),u.default.createElement(c.AlignCenter,{style:{justifyContent:"center",marginTop:"20px"}},u.default.createElement("span",null,"密码:"),u.default.createElement(l.default.Password,{value:m,className:!0===h&&"flags",onChange:function(e){return x(e.target.value)},style:{width:"220px"}}))))}},NJEC:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),a=n("VCL8"),l=n("3S7+"),i=n("CtXQ"),o=n("2/Rp"),u=n("YMnH"),c=n("ZvpZ"),d=n("H84U");function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var a=h(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(f,e);var t,n,a,i=x(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=i.call(this,e)).onConfirm=function(e){t.setVisible(!1,e);var n=t.props.onConfirm;n&&n.call(b(t),e)},t.onCancel=function(e){t.setVisible(!1,e);var n=t.props.onCancel;n&&n.call(b(t),e)},t.onVisibleChange=function(e){t.props.disabled||t.setVisible(e)},t.saveTooltip=function(e){t.tooltip=e},t.renderOverlay=function(e,n){var a=t.props,l=a.okButtonProps,i=a.cancelButtonProps,u=a.title,c=a.cancelText,d=a.okText,f=a.okType,p=a.icon;return r.createElement("div",null,r.createElement("div",{className:"".concat(e,"-inner-content")},r.createElement("div",{className:"".concat(e,"-message")},p,r.createElement("div",{className:"".concat(e,"-message-title")},u)),r.createElement("div",{className:"".concat(e,"-buttons")},r.createElement(o.default,s({onClick:t.onCancel,size:"small"},i),c||n.cancelText),r.createElement(o.default,s({onClick:t.onConfirm,type:f,size:"small"},l),d||n.okText))))},t.renderConfirm=function(e){var n=e.getPrefixCls,a=t.props,i=a.prefixCls,o=a.placement,d=y(a,["prefixCls","placement"]),f=n("popover",i),p=r.createElement(u.a,{componentName:"Popconfirm",defaultLocale:c.a.Popconfirm},(function(e){return t.renderOverlay(f,e)}));return r.createElement(l.default,s({},d,{prefixCls:f,placement:o,onVisibleChange:t.onVisibleChange,visible:t.state.visible,overlay:p,ref:t.saveTooltip}))},t.state={visible:e.visible},t}return t=f,a=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:"defaultVisible"in e?{visible:e.defaultVisible}:null}}],(n=[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"setVisible",value:function(e,t){var n=this.props;"visible"in n||this.setState({visible:e});var r=n.onVisibleChange;r&&r(e,t)}},{key:"render",value:function(){return r.createElement(d.a,null,this.renderConfirm)}}])&&p(t.prototype,n),a&&p(t,a),f}(r.Component);v.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:r.createElement(i.default,{type:"exclamation-circle",theme:"filled"}),disabled:!1},Object(a.polyfill)(v),t.default=v},"aah+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n("BvKs")),a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,l=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,l=e}finally{try{!r&&o.return&&o.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("2WkQ");var l=n("q1tI"),i=c(l);n("PA6o");var o=c(n("hqGi")),u=c(n("u7Al"));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,l.useState)("dispose"),n=a(t,2),c=n[0],d=n[1];return i.default.createElement("div",null,i.default.createElement(r.default,{mode:"horizontal",className:"menuStyle",onClick:function(e){d(e.key)},selectedKeys:[c]},i.default.createElement(r.default.Item,{key:"dispose"},"服务器配置"),i.default.createElement(r.default.Item,{key:"list"},"项目列表")),"dispose"===c?i.default.createElement(o.default,e):i.default.createElement(u.default,e))}},b7wz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n("2/Rp")),a=u(n("9yH6")),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,l=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,l=e}finally{try{!r&&o.return&&o.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("L/Qf"),n("K4yd");var i=n("q1tI"),o=u(i);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.sureModal,n=(0,i.useState)(1),u=l(n,2),c=u[0],d=u[1];return o.default.createElement("div",{className:"mt30",style:{textAlign:"center"}},o.default.createElement(a.default.Group,{value:c,onChange:function(e){d(e.target.value)}},o.default.createElement(a.default,{value:1},"自有服务器"),o.default.createElement(a.default,{value:2},"Trustie服务器")),o.default.createElement("p",{className:"mt30"},o.default.createElement(r.default,{type:"primary",onClick:function(){return t(c)}},"下一步")))}},hqGi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n("kLXV")),a=g(n("5rEg")),l=g(n("2/Rp")),i=g(n("Vl3Y")),o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,l=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,l=e}finally{try{!r&&o.return&&o.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("k3Gp"),n("1vPl"),n("L/Qf"),n("tULf");var c=n("q1tI"),d=g(c),f=n("spEH"),s=g(n("vDqi")),p=g(n("Bahx")),m=g(n("Kj3p")),x=g(n("sL1r"));function g(e){return e&&e.__esModule?e:{default:e}}t.default=i.default.create()((0,c.forwardRef)((function(e){var t=(0,c.useState)(void 0),n=u(t,2),g=n[0],b=n[1],h=(0,c.useState)(0),y=u(h,2),v=y[0],k=y[1],E=(0,c.useState)(!1),C=u(E,2),w=C[0],_=C[1],j=(0,c.useState)(!1),B=u(j,2),S=B[0],O=B[1],P=(0,c.useState)(!1),N=u(P,2),A=N[0],T=N[1],I=(0,c.useState)(!1),L=u(I,2),D=L[0],V=L[1],M=(0,c.useState)(!1),F=u(M,2),q=F[0],z=F[1],G=(0,c.useState)(!1),R=u(G,2),H=R[0],W=R[1],J=e.user,Q=e.form,K=Q.getFieldDecorator,U=Q.validateFields,X=Q.setFieldsValue,Y=(0,c.useCallback)((function(e,t,n,r,a){return d.default.createElement(d.default.Fragment,null,d.default.createElement("span",{className:a?"required":""},e),d.default.createElement(i.default.Item,null,K(t,{rules:n,validateFirst:!0})(r)))}),[]);function Z(){s.default.get("/users/ci/cloud_account.json").then((function(e){e&&e.data&&(b(e.data.cloud_account),k(e.data.step),V(e.data.ci_certification))})).catch((function(e){console.log(e)}))}function $(){T(!1),X({ip_num:void 0,secret:void 0,account:void 0})}return(0,c.useEffect)((function(){Z()}),[]),d.default.createElement("div",{className:"disposeInfo"},d.default.createElement(x.default,{visible:S,SureBtn:function(e){if(1===e)O(!1),T(!0);else{s.default.post("/users/ci/cloud_account/trustie_bind.json",{account:J&&J.login}).then((function(e){e&&e.data&&(O(!1),W(!0),Z())})).catch((function(e){O(!1)}))}},CancelBtn:function(){O(!1)}}),d.default.createElement(m.default,{authorityValBox:H,successFunc:function(){W(!1),Z()},cancelFunc:function(){W(!1)}}),d.default.createElement(r.default,{className:"modalsStyle",visible:A,title:"绑定CI服务器地址",onCancel:$,closable:!0,centered:!0,footer:d.default.createElement("div",null,d.default.createElement(l.default,{onClick:$},"取消"),d.default.createElement(l.default,{loading:q,type:"primary",style:{marginLeft:"20px"},onClick:function(){U((function(t,n){if(!t){z(!0);s.default.post("/users/ci/cloud_account/bind.json",o({},n)).then((function(t){z(!1),t&&t.data&&(T(!1),b(t.data.cloud_account),k(t.data.step),e.showNotification("服务器绑定成功!"))})).catch((function(e){z(!1)}))}}))}},"确定"))},d.default.createElement(i.default,{style:{marginTop:"20px"}},Y("服务器IP地址","ip_num",[{required:!0,message:"请输入服务器IP地址"}],d.default.createElement(a.default,{placeholder:"请输入服务器IP地址",style:{width:"368px"},size:"large"}),!0),Y("服务器用户名:","account",[{required:!0,message:"请输入服务器用户名"}],d.default.createElement(a.default,{placeholder:"请输入服务器用户名",size:"large"}),!0),Y("服务器密码:","secret",[{required:!0,message:"请输入服务器密码"}],d.default.createElement(a.default.Password,{placeholder:"请输入服务器密码",size:"large"}),!0))),d.default.createElement(p.default,{visible:w,title:"解除绑定",content:"解除CI服务器绑定后您所有的项目构建数据将被清空。确定解除绑定",onOk:function(){s.default.delete("/users/ci/cloud_account/unbind.json").then((function(t){t&&t.data&&(e.showNotification("成功解除绑定!"),_(!1),Z())})).catch((function(e){T(!1)}))},onCancel:function(){_(!1)}}),d.default.createElement("div",{className:"disposeItem"},d.default.createElement(f.AlignCenter,null,d.default.createElement("span",null,"CI服务器地址"),g&&g.ip&&v>=1?d.default.createElement("span",{className:"ml10"},g.ip):"",0===v&&d.default.createElement("span",{className:"ml10 authTag red"},"未绑定"),1===v&&!D&&d.default.createElement("span",{className:"ml10 authTag red"},"未认证"),D&&d.default.createElement("span",{className:"ml10 authTag green"},"已认证")),d.default.createElement(f.AlignCenter,null,0===v&&d.default.createElement(l.default,{type:"primary",onClick:function(){return O(!0)}},"马上绑定"),1===v&&!D&&d.default.createElement(l.default,{type:"primary",style:{color:"#fff"},onClick:function(){return W(!0)},target:"_blank"},"马上认证"),v>=1&&d.default.createElement(l.default,{type:"danger",className:"ml20",onClick:function(){return _(!0)}},"解除绑定"))))})))},k994:function(e,t,n){"use strict";n.r(t);n("SchZ"),n("Aosp"),n("L/Qf")},sL1r:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n("kLXV"));n("k3Gp");var a=i(n("q1tI")),l=i(n("b7wz"));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.visible,n=e.SureBtn,i=e.CancelBtn;return a.default.createElement(r.default,{title:"请选择服务器类型",centered:!0,visible:t,footer:!1,onCancel:i},a.default.createElement(l.default,{sureModal:function(e){n(e)}}))}},spEH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GroupProjectBackgroup=t.Content=t.Cancel=t.GreenUnder=t.NumUl=t.Redback=t.Blueback=t.Greenback=t.Greenline=t.Redline=t.Blueline=t.WhiteBack=t.Gap=t.Short=t.ShortWidth=t.Long=t.LongWidth=t.Box=t.AlignAJBottom=t.AlignTop=t.AlignCenter=t.FlexAJ=t.AlignCenterBetween=t.Banner=void 0;var r,a=P(["{\n padding:20px 25px;\n color:#333;\n font-size:18px;\n border-bottom:1px solid #eee;\n background-color:#fff;\n border-radius:5px 5px 0px 0px;\n}"],["{\n padding:20px 25px;\n color:#333;\n font-size:18px;\n border-bottom:1px solid #eee;\n background-color:#fff;\n border-radius:5px 5px 0px 0px;\n}"]),l=P(["{\n display:flex;\n align-items: center;\n padding: 14px 14px 14px 20px;\n justify-content: space-between;\n border-bottom:1px solid #eee;\n}"],["{\n display:flex;\n align-items: center;\n padding: 14px 14px 14px 20px;\n justify-content: space-between;\n border-bottom:1px solid #eee;\n}"]),i=P(["{\n display:flex;\n align-items: center;\n justify-content: space-between;\n}"],["{\n display:flex;\n align-items: center;\n justify-content: space-between;\n}"]),o=P(["{\n display:flex;\n align-items: center;\n}"],["{\n display:flex;\n align-items: center;\n}"]),u=P(["{\n display:flex;\n align-items: flex-start;\n}"],["{\n display:flex;\n align-items: flex-start;\n}"]),c=P(["{\n display:flex;\n justify-content: space-between;\n align-items: flex-end;\n}"],["{\n display:flex;\n justify-content: space-between;\n align-items: flex-end;\n}"]),d=P(["{\n display:flex;\n align-items:flex-start;\n}"],["{\n display:flex;\n align-items:flex-start;\n}"]),f=P(["{\n flex:1;\n width:0;\n border-radius:5px;\n margin-bottom:30px;\n}"],["{\n flex:1;\n width:0;\n border-radius:5px;\n margin-bottom:30px;\n}"]),s=P(["{\n width:78%;\n border-radius:5px;\n margin-bottom:30px;\n}"],["{\n width:78%;\n border-radius:5px;\n margin-bottom:30px;\n}"]),p=P(["{\n width:300px;\n border-radius:5px;\n margin-bottom:30px;\n}"],["{\n width:300px;\n border-radius:5px;\n margin-bottom:30px;\n}"]),m=P(["{\n flex:1;\n border-radius:5px;\n margin-bottom:30px;\n}"],["{\n flex:1;\n border-radius:5px;\n margin-bottom:30px;\n}"]),x=P(["{\n padding-left:20px;\n box-sizing:border-box;\n}"],["{\n padding-left:20px;\n box-sizing:border-box;\n}"]),g=P(["{\n background-color:#fff;\n border-radius:5px;\n}"],["{\n background-color:#fff;\n border-radius:5px;\n}"]),b=P(["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid rgba(80,145,255,1);\n color:rgba(80,145,255,1);\n padding:0px 12px;\n display:inline-block;\n}"],["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid rgba(80,145,255,1);\n color:rgba(80,145,255,1);\n padding:0px 12px;\n display:inline-block;\n}"]),h=P(["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid #F73030;\n color:"," !important;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n background:",";\n}"],["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid #F73030;\n color:"," !important;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n background:",";\n}"]),y=P(["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid #28BD6C;\n color:"," !important;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n background:",";\n}"],["{\n height:30px;\n line-height:28px;\n border-radius:2px;\n border:1px solid #28BD6C;\n color:"," !important;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n background:",";\n}"]),v=P(["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:#28BD6C;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"],["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:#28BD6C;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"]),k=P(["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:rgba(80,145,255,1);\n color:#fff!important;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"],["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:rgba(80,145,255,1);\n color:#fff!important;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"]),E=P(["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:#F73030;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"],["{\n height:30px;\n line-height:30px;\n border-radius:2px;\n background-color:#F73030;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:80px;\n text-align:center;\n}"]),C=P(["{\n padding-left: 20px;\n & > li{\n list-style-type: decimal;\n color:#888;\n height:24px;\n line-height:24px;\n }\n}"],["{\n padding-left: 20px;\n & > li{\n list-style-type: decimal;\n color:#888;\n height:24px;\n line-height:24px;\n }\n}"]),w=P(["{\n color:#28BD6C!important;\n position:relative;\n &:after{\n position:absolute;\n bottom:-2px;\n left:0px;\n width:100%;\n height:1px;\n content:'';\n background:#28BD6C;\n }\n}"],["{\n color:#28BD6C!important;\n position:relative;\n &:after{\n position:absolute;\n bottom:-2px;\n left:0px;\n width:100%;\n height:1px;\n content:'';\n background:#28BD6C;\n }\n}"]),_=P(["{\n height:32px;\n line-height:32px;\n border-radius:2px;\n background-color:#BBBBBB;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:64px;\n text-align:center;\n letter-spacing: 4px;\n}"],["{\n height:32px;\n line-height:32px;\n border-radius:2px;\n background-color:#BBBBBB;\n color:#fff;\n padding:0px 12px;\n display:inline-block;\n min-width:64px;\n text-align:center;\n letter-spacing: 4px;\n}"]),j=P(["{\n width:1200px;\n margin:20px auto;\n text-align:center;\n display:flex;\n align-Items:center;\n background-color:#fff;\n justify-content: center;\n}"],["{\n width:1200px;\n margin:20px auto;\n text-align:center;\n display:flex;\n align-Items:center;\n background-color:#fff;\n justify-content: center;\n}"]),B=P(["{\n background:#fafafa;\n padding:20px 30px;\n width:100%;\n}"],["{\n background:#fafafa;\n padding:20px 30px;\n width:100%;\n}"]),S=n("vOnD"),O=(r=S)&&r.__esModule?r:{default:r};function P(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}t.Banner=O.default.div(a),t.AlignCenterBetween=O.default.div(l),t.FlexAJ=O.default.div(i),t.AlignCenter=O.default.div(o),t.AlignTop=O.default.div(u),t.AlignAJBottom=O.default.div(c),t.Box=O.default.div(d),t.LongWidth=O.default.div(f),t.Long=O.default.div(s),t.ShortWidth=O.default.div(p),t.Short=O.default.div(m),t.Gap=O.default.div(x),t.WhiteBack=O.default.div(g),t.Blueline=O.default.a(b),t.Redline=O.default.a(h,(function(e){return e.bold?"#fff":"#F73030"}),(function(e){return e.bold?"#F73030":"#fff"})),t.Greenline=O.default.a(y,(function(e){return e.bold?"#fff":"#28BD6C"}),(function(e){return e.bold?"#28BD6C":"#fff"})),t.Greenback=O.default.a(v),t.Blueback=O.default.a(k),t.Redback=O.default.a(E),t.NumUl=O.default.ul(C),t.GreenUnder=O.default.a(w),t.Cancel=O.default.a(_),t.Content=O.default.div(j),t.GroupProjectBackgroup=O.default.div(B)},u7Al:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n("W9HT")),a=p(n("NUBc")),l=p(n("NJEC")),i=p(n("2/Rp")),o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,l=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,l=e}finally{try{!r&&o.return&&o.return()}finally{if(a)throw l}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("04bd"),n("YQTV"),n("k994"),n("L/Qf");var u=n("q1tI"),c=p(u),d=n("eO8H"),f=p(n("2CTR")),s=p(n("vDqi"));function p(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,u.useState)(1),n=o(t,2),p=n[0],m=n[1],x=(0,u.useState)(0),g=o(x,2),b=g[0],h=g[1],y=(0,u.useState)(!0),v=o(y,2),k=v[0],E=v[1],C=(0,u.useState)(void 0),w=o(C,2),_=w[0],j=w[1],B=e.current_user;function S(){var e="/users/"+B.login+"/projects.json";s.default.get(e,{params:{limit:10,page:p,category:"manage"}}).then((function(e){e&&e.data&&(j(e.data.projects),h(e.data.count),E(!1))})).catch((function(e){console.log(e)}))}return(0,u.useEffect)((function(){E(!0),B&&B.login&&S()}),[B,p]),c.default.createElement("div",{style:{minHeight:"400px"}},c.default.createElement(r.default,{spinning:k},_&&_.length>0?c.default.createElement("ul",{className:"CIList"},_.map((function(t,n){return c.default.createElement("li",{key:n},c.default.createElement("span",null,c.default.createElement(d.Link,{to:"/"+(t.author&&t.author.login)+"/"+t.identifier+(t.open_devops?"/devops":"")},t.name),t.open_devops?c.default.createElement("span",{className:"authTag green ml20"},"已激活"):c.default.createElement("span",{className:"authTag red ml20"},"未激活")),t.open_devops?c.default.createElement(l.default,{title:"确定取消激活?",onConfirm:function(){return function(e,t){E(!0);var n="/"+(e&&e.login)+"/"+t+"/deactivate.json";s.default.delete(n).then((function(e){e?S():E(!1)})).catch((function(e){E(!1)}))}(t.author,t.identifier)},okText:"确定",cancelText:"取消"},c.default.createElement(i.default,null,"取消激活")):c.default.createElement(i.default,{type:"primary",onClick:function(){e.history.push("/"+(t.author&&t.author.login)+"/"+t.identifier+"/devops")}},"马上激活"))}))):c.default.createElement(f.default,{_html:"暂无数据"}),b>10&&c.default.createElement("div",{className:"mt20 mb30",style:{textAlign:"center"}},c.default.createElement(a.default,{simple:!0,onChange:function(e){m(e)},pageSize:10,current:p,total:b}))))}}}]);