forked from Gitlink/forgeplus
1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(this.webpackJsonp=this.webpackJsonp||[]).push([[99,131],{"6P6j":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=x(t("NUBc")),i=x(t("W9HT")),o=x(t("NJEC")),a=function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,n){var t=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return t}(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t("YQTV"),t("04bd"),t("k994");var l=t("q1tI"),c=x(l),p=x(t("2CTR")),d=t("spEH"),u=t("eO8H"),s=t("sYIF"),f=x(t("vDqi"));function x(e){return e&&e.__esModule?e:{default:e}}n.default=function(e){var n=e.match.params.username,t=(0,l.useState)(void 0),x=a(t,2),g=x[0],b=x[1],m=(0,l.useState)(1),h=a(m,2),y=h[0],v=h[1],k=(0,l.useState)(0),w=a(k,2),j=w[0],E=w[1],C=(0,l.useState)(!0),B=a(C,2),O=B[0],_=B[1];function N(){var e="/users/"+n+"/applied_transfer_projects.json";f.default.get(e,{params:{page:y,per_page:15}}).then((function(e){e&&(b(e.data.applied_transfer_projects),E(e.data.total_count),_(!1))})).catch((function(e){}))}return(0,l.useEffect)((function(){n&&(_(!0),N())}),[n,y]),c.default.createElement("div",null,c.default.createElement(i.default,{spinning:O},c.default.createElement("div",null,g&&g.length>0?c.default.createElement("ul",{className:"notifyList"},g.map((function(t,r){return c.default.createElement("li",{key:r},c.default.createElement(u.Link,{to:"/"+(t.user&&t.user.login)},c.default.createElement("img",{src:(0,s.getImageUrl)("/"+(t.user&&t.user.image_url)),alt:"",className:"notifyImg"})),c.default.createElement("div",{className:"notifyFlex"},c.default.createElement("p",{className:"notifyInfos"},c.default.createElement(u.Link,{to:"/"+(t.user&&t.user.login),className:"font-15 mr20"},t.user&&t.user.name),c.default.createElement("span",{className:"color-grey-9"},t.time_ago)),c.default.createElement(d.FlexAJ,null,c.default.createElement("p",{className:"color-grey-6"},"请求将仓库【",c.default.createElement(u.Link,{to:"/"+(t.project&&t.project.owner&&t.project.owner.login)+"/"+(t.project&&t.project.identifier)},t.project&&t.project.name),"】 转移给【",c.default.createElement(u.Link,{to:"/"+(t.owner&&t.owner.login)},t.owner&&t.owner.name),"】,是否接受?"),"common"===t.status&&c.default.createElement("span",null,c.default.createElement(o.default,{title:"确定接受仓库"+(t.project&&t.project.name)+"?",okText:"确定",cancelText:"取消",onConfirm:function(){return r=t.id,i="/users/"+n+"/applied_transfer_projects/"+r+"/accept.json",void f.default.post(i).then((function(n){n&&n.data&&(N(),e&&e.deleteEvent("undo",1))})).catch((function(e){}));var r,i}},c.default.createElement("a",{className:"color-blue"},"接受")),c.default.createElement(o.default,{title:"确定拒绝接受仓库"+(t.project&&t.project.name)+"?",okText:"确定",cancelText:"取消",onConfirm:function(){return r=t.id,i="/users/"+n+"/applied_transfer_projects/"+r+"/refuse.json",void f.default.post(i).then((function(n){n&&n.data&&(N(),e&&e.deleteEvent("undo",1))})).catch((function(e){}));var r,i}},c.default.createElement("a",{className:"color-red ml20"},"拒绝"))),"canceled"===t.status&&c.default.createElement("span",{className:"color-grey-9"},"对方已取消转移"),"accepted"===t.status&&c.default.createElement("span",{className:"color-grey-9"},"已接受"),"refused"===t.status&&c.default.createElement("span",{className:"color-grey-9"},"已拒绝"))))}))):"")),g&&0===g.length&&c.default.createElement(p.default,{_html:"暂无接收信息"}),j>15&&c.default.createElement("div",{className:"edu-txt-center pt20 pb20"},c.default.createElement(r.default,{simple:!0,pageSize:15,total:j,current:y,onChange:function(e){v(e)}})))}},NJEC:function(e,n,t){"use strict";t.r(n);var r=t("q1tI"),i=t("VCL8"),o=t("3S7+"),a=t("CtXQ"),l=t("2/Rp"),c=t("YMnH"),p=t("ZvpZ"),d=t("H84U");function u(e){return(u="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 n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function f(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,n){return(x=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function g(e){var n=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 t,r=h(e);if(n){var i=h(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return b(this,t)}}function b(e,n){return!n||"object"!==u(n)&&"function"!=typeof n?m(e):n}function m(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,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t},v=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&x(e,n)}(u,e);var n,t,i,a=g(u);function u(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),(n=a.call(this,e)).onConfirm=function(e){n.setVisible(!1,e);var t=n.props.onConfirm;t&&t.call(m(n),e)},n.onCancel=function(e){n.setVisible(!1,e);var t=n.props.onCancel;t&&t.call(m(n),e)},n.onVisibleChange=function(e){n.props.disabled||n.setVisible(e)},n.saveTooltip=function(e){n.tooltip=e},n.renderOverlay=function(e,t){var i=n.props,o=i.okButtonProps,a=i.cancelButtonProps,c=i.title,p=i.cancelText,d=i.okText,u=i.okType,f=i.icon;return r.createElement("div",null,r.createElement("div",{className:"".concat(e,"-inner-content")},r.createElement("div",{className:"".concat(e,"-message")},f,r.createElement("div",{className:"".concat(e,"-message-title")},c)),r.createElement("div",{className:"".concat(e,"-buttons")},r.createElement(l.default,s({onClick:n.onCancel,size:"small"},a),p||t.cancelText),r.createElement(l.default,s({onClick:n.onConfirm,type:u,size:"small"},o),d||t.okText))))},n.renderConfirm=function(e){var t=e.getPrefixCls,i=n.props,a=i.prefixCls,l=i.placement,d=y(i,["prefixCls","placement"]),u=t("popover",a),f=r.createElement(c.a,{componentName:"Popconfirm",defaultLocale:p.a.Popconfirm},(function(e){return n.renderOverlay(u,e)}));return r.createElement(o.default,s({},d,{prefixCls:u,placement:l,onVisibleChange:n.onVisibleChange,visible:n.state.visible,overlay:f,ref:n.saveTooltip}))},n.state={visible:e.visible},n}return n=u,i=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:"defaultVisible"in e?{visible:e.defaultVisible}:null}}],(t=[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"setVisible",value:function(e,n){var t=this.props;"visible"in t||this.setState({visible:e});var r=t.onVisibleChange;r&&r(e,n)}},{key:"render",value:function(){return r.createElement(d.a,null,this.renderConfirm)}}])&&f(n.prototype,t),i&&f(n,i),u}(r.Component);v.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:r.createElement(a.default,{type:"exclamation-circle",theme:"filled"}),disabled:!1},Object(i.polyfill)(v),n.default=v},k994:function(e,n,t){"use strict";t.r(n);t("SchZ"),t("Aosp"),t("L/Qf")},spEH:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GroupProjectBackgroup=n.Content=n.Cancel=n.GreenUnder=n.NumUl=n.Redback=n.Blueback=n.Greenback=n.Greenline=n.Redline=n.Blueline=n.WhiteBack=n.Gap=n.Short=n.ShortWidth=n.Long=n.LongWidth=n.Box=n.AlignAJBottom=n.AlignTop=n.AlignCenter=n.FlexAJ=n.AlignCenterBetween=n.Banner=void 0;var r,i=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}"]),o=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}"]),a=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}"]),l=P(["{\n display:flex;\n align-items: center;\n}"],["{\n display:flex;\n align-items: center;\n}"]),c=P(["{\n display:flex;\n align-items: flex-start;\n}"],["{\n display:flex;\n align-items: flex-start;\n}"]),p=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}"]),u=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}"]),f=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}"]),x=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}"]),g=P(["{\n padding-left:20px;\n box-sizing:border-box;\n}"],["{\n padding-left:20px;\n box-sizing:border-box;\n}"]),b=P(["{\n background-color:#fff;\n border-radius:5px;\n}"],["{\n background-color:#fff;\n border-radius:5px;\n}"]),m=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}"]),w=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}"]),j=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}"]),E=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}"]),C=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}"]),B=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}"]),O=P(["{\n background:#fafafa;\n padding:20px 30px;\n width:100%;\n}"],["{\n background:#fafafa;\n padding:20px 30px;\n width:100%;\n}"]),_=t("vOnD"),N=(r=_)&&r.__esModule?r:{default:r};function P(e,n){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}n.Banner=N.default.div(i),n.AlignCenterBetween=N.default.div(o),n.FlexAJ=N.default.div(a),n.AlignCenter=N.default.div(l),n.AlignTop=N.default.div(c),n.AlignAJBottom=N.default.div(p),n.Box=N.default.div(d),n.LongWidth=N.default.div(u),n.Long=N.default.div(s),n.ShortWidth=N.default.div(f),n.Short=N.default.div(x),n.Gap=N.default.div(g),n.WhiteBack=N.default.div(b),n.Blueline=N.default.a(m),n.Redline=N.default.a(h,(function(e){return e.bold?"#fff":"#F73030"}),(function(e){return e.bold?"#F73030":"#fff"})),n.Greenline=N.default.a(y,(function(e){return e.bold?"#fff":"#28BD6C"}),(function(e){return e.bold?"#28BD6C":"#fff"})),n.Greenback=N.default.a(v),n.Blueback=N.default.a(k),n.Redback=N.default.a(w),n.NumUl=N.default.ul(j),n.GreenUnder=N.default.a(E),n.Cancel=N.default.a(C),n.Content=N.default.div(B),n.GroupProjectBackgroup=N.default.div(O)}}]); |