forgeplus/public/react/build/static/js/59.3ead551c.chunk.js

1 line
19 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[59],{"7jn6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=l(n("q1tI")),r=l(n("La79")),i=l(n("8mQL"));function l(e){return e&&e.__esModule?e:{default:e}}var u={init:"icon-initialize",build:"icon-structure",deploy:"icon-arrange",customize:"icon-newStage",confirm:"icon-sure"};t.default=function(e){var t=e.step,n=e.changeStep,l=e.menuList,o=e.renameFunc,c=e.checkDatas,f=e.addFunc;function s(e,t){f&&f(e,t)}return a.default.createElement("ul",{className:"menus"},l&&l.length>0&&l.map((function(e,f){return a.default.createElement(a.default.Fragment,{key:e.id},a.default.createElement("li",{onClick:function(){return function(e,t,a,r){n(e,t,a,r)}(e.show_index,e.stage_type,e.id,e.stage_name)},className:e.show_index===t?"active":""},a.default.createElement("i",{className:"iconfont "+u[""+e.stage_type]}),a.default.createElement(r.default,{renameFunc:o,id:e.id,name:e.stage_name,edit:"init"!==e.stage_type&&"confirm"!==e.stage_type})),f!==l.length-1&&l.length<7?a.default.createElement(i.default,{checkDatas:c,k:f+2,getName:s}):"")})))}},"8mQL":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=u(n("5rEg")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("1vPl");var i=n("q1tI"),l=u(i);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.getName,n=e.checkDatas,u=e.k,o=(0,i.useState)(!1),c=r(o,2),f=c[0],s=c[1],d=(0,i.useState)(void 0),m=r(d,2),p=m[0],v=m[1],h=(0,i.useState)(void 0),y=r(h,2),g=y[0],E=y[1],_=(0,i.useState)(void 0),b=r(_,2),S=b[0],w=b[1],N=(0,i.useState)(!1),x=r(N,2),j=x[0],k=x[1];return(0,i.useEffect)((function(){j&&S&&S.focus()})),(0,i.useEffect)((function(){u&&E(u)}),[u]),l.default.createElement("li",{className:"menuAdd"},!f&&l.default.createElement("i",{className:"iconfont icon-tianjia",onClick:function(){var e=n();(e||""===e)&&(s(!0),k(!0))}}),l.default.createElement(a.default,{ref:function(e){return w(e)},size:"small",maxLength:8,style:{width:"75px",display:f?"block":"none"},placeholder:"新阶段名称",value:p,onChange:function(e){return v(e.target.value)},onBlur:function(){p&&t(p,g),v(void 0),s(!1),k(!1)}}))}},CbYd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=n("q1tI"),l=(a=i)&&a.__esModule?a:{default:a};t.default=function(e){var t=e.chooseFunc,n=e.temp,a=e.templateId,u=e.category,o=(0,i.useState)(void 0),c=r(o,2),f=c[0],s=c[1],d=(0,i.useState)(void 0),m=r(d,2),p=m[0],v=m[1],h=(0,i.useState)(void 0),y=r(h,2),g=y[0],E=y[1],_=(0,i.useState)(void 0),b=r(_,2),S=b[0],w=b[1];return(0,i.useEffect)((function(){a&&s(a)}),[a]),(0,i.useEffect)((function(){u&&v(u)}),[u]),(0,i.useEffect)((function(){if(n&&n.length>0)if("初始化"!==n[0].category?w(n):w(void 0),u&&"初始化"!==n[0].category&&"初始化"!==u){var e=n.filter((function(e){return e.category===u})),t=e&&e.length>0&&e[0].templates;E(t),v(u)}else E(n[0].templates),v(n[0].category);else E(void 0),v(void 0),w(void 0)}),[n,u]),l.default.createElement(l.default.Fragment,null,S&&S.length>0&&l.default.createElement("div",{className:"choosenList"},l.default.createElement("span",null,"模板类别:"),l.default.createElement("ul",null,S.map((function(e,n){return l.default.createElement("li",{className:p===e.category?"active":"",onClick:function(){return function(e){v(e);var n=S&&S.filter((function(t){return t.category===e})),a=n&&n[0].templates;E(a);var r=a&&a.length>0&&a[0].id,i=a&&a.length>0&&a[0].content;s(r),t&&t(i,r,e)}(e.category)}},e.category)})))),g&&g.length>0&&l.default.createElement("div",{className:"choosenList"},l.default.createElement("span",null,"模板选择:"),l.default.createElement("ul",null,g.map((function(e,n){return l.default.createElement("li",{className:f===e.id?"active":"",onClick:function(){return function(e){var n=g.filter((function(t){return t.id===e})),a=n&&n.length>0&&n[0].content;t&&t(a,e,p),s(e)}(e.id)}},e.template_name)})))))}},INjQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(n("q1tI")),r=i(n("gL5p"));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.value,n=e.onChange,i=e.theme,l=e.height,u=e.visible,o=e.width,c=void 0===o?"100%":o,f=e.Numbers,s={lineNumbers:void 0===f?"on":f,wordWrap:!0,selectOnLineNumbers:!0,lineHeight:24,renderLineHighlight:"line",revealHorizontalRightPadding:5,placeholder:"请输入内容",readOnly:u,cursorStyle:u?"underline-thin":"line",folding:!0,foldingStrategy:"indentation",automaticLayout:!0,minimap:{enabled:!1}};return a.default.createElement(r.default,{height:l,width:c,language:"yaml",theme:i,placeholder:"请输入内容",value:t,options:s,onChange:function(e){return n(e)},disabled:!0})}},"JW/y":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(n("NJEC"));n("k994");var r=o(n("q1tI")),i=n("spEH"),l=o(n("INjQ")),u=o(n("CbYd"));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.item,n=e.templates,o=e.saveItems,c=e.k,f=e.slideItems,s=e.deleteStep;return r.default.createElement("div",{className:"stepsItem"},r.default.createElement(i.FlexAJ,{className:"stepsHead"},r.default.createElement("span",null,t.step_name),r.default.createElement("span",{className:"color-grey-9"},r.default.createElement(a.default,{title:"确定要删除这个步骤吗?",okText:"是",cancelText:"否",onConfirm:function(){return s(t.id,c)}},r.default.createElement("a",null,r.default.createElement("i",{className:"iconfont icon-lajitong1 font-14"}))),r.default.createElement("a",{onClick:function(){return f(c,t.hide)}},r.default.createElement("i",{className:t.hide&&!1!==t.hide?"iconfont icon-triangle font-14":"iconfont icon-sanjiaoxing-down font-14"})))),r.default.createElement("div",{className:t.hide&&!1!==t.hide?"stepsBody":"stepsBody active"},r.default.createElement(u.default,{chooseFunc:function(e,t,n){o(e,t,n,c)},category:t.category,templateId:t.template_id,temp:n}),r.default.createElement(l.default,{value:t.content,onChange:function(e){o(e,t.template_id,t.category,c)},theme:"vs-dark",height:"270px"})))}},JaYJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(n("2/Rp")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("L/Qf");var i=n("q1tI"),l=o(i),u=o(n("INjQ"));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.datas,n=e.name,o=e.saveFunc,c=e.sureSubmit,f=e.loading,s=(0,i.useState)(void 0),d=r(s,2),m=d[0],p=d[1];return(0,i.useEffect)((function(){t&&t.content&&p(t.content)}),[t]),l.default.createElement("div",null,l.default.createElement("div",{style:{padding:"0px 15px 15px 15px"}},"工作流名称:",n),l.default.createElement("div",{className:"editorBody",style:{marginTop:"0px"}},l.default.createElement(u.default,{value:m,theme:"vs-grey",height:"600px",visible:!0})),l.default.createElement("div",{className:"mt20"},l.default.createElement(a.default,{type:"primary",onClick:function(){return o(void 0,void 0,void 0,void 0,"last")}},"上一步"),m&&l.default.createElement(a.default,{type:"primary",loading:f,className:"ml20",onClick:function(){c()}},"确定提交")))}},JtPb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=v(n("W9HT")),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("04bd");var l=n("q1tI"),u=v(l),o=n("spEH"),c=v(n("gyhb")),f=v(n("7jn6")),s=v(n("Ky7I")),d=v(n("JaYJ")),m=v(n("MIiE")),p=v(n("vDqi"));function v(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,l.useState)(!0),n=i(t,2),v=n[0],h=n[1],y=(0,l.useState)(1),g=i(y,2),E=g[0],_=g[1],b=(0,l.useState)(void 0),S=i(b,2),w=S[0],N=S[1],x=(0,l.useState)(void 0),j=i(x,2),k=j[0],I=j[1],C=(0,l.useState)(void 0),A=i(C,2),M=A[0],F=A[1],O=(0,l.useState)(void 0),P=i(O,2),L=P[0],J=P[1],T=(0,l.useState)("init"),q=i(T,2),B=q[0],H=q[1],D=(0,l.useState)(void 0),Q=i(D,2),z=Q[0],W=Q[1],Y=(0,l.useState)(void 0),R=i(Y,2),K=R[0],U=R[1],G=(0,l.useState)(!1),V=i(G,2),X=V[0],Z=V[1],$=(0,l.useState)(!1),ee=i($,2),te=ee[0],ne=ee[1],ae=e.match.params.disposeId,re=e.match.params.projectsId,ie=e.match.params.owner;function le(e){var t="/ci/pipelines/"+ae+"/stages.json";p.default.get(t).then((function(t){if(t&&t.data&&(J(t.data.stages),e||0===e)){var n=t.data.stages[e];_(n.show_index),F(n.id),N(""+n.pipeline_name)}}))}function ue(e){var t="";B&&"confirm"===B?(t="/ci/pipelines/"+ae+"/content.json",p.default.get(t,{params:{owner:ie,repo:re}}).then((function(e){e&&e.data&&W(e.data)})).catch((function(e){}))):(t="/ci/pipelines/"+ae+"/"+e+"/steps.json",p.default.get(t).then((function(e){if(e&&e.data){var t=e.data.steps;W(t);var n=!t||t&&0===t.length;Z(n)}})).catch((function(e){}))),h(!1)}function oe(e){W([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e))),Z(!0)}function ce(){if(!(z&&z.length>0))return"init"===B?(e.showNotification("请先选择模板!"),!1):"confirm"===B||"";for(var t=0;t<z.length;t++)if(z[t]&&(!z[t].content||!z[t].template_id))return e.showNotification("请先选择模板!"),!1;return!0}function fe(t,n,a,r,i){if(h(!0),X&&"confirm"!==B){var l=ce();l&&z&&0!==z.length?function(t,n,a,r,i){var l="/ci/pipelines/"+ae+"/"+M+"/stage_step.json";p.default.post(l,{steps:z}).then((function(l){l&&l.data?(Z(!1),t?de(t):(_(n),H(a),F(r),I(w+"-"+i))):e.showNotification("阶段更新失败,请稍微重试!")})).catch((function(e){}))}(i,t,n,a,r):(h(!1),""===l&&se(i,t,n,a,r))}else se(i,t,n,a,r)}function se(e,t,n,a,r){e?de(e):(_(t),H(n),F(a),I(w+"-"+r))}function de(e){var t=E;"next"===e?t+=1:t-=1;var n=L&&L.filter((function(e){return e.show_index===t}));_(t),H(n[0].stage_type),F(n[0].id),I(w+"-"+n[0].stage_name)}return(0,l.useEffect)((function(){B&&"confirm"!==B&&p.default.get("/ci/templates/templates_by_stage.json",{params:{stage_type:B,id:ae}}).then((function(e){e&&e.data&&U(e.data)})).catch((function(e){}))}),[B]),(0,l.useEffect)((function(){ae&&B&&"confirm"!==B&&le(0)}),[ae]),(0,l.useEffect)((function(){M&&ue(M)}),[M]),u.default.createElement("div",{className:"disposePanel"},u.default.createElement(c.default,null),u.default.createElement(o.WhiteBack,{style:{padding:"24px 30px"}},u.default.createElement(a.default,{spinning:v},u.default.createElement("div",{style:{minHeight:"450px"}},u.default.createElement(f.default,{step:E,checkDatas:ce,changeStep:function(e,t,n,a){e!==E&&fe(e,t,n,a)},menuList:L,renameFunc:function(e,t){var n="/ci/pipelines/"+ae+"/"+t+"/update_stage.json";p.default.put(n,{stage_name:e}).then((function(e){e&&e.data&&le()})).catch((function(e){}))},addFunc:function(t,n){var a="/ci/pipelines/"+ae+"/create_stage.json";p.default.post(a,{show_index:n,stage_name:t}).then((function(t){t&&t.data?(le(n-1),H("customize")):e.showNotification("阶段新增失败!")}))}}),"init"===B?u.default.createElement(s.default,{stage_type:B,templates:K,datas:z,saveDatas:oe,saveFunc:fe}):"confirm"===B?u.default.createElement(d.default,{sureSubmit:function(){ne(!0);var t={branch:z.branch,content:z.content,filepath:".trustie-pipeline.yml",message:"",sha:z.sha||void 0,owner:ie,repo:re},n="/"+ie+"/"+re+"/update_trustie_pipeline.json";p.default.put(n,r({},t)).then((function(t){t&&e.history.push("/"+ie+"/"+re+"/devops"),ne(!1)})).catch((function(e){console.log(e),ne(!1)}))},name:w,datas:z,saveFunc:fe,loading:te}):u.default.createElement(m.default,r({},e,{stepName:k,deleteStep:function(t,n){if(t){var a="/ci/pipelines/"+ae+"/"+M+"/"+t+"/delete_step.json";p.default.delete(a).then((function(t){t&&t.data&&(ue(M),e.showNotification("阶段步骤删除成功!"))})).catch((function(e){}))}else{var r=z.filter((function(e){return e.show_index!==n+1}));W(r)}},stage_type:B,templates:K,datas:z,deleteFunc:function(){var t=L&&L.filter((function(e){return e.show_index===E+1})),n=t&&t.length>0&&t[0].stage_type,a="/ci/pipelines/"+ae+"/"+M+"/delete_stage.json";p.default.delete(a,{params:{show_index:E}}).then((function(t){t&&t.data?(le(E-1),H(n)):e.showNotification("阶段删除失败!")})).catch((function(e){}))},saveDatas:oe,saveFunc:fe,deleteFlag:L&&3===L.length}))))))}},Ky7I:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=c(n("2/Rp")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("L/Qf");var i=n("q1tI"),l=c(i),u=c(n("CbYd")),o=c(n("INjQ"));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.datas,n=e.templates,c=e.saveFunc,f=e.saveDatas,s=(0,i.useState)(void 0),d=r(s,2),m=d[0],p=d[1],v=(0,i.useState)(void 0),h=r(v,2),y=h[0],g=h[1],E=(0,i.useState)(void 0),_=r(E,2),b=_[0],S=_[1];function w(e,n){var a=t;t&&t.length>0?(a[0].content=n||y,a[0].template_id=e||m):a=[{step_name:"初始化",show_index:1,content:n||y,template_id:e||m}],f(a)}return(0,i.useEffect)((function(){n&&n.length>0&&S(n)}),[n]),(0,i.useEffect)((function(){t&&t.length>0&&(p(t[0].template_id),g(t[0].content))}),[t]),l.default.createElement("div",null,l.default.createElement(u.default,{chooseFunc:function(e,t,n){p(t),g(e),w(t,e)},templateId:m,temp:b}),l.default.createElement("div",{className:"mt15"},l.default.createElement(o.default,{value:y,onChange:g,theme:"vs-dark",height:"400px"})),l.default.createElement("div",{className:"mt20"},l.default.createElement(a.default,{type:"primary",onClick:function(){w(),c(void 0,void 0,void 0,void 0,"next")}},"下一步")))}},La79:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=u(n("5rEg")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("1vPl");var i=n("q1tI"),l=u(i);function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.name,n=e.edit,u=e.id,o=e.renameFunc,c=(0,i.useState)(void 0),f=r(c,2),s=f[0],d=f[1],m=(0,i.useState)(!1),p=r(m,2),v=p[0],h=p[1],y=(0,i.useState)(void 0),g=r(y,2),E=g[0],_=g[1],b=(0,i.useState)(!1),S=r(b,2),w=(S[0],S[1]);return(0,i.useEffect)((function(){n&&E&&E.focus()})),(0,i.useEffect)((function(){t&&d(t)}),[t]),l.default.createElement("div",{className:"aboutEdit"},l.default.createElement("span",{className:"operateName"},!v&&s,l.default.createElement(a.default,{ref:function(e){return _(e)},value:s,size:"small",maxLength:8,onClick:function(e){return e.stopPropagation()},onBlur:function(e){o(e.target.value,u),w(!1),h(!1)},style:{width:"75px",display:v?"block":"none"},onChange:function(e){return d(e.target.value)}}),!v&&n&&l.default.createElement("i",{className:"iconfont icon-editUnder font-16 color-grey-9",onClick:function(e){e.stopPropagation(),h(!0),w(!0)}})))}},MIiE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=f(n("NJEC")),r=f(n("2/Rp")),i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,i=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&u.return&&u.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("k994"),n("L/Qf");var l=n("q1tI"),u=f(l),o=n("spEH"),c=f(n("JW/y"));function f(e){return e&&e.__esModule?e:{default:e}}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(e){var t=e.templates,n=e.datas,f=e.saveDatas,d=e.saveFunc,m=e.stepName,p=e.deleteStep,v=e.deleteFunc,h=e.deleteFlag,y=(0,l.useState)(void 0),g=i(y,2),E=g[0],_=g[1],b=(0,l.useState)(void 0),S=i(b,2),w=S[0],N=S[1];function x(e,t,n,a){var r=E;r[a].content=e,r[a].template_id=t,r[a].category=n,f([].concat(s(r)))}function j(e,t){var n=E;n[e].hide=!t,_([].concat(s(n))),f(n)}function k(e,t){p(e,t)}function I(e){d(void 0,void 0,void 0,void 0,e)}return(0,l.useEffect)((function(){t&&t.length>0&&N(t)}),[t]),(0,l.useEffect)((function(){if(n)if(n.length>0&&E!==n)_(n);else if(0===n.length){_([])}}),[n]),u.default.createElement("div",null,E&&E.length>0&&E.map((function(e,t){return u.default.createElement(c.default,{item:e,templates:w,k:t,saveItems:x,slideItems:j,deleteStep:k})})),u.default.createElement("a",{className:"addStageBtn",onClick:function(){var e=E,t=e?e.length:0,n=w&&w.length>0&&w[0],a=n&&n.category,r=n&&n.templates&&n.templates.length>0&&n.templates[0],i={category:a,step_name:m+""+(t+1),show_index:t+1,content:r.content,template_id:r.id,hide:!1};e.push(i),f(e)}},"+ 添加步骤"),u.default.createElement("div",{className:"mt20"},u.default.createElement(r.default,{type:"primary",onClick:function(){return I("last")}},"上一步"),u.default.createElement(r.default,{className:"ml20",type:"primary",onClick:function(){return I("next")}},"下一步"),!h&&u.default.createElement(a.default,{title:"确定要删除当前阶段吗",okText:"是",cancelText:"否",onConfirm:v},u.default.createElement(o.Cancel,{className:"ml20"},"删除"))))}},gyhb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n("q1tI"),i=(a=r)&&a.__esModule?a:{default:a},l=n("spEH");t.default=function(e){var t=e.manager,n=e.parameter;return i.default.createElement(l.AlignCenterBetween,null,i.default.createElement("span",{className:"font-20"},"工作流配置"),i.default.createElement(l.FlexAJ,null,n&&i.default.createElement(l.Blueline,{onClick:n},"参数管理"),t&&i.default.createElement(l.Blueline,{style:{marginLeft:"20px"},onClick:t},"模板管理"),i.default.createElement("a",{href:"https://forum.trustie.net/forums/3111/detail",target:"_blank",className:"color-grey-6 ml20"},i.default.createElement("i",{className:"iconfont icon-tishi1 font-14 mr3"}),"模板使用说明")))}}}]);