build/static/js/120.1e99bea2.chunk.js

1 line
15 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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([[120],{"3jkU":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIkAAACFCAYAAABv5tuyAAAABHNCSVQICAgIfAhkiAAADFZJREFUeF7tnV1yFDcQx1m+XgMnyHKCGDhA1ieIfYJsqoDiLeYEsU+AeaOAKjYnAE6AOQB4fYIsJwh+5TP//9aMs16PNN0azYx21FOVwrH12fpNq9WjlkaX7DmTwN27d3/H/0x//PixNRqNbuDnOX6ef//+/dF8Pv+Uq6hGuXZ8td9beC5fvvwKYIyr5AFQPgGUW7mCkj0kd+7cmQKMx4XmcL4zAOXJhw8f9nJ8qbKGhBrkypUrx5KBByTvAMlEknZoabKFBHyMMcUc12mQcsANkqGhL+gPjNQZktFQFT2A5ACaZF+UeGCJstQk1CKYZv5RjOXpt2/fxma4KiS26UmhRV6hDzvSfuSsRSij7DQJtMgEWuStFBCky1qLZAkJtAgBEa9Sctci2UFiWkShP1eSZjXdmBYxSLwSMC0SBkhW041pEYPEtEg4A7U5s7BJ8BHvH9cX3ioJ2YrmvFQGDwm/8gKQl7Wvy/8JsveLrMsqB0hMiyjekKqkg4bEtEhDOorsQ4fEtEgETgYLSYAWuYQvvTuwX7x7WbEHZQuGLfe/ih6Ut8DWxwUTI98pviTPRRkTSjRISOA4u1FsKBonJOtlUwDKDPtS/kitXb72DBISaJF9vMF/pToQ0FjbUChHqbZv8KubQovQFhFPCV0P1qb5YQanSVLXIgQSmuT2Jtkmg4JkE7QIGHnz/v178a64rrXc4P0k0CJ7mGYepyBYRxvozd2CFlmudjblGZQmSR2STbNFSogHBQk7RZsE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y0NiWg0SJBkBTapPaoijY7aWWHS4BhJLBFaFuKH7UmKUuOfdaauMWWMFQCPPZiTwtIsCYpW8n1OJZbPJjPe2ZJaK8sXxwJ0AaBW4LxvUGuiWBNstp8wDIGLBP8bqzsFi9l9B08pyzOnzwnmHlsCPp7BPtjBjaOmggyCiRNGjDUvDw9Cn1z3kwas994QflyjqEtShgWAGMRq47/AOnOvpHZECVAAAAAAElFTkSuQmCC"},H5Q0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=document.createElement("div");function a(){o.unmountComponentAtNode(t)&&t.parentNode&&t.parentNode.removeChild(t)}document.body.appendChild(t),setTimeout((function(){o.render(n.default.createElement(s,{afterClose:a}),t)}))};var r=a("cDcd"),n=u(r),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a("faye")),l=u(a("CWZq"));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.afterClose,a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],r=!0,n=!1,o=void 0;try{for(var l,u=e[Symbol.iterator]();!(r=(l=u.next()).done)&&(a.push(l.value),!t||a.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(n)throw o}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,r.useState)(!0),2),o=a[0],u=a[1];return n.default.createElement(l.default,{isRender:o,Modifyloginvalue:function(){u(!1),t()}})}},JGtk:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKey=void 0;var r=s(a("TeRw")),n=s(a("tsqr"));t.default=function(e){window.location.href.indexOf("localhost")<0&&(o.default.defaults.withCredentials=!0);var t=o.default.create({baseURL:e,timeout:18e5});return t.interceptors.request.use((function(e){if(l.default.load(i)&&(e.headers.Authorization=l.default.load(i)),"3007"===window.location.port){var t=l.default.load(i);-1===e.url.indexOf("?")?e.url=e.url+"?token="+t:e.url=e.url+"&token="+t}return e}),(function(e){console.log(e)})),t.interceptors.response.use((function(e){var t=e||{};return 400===t.status?(n.default.error(t.data.message||"操作失败"),Promise.reject("error")):401===t.status?(n.default.error(t.data.message||"登录信息已过期"),Promise.reject("error")):403===t.status?(n.default.error(t.data.message||"无权限!"),Promise.reject("error")):40001===t.status?(r.default.open({message:"提示",description:"账户或密码错误!"}),Promise.reject("error")):200===e.status||200===t.status?e.data:void r.default.open({message:"提示",description:t.message})}),(function(e){var t=e.response||{};return 400===t.status?(n.default.error(t.data.message||"操作失败"),Promise.reject("error")):401===t.status?(n.default.error(t.data.message||"登录信息已过期"),(0,u.default)(),Promise.reject("error")):403===t.status?(n.default.error(t.data.message||"无权限!"),Promise.reject("error")):(r.default.open({message:"提示",description:e.message}),Promise.reject(e))})),t},a("/xke"),a("miYZ");var o=s(a("vDqi")),l=s(a("Po8q")),u=s(a("H5Q0"));function s(e){return e&&e.__esModule?e:{default:e}}var i=t.TokenKey="autologin_trustie"},V5aj:function(e,t,a){},jRI9:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.main_site_url=t.httpUrl=void 0;var r,n=(r=a("JGtk"))&&r.__esModule?r:{default:r},o=localStorage.chromesetting&&JSON.parse(localStorage.chromesetting),l=o&&o.common.softbot,u=(0,n.default)(l);t.httpUrl=l,t.main_site_url=o&&o.common.main_site_url,t.default=u},"m/JD":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMyBot=function(e){return(0,n.default)({url:"/getMyBot",method:"get",params:e})},t.getTransferToBot=function(e){return(0,n.default)({url:"/getTransferToBot",method:"get",params:e})},t.registerBot=function(e){return(0,n.default)({url:"/registerBot",method:"post",data:e})},t.getAllBotCategory=function(e){return(0,n.default)({url:"/getAllBotCategory",method:"get",params:e})},t.getContentsLikeNameAndFunc=function(e){return(0,n.default)({url:"/getContentsLikeNameAndFunc",method:"get",params:e})},t.getBotDetail=function(e){return(0,n.default)({url:"/getBotDetail",method:"get",params:e})},t.installMarketBot=function(e){return(0,n.default)({url:"/installMarketBot",method:"post",data:e})},t.receiveTransferBot=function(e){return(0,n.default)({url:"/receiveTransferBot",method:"post",data:e})},t.refuseTransferBot=function(e){return(0,n.default)({url:"/refuseTransferBot",method:"post",data:e})},t.getInstallBot=function(e){return(0,n.default)({url:"/getInstallBot",method:"get",params:e})},t.deleteBot=function(e){return(0,n.default)({url:"/deleteBot",method:"post",data:e})},t.marketBot=function(e){return(0,n.default)({url:"/marketBot",method:"post",data:e})},t.transferBot=function(e){return(0,n.default)({url:"/transferBot",method:"post",data:e})},t.getMarketBotById=function(e){return(0,n.default)({url:"/getMarketBotById",method:"get",params:e})},t.updateInstallBot=function(e){return(0,n.default)({url:"/updateInstallBot",method:"post",data:e})},t.getStoreAllInstallBots=function(e){return(0,n.default)({url:"/getStoreAllInstallBots",method:"get",params:e})},t.getAllInstallBots=function(e){return(0,n.default)({url:"/getAllInstallBots",method:"get",params:e})},t.judgeIsIntallBot=function(e){return(0,n.default)({url:"/judgeIsIntallBot",method:"get",params:e})},t.getRegisterBot=function(e){return(0,n.default)({url:"/getRegisterBot",method:"get",params:e})},t.registerUpdateBot=function(e){return(0,n.default)({url:"/registerUpdateBot",method:"post",data:e})},t.updateMarketBot=function(e){return(0,n.default)({url:"/updateMarketBot",method:"post",data:e})},t.downMarket=function(e,t){return(0,n.default)({url:"/downMarket?id="+e,method:"post",data:t})},t.deleteInstallBot=function(e){return(0,n.default)({url:"/deleteInstallBot",method:"post",data:e})},t.cancelTransferBot=function(e){return(0,n.default)({url:"/cancelTransferBot",method:"post",data:e})},t.unInstallMarketBot=function(e){return(0,n.default)({url:"/uninstallMarketBot",method:"post",data:e})};var r,n=(r=a("jRI9"))&&r.__esModule?r:{default:r}},s4Eg:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=B(a("kLXV")),n=B(a("2/Rp")),o=B(a("tsqr")),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],r=!0,n=!1,o=void 0;try{for(var l,u=e[Symbol.iterator]();!(r=(l=u.next()).done)&&(a.push(l.value),!t||a.length!==t);r=!0);}catch(e){n=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(n)throw o}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("2qtc"),a("+L6B"),a("miYZ");var u=a("cDcd"),s=B(u);a("V5aj");var i=a("eO8H"),d=a("sYIF"),f=a("m/JD"),c=B(a("3jkU")),m=B(a("wd/R"));function B(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.current_user,a=(0,u.useState)([]),B=l(a,2),g=B[0],p=B[1],h=(0,u.useState)(void 0),k=l(h,2),E=k[0],v=k[1],A=(0,u.useState)(!1),I=l(A,2),y=I[0],b=I[1],S=(0,u.useState)(void 0),Q=l(S,2),w=Q[0],N=Q[1],M=(0,u.useState)(void 0),C=l(M,2),J=C[0],x=C[1];return(0,u.useEffect)((function(){window.scrollTo(0,0),document.title="我的Bot"}),[]),(0,u.useEffect)((function(){(0,f.getMyBot)({user_id:t&&t.user_id,page_no:1,page_size:1e3}).then((function(e){e&&200===e.code&&v(e.data.list)})),(0,f.getTransferToBot)({state:"2",user_id:t&&t.user_id,login:t&&t.login}).then((function(e){e&&200===e.code&&p(e.data.bot_list)}))}),[J]),s.default.createElement("div",null,s.default.createElement("div",{className:"exploitHead font-18"},s.default.createElement("span",null,"我的Bot"),s.default.createElement(n.default,{type:"primary",style:{width:"100px",height:"36px"}},s.default.createElement(i.Link,{to:"/settings/mybot/new"},"Bot注册"))),g.length>0&&s.default.createElement("div",{className:"makeOverBox"},g.map((function(e,a){return s.default.createElement("div",{className:"makeOverItem",key:a},s.default.createElement("div",null,s.default.createElement("p",{className:"botName font-15"},e.bot_name),s.default.createElement("p",{className:"userName"},s.default.createElement("a",{href:"/"+e.fromlogin,className:"fromUserNameBot"},e.fromname),"       ",(0,m.default)(e.transfer_date).format("YYYY-MM-DD HH:mm"))),s.default.createElement("div",null,s.default.createElement(n.default,{className:"themeCorBorBut",style:{width:"68px",height:"36px"},onClick:function(){var a;a=e,(0,f.receiveTransferBot)({bot_id:a.bot_id,transfer_from_id:a.transfer_id,transfer_to_login:t&&t.login,transfer_to_id:t&&t.user_id}).then((function(e){e&&200===e.code&&(o.default.success("操作成功"),x(Math.random()))}))}},"接收"),s.default.createElement(n.default,{className:"dangerBorBut ml20",style:{width:"68px",height:"36px"},onClick:function(){N(e),b(!0)}},"拒绝")))}))),E&&(E.length>0?s.default.createElement("div",{className:"softBotListBox"},E.map((function(e,t){return s.default.createElement("div",{className:"softBotItem",key:t},s.default.createElement("div",{className:"botOneLine botNameWarpBox"},s.default.createElement("img",{src:(0,d.getImageUrl)(e.logo),alt:"",className:"imgBox mr20","object-fit":"fill"}),s.default.createElement(i.Link,{className:"font-15 botOneLine botNameBox",to:"/settings/mybot/configuration/"+e.bot_id},e.bot_name),s.default.createElement("span",{className:"font-12 ml10 statusBot "+(e.is_public?e.is_market?"market":"public":"private")},e.is_public?e.is_market?"上架":"公开":"私有")),s.default.createElement(n.default,{className:"themeCorBorBut ml30",style:{width:"68px",height:"36px"}},s.default.createElement(i.Link,{to:"/settings/mybot/configuration/"+e.bot_id},"编辑")))}))):s.default.createElement("div",{className:"nullBotsBox mt80"},s.default.createElement("img",{src:c.default,alt:"",width:62}),s.default.createElement("p",{className:"font-18 showBigTip"},"您当前暂未注册任何Bot"),s.default.createElement("div",{className:"showTip font-14"},"Bot可以帮助您自动化处理一些繁杂的项目任务欢迎您",s.default.createElement(i.Link,{to:"/settings/mybot/new"}," 注册一个Bot "),"基于GitLink API进行开发。",s.default.createElement("br",null),"此外您还可以在",s.default.createElement(i.Link,{to:"/softbot"}," Bot市场 "),"中共享或安装他人的Bot"))),s.default.createElement(r.default,{className:"f8HeadModal",width:"550px",title:"拒绝"+(w&&w.bot_name)+"Bot",visible:y,maskClosable:!1,footer:[s.default.createElement(n.default,{onClick:function(){b(!1)},className:"mr30 grayBorBut whiteBackBut",style:{width:"104px",height:"36px"}},"取消"),s.default.createElement(n.default,{className:"redFontBut grayBorBut whiteBackBut",style:{width:"104px",height:"36px"},onClick:function(){(0,f.refuseTransferBot)({bot_id:w.bot_id,transfer_from_bot:w.transfer_id,transfer_to_bot:t&&t.user_id}).then((function(e){e&&200===e.code&&(b(!1),N(void 0),o.default.success("操作成功"),x(Math.random()))}))}},"确认")],onCancel:function(){b(!1)}},s.default.createElement("div",{className:"font-16 titleTip mt20"},s.default.createElement("span",{className:"circleRed font-18"},"!"),"您确定要拒绝此Bot吗"),s.default.createElement("div",{className:"deleteTip"},"拒绝后开发Bot权限将返回至转让人。")))}}}]);