forked from Gitlink/build
1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
|
(this.webpackJsonp=this.webpackJsonp||[]).push([[20],{"0Cz8":function(e,t,n){var r=n("Xi7e"),a=n("ebwN"),o=n("e4Nc");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!a||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(i)}return n.set(e,t),this.size=n.size,this}},"6sVZ":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},"77Zs":function(e,t,n){var r=n("Xi7e");e.exports=function(){this.__data__=new r,this.size=0}},B8du:function(e,t){e.exports=function(){return!1}},BuC1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n("kLXV")),a=u(n("5rEg")),o=u(n("2fM7")),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,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("2qtc"),n("5NDa"),n("OaEy");var l=n("cDcd"),c=u(l);function u(e){return e&&e.__esModule?e:{default:e}}var s=o.default.Option,f=["push","pull_request","tag","cron","custom","promote","rollback"];t.default=function(e){var t=e.visible,n=e.onCancel,u=e.onOk,p=e.value,d=e.branchList,m=(0,l.useState)(void 0),v=i(m,2),y=v[0],h=v[1],b=(0,l.useState)(void 0),g=i(b,2),E=g[0],_=g[1],j=(0,l.useState)([f[0]]),w=i(j,2),x=w[0],N=w[1];return(0,l.useEffect)((function(){d&&d.length>0&&_(d[0].name)}),[d]),(0,l.useEffect)((function(){p?(h(p.pipeline_name),_(p.branch),N(p.event)):h(void 0)}),[p]),c.default.createElement(r.default,{visible:t,title:"流水线名称",width:"500px",onCancel:n,onOk:function(){u(y,p&&p.id,E,x)},centered:!0},c.default.createElement("div",{className:"choosenList"},c.default.createElement("span",null,"流水线名称:"),c.default.createElement(a.default,{value:y,onChange:function(e){return h(e.target.value)},placeholder:"请输入名称",style:{width:"340px",margin:"6px 0px"}})),c.default.createElement("div",{className:"choosenList mt20"},c.default.createElement("span",null,"触发条件:"),c.default.createElement(o.default,{value:E,style:{width:"150px"},dropdownClassName:"chooseCon",onChange:function(e){return _(e)}},d&&d.length>0&&d.map((function(e,t){return c.default.createElement(s,{value:e.name,key:t},e.name)}))),c.default.createElement(o.default,{mode:"multiple",allowClear:!0,value:x,dropdownClassName:"chooseCon",style:{width:"180px",marginLeft:"10px"},onChange:function(e){N(e)}},f.map((function(e,t){return c.default.createElement(s,{value:e,key:t},e)})))))}},DSRE:function(e,t,n){(function(e){var r=n("Kz5y"),a=n("B8du"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=i&&i.exports===o?r.Buffer:void 0,c=(l?l.isBuffer:void 0)||a;e.exports=c}).call(this,n("YuTi")(e))},JHRd:function(e,t,n){var r=n("Kz5y").Uint8Array;e.exports=r},Jwem:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a,o=y(n("W9HT")),i=y(n("NUBc")),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,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},c=(r=["{\n padding:24px 30px;\n}"],a=["{\n padding:24px 30px;\n}"],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(a)}})));n("T2oS"),n("DjyN");var u=n("cDcd"),s=y(u),f=n("spEH"),p=y(n("NPS8")),d=y(n("gyhb")),m=y(n("vDqi")),v=y(n("BuC1"));function y(e){return e&&e.__esModule?e:{default:e}}var h=y(n("vOnD")).default.div(c);t.default=function(e){var t=(0,u.useState)(!0),n=l(t,2),r=n[0],a=n[1],c=(0,u.useState)(void 0),y=l(c,2),b=y[0],g=y[1],E=(0,u.useState)(void 0),_=l(E,2),j=_[0],w=_[1],x=(0,u.useState)(void 0),N=l(x,2),C=N
|