build/static/js/71.ac7a05ac.chunk.js

1 line
21 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[71],{"85A0":function(e,n,t){},EEGS:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=v(t("W9HT")),r=v(t("NUBc")),o=v(t("PArb")),i=v(t("diRs")),l=v(t("2/Rp")),c=v(t("BvKs")),p=v(t("5rEg")),s=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},d=function(){function e(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(n,t,a){return t&&e(n.prototype,t),a&&e(n,a),n}}();t("04bd"),t("YQTV"),t("qNb/"),t("Aosp"),t("L/Qf"),t("2WkQ"),t("1vPl");var u=t("q1tI"),f=v(u),g=v(t("aqs5")),m=v(t("vDqi")),x=v(t("z+6C")),h=v(t("2CTR")),b=v(t("lbbv")),y=v(t("FPGT"));function v(e){return e&&e.__esModule?e:{default:e}}var A=p.default.Search,k=function(e){function n(e){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.componentDidMount=function(){t.get_projects()},t.componentDidUpdate=function(e){var n=t.props.match.params.username,a=e.match.params.username;(e.project_type!==t.props.project_type||a&&n&&a!==n)&&t.get_projects()},t.get_projects=function(e){var n=t.props.match.params.username,a=t.props.project_type,r="/users/"+n+"/projects.json",o=t.state,i=o.page,l=o.limit,c=o.search,p=o.sort_by,s=o.category,d=o.is_public;t.setState({isSpin:!0}),m.default.get(r,{params:{page:i,limit:l,search:c,sort_by:p,category:s,project_type:a,is_public:void 0!==e?e:d}}).then((function(e){e&&t.setState({projectsList:e.data.projects,total:e.data.count,isSpin:!1})})).catch((function(e){t.setState({isSpin:!1})}))},t.changeCategory=function(e){t.state.page=1,t.state.category=e.target.value,t.get_projects()},t.changePage=function(e){t.state.page=e,t.get_projects()},t.ChangeSoryBy=function(e){t.state.sort_by=e.key,t.get_projects()},t.changeSearchValue=function(e){t.setState({search:e.target.value})},t.changeStatus=function(e){var n=t.state.is_public===e?void 0:e;t.state.is_public=n,t.get_projects(n)},t.menu=function(){return f.default.createElement(c.default,{onClick:t.ChangeSoryBy},f.default.createElement(c.default.Item,{key:"updated_on"},"更新时间排序"),f.default.createElement(c.default.Item,{key:"created_on"},"创建时间排序"),f.default.createElement(c.default.Item,{key:"forked_count"},"fork数量排序"),f.default.createElement(c.default.Item,{key:"praises_count"},"点赞数量排序"))},t.newItem=function(){return f.default.createElement("ul",null,f.default.createElement("li",null,f.default.createElement(g.default,s({},t.props,{sureFunc:function(){t.props.history.push("/projects/deposit/new")}}),"新建项目")),f.default.createElement("li",null,f.default.createElement(g.default,s({},t.props,{sureFunc:function(){t.props.history.push("/projects/mirror/new")}}),"导入项目")))},t.category_button=function(e){var n=t.props,a=n.current_user,r=n.user;return(r&&a&&r.login===a.login?[{type:void 0,name:"所有"},{type:"manage",name:"我创建的"},{type:"join",name:"我参与的"},{type:"watched",name:"我关注的"},{type:"forked",name:"我Fork的"}]:[{type:void 0,name:"所有"},{type:"manage",name:"TA创建的"},{type:"join",name:"TA参与的"},{type:"watched",name:"TA关注的"},{type:"forked",name:"TAFork的"}]).map((function(n,a){return f.default.createElement("span",{key:a,className:"pr15"},f.default.createElement(l.default,{type:e&&e===n.type||!e&&!n.type?"primary":"default",ghost:e&&e===n.type||!e&&!n.type,value:n.type,onClick:t.changeCategory},n.name))}))},t.state={page:1,limit:15,sort_by:void 0,totalCount:void 0,isSpin:!1,projectsList:void 0,total:void 0,category:void 0,is_public:void 0},t}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),d(n,[{key:"render",value:function(){var e=this,n=this.props,t=n.current_user,l=n.user,c=this.state,p=c.category,d=c.is_public,u=this.state,g=u.projectsList,m=u.isSpin,v=u.total,k=u.search,E=u.limit,w=u.page;return f.default.createElement(a.default,{spinning:m},f.default.createElement("div",{className:"list-r-operation",style:{padding:"20px"}},f.default.createElement(A,{placeholder:"输入项目名称关键字进行搜索",enterButton:"搜索",size:"large",onSearch:this.get_projects,className:"list-r-Search",value:k,onChange:this.changeSearchValue}),f.default.createElement("div",null,t&&l&&t.login===l.login&&f.default.createElement(i.default,{content:this.newItem(),trigger:["hover"],placement:"bottom",className:"mr50",overlayClassName:"newPopUl"},f.default.createElement("a",{className:"ant-dropdown-link"},f.default.createElement("span",{className:"color-blue font-16"},f.default.createElement("img",{src:b.default,alt:"",width:"13px"})," 新建"))),f.default.createElement(i.default,{content:this.menu(),trigger:["click"],placement:"bottom"},f.default.createElement("a",{className:"ant-dropdown-link"},f.default.createElement("span",{className:"color-blue font-16"},"排序 ",f.default.createElement("img",{src:y.default,alt:"",width:"10px"})))))),f.default.createElement("div",{className:"infosType"},f.default.createElement("div",null,this.category_button(p)),l&&t&&l.login===t.login?f.default.createElement("p",{className:"infoStatus"},f.default.createElement("span",{className:"public"===d?"active":"",onClick:function(){return e.changeStatus("public")}},"公有"),!d&&f.default.createElement(o.default,{type:"vertical",className:"statusDivider"}),f.default.createElement("span",{className:"private"===d?"active":"",onClick:function(){return e.changeStatus("private")}},"私有")):""),g&&g.length>0?f.default.createElement(x.default,s({},this.props,this.state,{projects:g})):f.default.createElement(h.default,{_html:"暂时没有项目"}),v&&v>E?f.default.createElement("div",{className:"edu-txt-center pt30 mb30 border-top-grey"},f.default.createElement(r.default,{simple:!0,current:w,total:v,pageSize:E,onChange:this.changePage})):"")}}]),n}(u.Component);n.default=k},FPGT:function(e,n){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAJCAYAAADkZNYtAAAA0UlEQVQoU4XPsUpCARTG8f9nOESLLYVdoVVy6RGiB+gJahZ0USebxKmGUBeD5nqBeoDoEVoUH+DeoBZdpEHyi6so11A72znndz44Ctp+Bi74v16UvfNxaocesLfFj6c/FBSDXMt1i5tNWOY6rOl2hnlwOvfNu83J3wOJfrjLKUVN5jhOb/vM8AosZ4AF52FVb7FJLghafkRcLtPNU1TT1aJfwQcdH6bNAMgAo4nIf1X0uRbHw6OOSzJdi/JHRffJH1aSZ4uGU8E+3WhImaamSfwLSmg7J0wuJwcAAAAASUVORK5CYII="},PArb:function(e,n,t){"use strict";t.r(n);var a=t("q1tI"),r=t("TSYQ"),o=t.n(r),i=t("H84U");function l(){return(l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function c(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var p=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]])}return t};n.default=function(e){return a.createElement(i.a,null,(function(n){var t,r=n.getPrefixCls,i=e.prefixCls,s=e.type,d=void 0===s?"horizontal":s,u=e.orientation,f=void 0===u?"center":u,g=e.className,m=e.children,x=e.dashed,h=p(e,["prefixCls","type","orientation","className","children","dashed"]),b=r("divider",i),y=f.length>0?"-".concat(f):f,v=o()(g,b,"".concat(b,"-").concat(d),(c(t={},"".concat(b,"-with-text").concat(y),m),c(t,"".concat(b,"-dashed"),!!x),t));return a.createElement("div",l({className:v},h,{role:"separator"}),m&&a.createElement("span",{className:"".concat(b,"-inner-text")},m))}))}},la1e:function(e,n){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAABs0lEQVQ4T5WSsWtUQRCHv5m9s4kSG7XzTwgWioQoYhCMhSJRXt5pEgx2QYgpIlppkSIQQrARLLQIwr13YkAQRBJstLExEJLOQm2sDw0W3puR9y4eOT1MbovdZWbnm9/MjrC9PA0V3KZA+oAt4A1qDwq3aX6eB3rA1xF9KCNZNXdJvnmii+CD4DMo74BeXEcxZgqAMo/YM6COcRpkHuStxDYtXguXMJtjy0/KTb7/UVSAa6VTRZao8b7N/oQD9MgHVO+KJ7IK+kjibHnno93unoRhsEnxROuoHZWI+m5B7eroxfRrDviJ2iGJ+NElYD+m33LAJtiYxHzsCpBwAeSeeKr3cQ7mHe0KkMoKplXxJQ6zTzfAhvaqwpMwATbFET/enIPnYZjMF3E7IxU+/0+J10r9mL2kZGflKpsFoPnnegvzaco+KFf40gniaWkAbBnRUYkaK61JbEESncS5Q7BzEvGp7duS8gk8e5VPqFxrBv8DKJRUww3EZ/FwUSq/1gpbntntBciExNnrneBWCW3Z0nAZ/DHIbSCAL4Bel5HG6t+ldQQ0e1I+hjWebndoXGI2OvXlN28Np9vm0kEpAAAAAElFTkSuQmCC"},lbbv:function(e,n){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAVCAYAAABCIB6VAAABeElEQVRIS82VzStEURjGf88dUgqRjWEskFJ2ko3s5I9RuL4WNrJQ5OPiP7C3sLBTLCRlY6FsUBYuG987H3de3VujmTBXM0PO5tT5+J2n5zzvOWr0zCi+PZo4kLHgu9oJcSoROCPNEBP+iJY+wL4rFSo8uWj1SjBkMCWQQV9JwBlBSc/mBZPARknBqTVrTQecGVyUFNy0bHUmbhG3vw8GDgu9vI9IiISMrhzFxUJz9mdbIaOnWHgaqiW2/8bjQgokSoHDGHAXVhvT5jTV0foSEBSViuZlawnEOeLcH1FbtpX/Bxy+CyQYjF4wqAWGQysM1qIx48kflaekZ6+CMv+Bcmb0FpeMBs86HDjJs+7Sd5UKrTgF2gx6r1ztx4F/rLhxxWYxpoDjZxi4cXUdB8/M57282jmrqayIyrkduAe2zKL+y6YEm/6wdsPJvOBwQb1nDRViHaM/Vq0YjzILfMpx1uacXyO1ap1BQLfjUPXdAWmHvashHcUJeAfhzNAdCh13ggAAAABJRU5ErkJggg=="},"qNb/":function(e,n,t){"use strict";t.r(n);t("SchZ"),t("txnC")},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 a,r=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 justify-content: space-between;\n display: flex;\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 justify-content: space-between;\n display: flex;\n}"]),o=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}"],["{\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}"]),i=N(["{\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=N(["{\n display:flex;\n align-items: center;\n}"],["{\n display:flex;\n align-items: center;\n}"]),c=N(["{\n display:flex;\n align-items: flex-start;\n}"],["{\n display:flex;\n align-items: flex-start;\n}"]),p=N(["{\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}"]),s=N(["{\n display:flex;\n align-items:flex-start;\n}"],["{\n display:flex;\n align-items:flex-start;\n}"]),d=N(["{\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}"]),u=N(["{\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=N(["{\n width:300px;\n border-radius:5px;\n margin-bottom:30px;\n}"],["{\n width:300px;\n border-radius:5px;\n margin-bottom:30px;\n}"]),g=N(["{\n flex:1;\n border-radius:5px;\n margin-bottom:30px;\n}"],["{\n flex:1;\n border-radius:5px;\n margin-bottom:30px;\n}"]),m=N(["{\n padding-left:20px;\n box-sizing:border-box;\n}"],["{\n padding-left:20px;\n box-sizing:border-box;\n}"]),x=N(["{\n background-color:#fff;\n border-radius:5px;\n}"],["{\n background-color:#fff;\n border-radius:5px;\n}"]),h=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}"],["{\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}"]),b=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}"],["{\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=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}"],["{\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=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}"],["{\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}"]),A=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}"],["{\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}"]),k=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}"],["{\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}"]),E=N(["{\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}"]),w=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}"],["{\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}"]),j=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}"],["{\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=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}"],["{\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(["{\n background:#fafafa;\n padding:20px 30px;\n width:100%;\n}"],["{\n background:#fafafa;\n padding:20px 30px;\n width:100%;\n}"]),C=t("vOnD"),S=(a=C)&&a.__esModule?a:{default:a};function N(e,n){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}n.Banner=S.default.div(r),n.AlignCenterBetween=S.default.div(o),n.FlexAJ=S.default.div(i),n.AlignCenter=S.default.div(l),n.AlignTop=S.default.div(c),n.AlignAJBottom=S.default.div(p),n.Box=S.default.div(s),n.LongWidth=S.default.div(d),n.Long=S.default.div(u),n.ShortWidth=S.default.div(f),n.Short=S.default.div(g),n.Gap=S.default.div(m),n.WhiteBack=S.default.div(x),n.Blueline=S.default.a(h),n.Redline=S.default.a(b,(function(e){return e.bold?"#fff":"#F73030"}),(function(e){return e.bold?"#F73030":"#fff"})),n.Greenline=S.default.a(y,(function(e){return e.bold?"#fff":"#28BD6C"}),(function(e){return e.bold?"#28BD6C":"#fff"})),n.Greenback=S.default.a(v),n.Blueback=S.default.a(A),n.Redback=S.default.a(k),n.NumUl=S.default.ul(E),n.GreenUnder=S.default.a(w),n.Cancel=S.default.a(j),n.Content=S.default.div(B),n.GroupProjectBackgroup=S.default.div(_)},txnC:function(e,n,t){},"z+6C":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=u(t("3S7+")),r=function(){function e(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(n,t,a){return t&&e(n.prototype,t),a&&e(n,a),n}}();t("TfFZ");var o=t("q1tI"),i=u(o),l=t("sYIF"),c=t("spEH"),p=t("eO8H");t("7dqz");var s=u(t("2CTR"));t("85A0");var d=u(t("la1e"));function u(e){return e&&e.__esModule?e:{default:e}}function f(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function g(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}var m=function(e){function n(){var e,t,a;f(this,n);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=a=g(this,(e=n.__proto__||Object.getPrototypeOf(n)).call.apply(e,[this].concat(o))),a.TurnToDetail=function(e,n){a.props.history.push({pathname:n,state:e})},g(a,t)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),r(n,[{key:"render",value:function(){var e=this.props.projects;return i.default.createElement("div",{className:"project-list minH-670",style:{padding:"0px 20px"}},e&&e.length>0?e.map((function(e,n){return i.default.createElement("div",{className:"p-r-Item",key:n},"educoder"===e.platform?i.default.createElement("a",{href:"javascript:void(0)",style:{cursor:"default"},className:"show-user-link"},i.default.createElement("img",{className:"p-r-photo",alt:"",src:e.author&&e.author.image_url})):i.default.createElement(p.Link,{to:"/"+(e.author&&e.author.login),className:"show-user-link"},i.default.createElement("img",{className:"p-r-photo",alt:"",src:(0,l.getImageUrl)("/"+(e.author&&e.author.image_url))})),i.default.createElement("div",{className:"p-r-Infos"},i.default.createElement("div",{className:"p-r-name"},i.default.createElement(c.AlignCenter,null,i.default.createElement(p.Link,{to:"/"+e.author.login+"/"+e.identifier,target:"_blank",title:e.author.name+"/"+e.name,className:"color-grey-3 font-18 task-hide ",style:{maxWidth:470}},e.author.name,"/",e.name),!e.is_public&&i.default.createElement("span",{className:"privateTag"},"私有"),e.forked_from_project_id?i.default.createElement(a.default,{title:"该项目是一个fork仓库",className:"ml5"},i.default.createElement("i",{className:"iconfont icon-fork font-18 color-orange"})):"",e.type&&2===e.type?i.default.createElement(a.default,{title:"该项目是一个同步镜像仓库",className:"ml5"},i.default.createElement("i",{className:"iconfont icon-banbenku font-18 color-green"})):""),i.default.createElement("span",{className:"p-r-tags"},e.praises_count&&e.praises_count>0?i.default.createElement("span",{className:"pariseTag"},i.default.createElement("img",{src:d.default,alt:"",className:"pariseImg"}),"赞 ",e.praises_count):"",e.forked_count&&e.forked_count>0?i.default.createElement("span",null,i.default.createElement("i",{className:"iconfont icon-fork mr3 font-16",style:{color:"#1B8FFF"}}),"fork ",e.forked_count):"")),i.default.createElement("p",{className:"break_word task-hide-2 mt10",style:{maxHeight:"44px",lineHeight:"22px"}},e.description),i.default.createElement("div",{className:"p-r-about"},i.default.createElement("span",{className:"p-r-detail"},e.last_update_time?i.default.createElement("span",null,i.default.createElement("label",null,"更新于"),e.time_ago):"",e.language&&e.language.id?i.default.createElement("span",{className:"color-grey-3"},e.language.name):""))))})):i.default.createElement(s.default,{_html:"暂无数据~"}))}}]),n}(o.Component);n.default=m}}]);