forgeplus/public/react/build/static/js/106.581458cf.chunk.js

1 line
12 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[106,131],{"CSm+":function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},a=function(n,e){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return function(n,e){var t=[],i=!0,a=!1,r=void 0;try{for(var l,o=n[Symbol.iterator]();!(i=(l=o.next()).done)&&(t.push(l.value),!e||t.length!==e);i=!0);}catch(n){a=!0,r=n}finally{try{!i&&o.return&&o.return()}finally{if(a)throw r}}return t}(n,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=t("q1tI"),l=f(r),o=t("eO8H"),d=f(t("CnBM")),p=f(t("HUFq")),c=(t("spEH"),f(t("eGzb"))),u=f(t("vDqi"));function f(n){return n&&n.__esModule?n:{default:n}}t("VUSe");var s=(0,d.default)({loader:function(){return Promise.all([t.e(0),t.e(1),t.e(12),t.e(62)]).then(t.t.bind(null,"BX1b",7))},loading:p.default}),x=(0,d.default)({loader:function(){return Promise.all([t.e(0),t.e(1),t.e(84)]).then(t.t.bind(null,"bKeb",7))},loading:p.default}),g=(0,d.default)({loader:function(){return Promise.all([t.e(0),t.e(1),t.e(96)]).then(t.t.bind(null,"yvJ0",7))},loading:p.default}),m=(0,d.default)({loader:function(){return Promise.all([t.e(0),t.e(1),t.e(79)]).then(t.t.bind(null,"wZuH",7))},loading:p.default}),b=(0,d.default)({loader:function(){return t.e(108).then(t.t.bind(null,"093b",7))},loading:p.default});e.default=function(n){var e=n.match.params.OIdentifier,t=n.location.pathname,d=(0,r.useState)(void 0),p=a(d,2),f=p[0],h=p[1],y=(0,r.useState)(!0),k=a(y,2),v=k[0],w=k[1],B=(0,r.useState)(!1),E=a(B,2),O=E[0],j=E[1];function C(n,e){var t=f;t.name=n,t.description=e,h(t)}return(0,r.useEffect)((function(){t&&(t.indexOf("/"+e+"/setting")>-1?w(!1):w(!0),t.indexOf("/"+e+"/teams")>-1||t.indexOf("/"+e+"/members")>-1?j(!0):j(!1))}),[t]),(0,r.useEffect)((function(){var n;e&&(n="/organizations/"+e+".json",u.default.get(n).then((function(n){n&&n.data&&h(n.data)})).catch((function(n){})))}),[e]),l.default.createElement("div",{className:"teamDetail"},f&&l.default.createElement(c.default,{src:"/"+f.name,title:f.nickname,desc:!O&&f.description,img:f.avatar_url,rightBtn:l.default.createElement(l.default.Fragment,null,v&&!O&&f.is_admin?l.default.createElement(o.Link,{to:"/"+e+"/setting",className:"color-blue ml10 font-14"},"设置",l.default.createElement("i",{className:"iconfont icon-shezhi2 ml3 fr"})):"",O&&l.default.createElement("span",{className:"subNavs"},l.default.createElement(o.Link,{to:"/"+e+"/members",className:t==="/"+e+"/members"?"active":""},l.default.createElement("span",null,"组织成员"),f.num_users&&l.default.createElement("lable",null,f.num_users)),l.default.createElement(o.Link,{to:"/"+e+"/teams",className:t==="/"+e+"/teams"?"active":""},l.default.createElement("span",null,"组织团队"),f.num_teams&&l.default.createElement("lable",null,f.num_teams)))),bottomInfos:!O&&l.default.createElement("div",null,f.location&&l.default.createElement("span",{className:"color-grey-6"},l.default.createElement("i",{className:"iconfont icon-weizhi mr3 font-16 color-grey-6"}),f.location),f.website&&l.default.createElement("a",{href:f.website,target:"_blank",className:"ml20 color-grey-6"},l.default.createElement("i",{className:"iconfont icon-lianjie mr3 font-14"}),f.website))}),l.default.createElement(o.Switch,n,l.default.createElement(o.Route,{path:"/:OIdentifier/teams/:groupId",render:function(e){return l.default.createElement(s,i({},n,e,{group:f}))}}),l.default.createElement(o.Route,{path:"/:OIdentifier/members",render:function(e){return l.default.createElement(g,i({},n,e,{organizeDetail:f}))}}),l.default.createElement(o.Route,{path:"/:OIdentifier/teams",render:function(e){return l.default.createElement(x,i({},n,e,{organizeDetail:f}))}}),l.default.createElement(o.Route,{path:"/:OIdentifier/setting",render:function(e){return l.default.createElement(b,i({},n,e,{organizeDetail:f,updateFunc:C}))}}),l.default.createElement(o.Route,{path:"/:OIdentifier",render:function(e){return l.default.createElement(m,i({},n,e,{organizeDetail:f}))}})))}},eGzb:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=t("q1tI"),r=(i=a)&&i.__esModule?i:{default:i},l=t("sYIF"),o=t("eO8H");t("KkuB"),e.default=function(n){var e=n.img,t=n.title,i=n.desc,a=n.rightBtn,d=n.src,p=n.bottomInfos;return r.default.createElement("div",{className:"cards"},e&&r.default.createElement("div",{className:"img"},r.default.createElement("img",{src:(0,l.getImageUrl)("/"+e),alt:""})),r.default.createElement("div",{className:"content"},r.default.createElement("p",{className:"titles"},r.default.createElement(o.Link,{to:d},t),a),r.default.createElement("div",{className:"desc"},i),p))}},spEH:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GroupProjectBackgroup=e.Content=e.Cancel=e.GreenUnder=e.NumUl=e.Redback=e.Blueback=e.Greenback=e.Greenline=e.Redline=e.Blueline=e.WhiteBack=e.Gap=e.Short=e.ShortWidth=e.Long=e.LongWidth=e.Box=e.AlignAJBottom=e.AlignTop=e.AlignCenter=e.FlexAJ=e.AlignCenterBetween=e.Banner=void 0;var i,a=D(["{\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}"]),r=D(["{\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}"]),l=D(["{\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=D(["{\n display:flex;\n align-items: center;\n}"],["{\n display:flex;\n align-items: center;\n}"]),d=D(["{\n display:flex;\n align-items: flex-start;\n}"],["{\n display:flex;\n align-items: flex-start;\n}"]),p=D(["{\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}"]),c=D(["{\n display:flex;\n align-items:flex-start;\n}"],["{\n display:flex;\n align-items:flex-start;\n}"]),u=D(["{\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}"]),f=D(["{\n width:78%;\n border-radius:5px;\n margin-bottom:30px;\n}"],["{\n width:78%;\n border-radius:5px;\n margin-bottom:30px;\n}"]),s=D(["{\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=D(["{\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=D(["{\n padding-left:20px;\n box-sizing:border-box;\n}"],["{\n padding-left:20px;\n box-sizing:border-box;\n}"]),m=D(["{\n background-color:#fff;\n border-radius:5px;\n}"],["{\n background-color:#fff;\n border-radius:5px;\n}"]),b=D(["{\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=D(["{\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=D(["{\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}"]),k=D(["{\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}"]),v=D(["{\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=D(["{\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}"]),B=D(["{\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=D(["{\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}"]),O=D(["{\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=D(["{\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}"]),C=D(["{\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=(i=_)&&i.__esModule?i:{default:i};function D(n,e){return Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}e.Banner=N.default.div(a),e.AlignCenterBetween=N.default.div(r),e.FlexAJ=N.default.div(l),e.AlignCenter=N.default.div(o),e.AlignTop=N.default.div(d),e.AlignAJBottom=N.default.div(p),e.Box=N.default.div(c),e.LongWidth=N.default.div(u),e.Long=N.default.div(f),e.ShortWidth=N.default.div(s),e.Short=N.default.div(x),e.Gap=N.default.div(g),e.WhiteBack=N.default.div(m),e.Blueline=N.default.a(b),e.Redline=N.default.a(h,(function(n){return n.bold?"#fff":"#F73030"}),(function(n){return n.bold?"#F73030":"#fff"})),e.Greenline=N.default.a(y,(function(n){return n.bold?"#fff":"#28BD6C"}),(function(n){return n.bold?"#28BD6C":"#fff"})),e.Greenback=N.default.a(k),e.Blueback=N.default.a(v),e.Redback=N.default.a(w),e.NumUl=N.default.ul(B),e.GreenUnder=N.default.a(E),e.Cancel=N.default.a(O),e.Content=N.default.div(j),e.GroupProjectBackgroup=N.default.div(C)}}]);