forked from Gitlink/forgeplus
1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
(this.webpackJsonp=this.webpackJsonp||[]).push([[56,132],{"85A0":function(e,t,n){},EEGS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=v(n("W9HT")),r=v(n("NUBc")),o=v(n("PArb")),i=v(n("diRs")),l=v(n("2/Rp")),c=v(n("BvKs")),p=v(n("5rEg")),s=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},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();n("04bd"),n("YQTV"),n("qNb/"),n("Aosp"),n("L/Qf"),n("2WkQ"),n("1vPl");var u=n("q1tI"),f=v(u),g=v(n("aqs5")),m=v(n("vDqi")),x=v(n("z+6C")),h=v(n("2CTR")),b=v(n("lbbv")),y=v(n("FPGT"));function v(e){return e&&e.__esModule?e:{default:e}}var A=p.default.Search,k=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.componentDidMount=function(){n.get_projects()},n.componentDidUpdate=function(e){var t=n.props.match.params.username,a=e.match.params.username;(e.project_type!==n.props.project_type||a&&t&&a!==t)&&n.get_projects()},n.get_projects=function(e){var t=n.props.match.params.username,a=n.props.project_type,r="/users/"+t+"/projects.json",o=n.state,i=o.page,l=o.limit,c=o.search,p=o.sort_by,s=o.category,d=o.is_public;n.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&&n.setState({projectsList:e.data.projects,total:e.data.count,isSpin:!1})})).catch((function(e){n.setState({isSpin:!1})}))},n.changeCategory=function(e){n.state.page=1,n.state.category=e.target.value,n.get_projects()},n.changePage=function(e){n.state.page=e,n.get_projects()},n.ChangeSoryBy=function(e){n.state.sort_by=e.key,n.get_projects()},n.changeSearchValue=function(e){n.setState({search:e.target.value})},n.changeStatus=function(e){var t=n.state.is_public===e?void 0:e;n.state.is_public=t,n.get_projects(t)},n.menu=function(){return f.default.createElement(c.default,{onClick:n.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"},"点赞数量排序"))},n.newItem=function(){return f.default.createElement("ul",null,f.default.createElement("li",null,f.default.createElement(g.default,s({},n.props,{sureFunc:function(){n.props.history.push("/projects/deposit/new")}}),"新建项目")),f.default.createElement("li",null,f.default.createElement(g.default,s({},n.props,{sureFunc:function(){n.props.history.push("/projects/mirror/new")}}),"导入项目")))},n.category_button=function(e){var t=n.props,a=t.current_user,r=t.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(t,a){return f.default.createElement("span",{key:a,className:"pr15"},f.default.createElement(l.default,{type:e&&e===t.type||!e&&!t.type?"primary":"default",ghost:e&&e===t.type||!e&&!t.type,value:t.type,onClick:n.changeCategory},t.name))}))},n.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},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),d(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.current_user,l=t.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,n&&l&&n.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&&n&&l.login===n.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})):"")}}]),t}(u.Component);t.default=k},FPGT:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAJCAYAAADkZNYtAAAA0UlEQVQoU4XPsUpCARTG8f9nOESLLYVdoVVy6RGiB+gJahZ0USebxKmGUBeD5nqBeoDoEVoUH+DeoBZdpEHyi6so11A72znndz44Ctp+Bi74v16UvfNxaocesLfFj6c/FBSDXMt1i5tNWOY6rOl2hnlwOvfNu83J3wOJfrjLKUVN5jhOb/vM8AosZ4AF52FVb7FJLghafkRcLtPNU1TT1aJfwQcdH6bNAMgAo4nIf1X0uRbHw6OOSzJdi/JHRffJH1aSZ4uGU8E+3WhImaamSfwLSmg7J0wuJwcAAAAASUVORK5CYII="},PArb:function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),r=n("TSYQ"),o=n.n(r),i=n("H84U");function l(){return(l=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}).apply(this,arguments)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};t.default=function(e){return a.createElement(i.a,null,(function(t){var n,r=t.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(n={},"".concat(b,"-with-text").concat(y),m),c(n,"".concat(b,"-dashed"),!!x),n));return a.createElement("div",l({className:v},h,{role:"separator"}),m&&a.createElement("span",{className:"".concat(b,"-inner-text")},m))}))}},la1e:function(e,t){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,t){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,t,n){"use strict";n.r(t);n("SchZ"),n("txnC")},spEH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GroupProjectBackgroup=t.Content=t.Cancel=t.GreenUnder=t.NumUl=t.Redback=t.Blueback=t.Greenback=t.Greenline=t.Redline=t.Blueline=t.WhiteBack=t.Gap=t.Short=t.ShortWidth=t.Long=t.LongWidth=t.Box=t.AlignAJBottom=t.AlignTop=t.AlignCenter=t.FlexAJ=t.AlignCenterBetween=t.Banner=void 0;var a,r=S(["{\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=S(["{\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=S(["{\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=S(["{\n display:flex;\n align-items: center;\n}"],["{\n display:flex;\n align-items: center;\n}"]),c=S(["{\n display:flex;\n align-items: flex-start;\n}"],["{\n display:flex;\n align-items: flex-start;\n}"]),p=S(["{\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=S(["{\n display:flex;\n align-items:flex-start;\n}"],["{\n display:flex;\n align-items:flex-start;\n}"]),d=S(["{\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=S(["{\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=S(["{\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=S(["{\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=S(["{\n padding-left:20px;\n box-sizing:border-box;\n}"],["{\n padding-left:20px;\n box-sizing:border-box;\n}"]),x=S(["{\n background-color:#fff;\n border-radius:5px;\n}"],["{\n background-color:#fff;\n border-radius:5px;\n}"]),h=S(["{\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=S(["{\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=S(["{\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=S(["{\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=S(["{\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=S(["{\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=S(["{\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=S(["{\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}"]),B=S(["{\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=S(["{\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}"]),_=S(["{\n background:#fafafa;\n padding:20px 30px;\n width:100%;\n}"],["{\n background:#fafafa;\n padding:20px 30px;\n width:100%;\n}"]),C=n("vOnD"),N=(a=C)&&a.__esModule?a:{default:a};function S(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}t.Banner=N.default.div(r),t.AlignCenterBetween=N.default.div(o),t.FlexAJ=N.default.div(i),t.AlignCenter=N.default.div(l),t.AlignTop=N.default.div(c),t.AlignAJBottom=N.default.div(p),t.Box=N.default.div(s),t.LongWidth=N.default.div(d),t.Long=N.default.div(u),t.ShortWidth=N.default.div(f),t.Short=N.default.div(g),t.Gap=N.default.div(m),t.WhiteBack=N.default.div(x),t.Blueline=N.default.a(h),t.Redline=N.default.a(b,(function(e){return e.bold?"#fff":"#F73030"}),(function(e){return e.bold?"#F73030":"#fff"})),t.Greenline=N.default.a(y,(function(e){return e.bold?"#fff":"#28BD6C"}),(function(e){return e.bold?"#28BD6C":"#fff"})),t.Greenback=N.default.a(v),t.Blueback=N.default.a(A),t.Redback=N.default.a(k),t.NumUl=N.default.ul(E),t.GreenUnder=N.default.a(w),t.Cancel=N.default.a(B),t.Content=N.default.div(j),t.GroupProjectBackgroup=N.default.div(_)},txnC:function(e,t,n){},"z+6C":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=u(n("3S7+")),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}();n("TfFZ");var o=n("q1tI"),i=u(o),l=n("sYIF"),c=n("spEH"),p=n("eO8H");n("7dqz");var s=u(n("2CTR"));n("85A0");var d=u(n("la1e"));function u(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var m=function(e){function t(){var e,n,a;f(this,t);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=a=g(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),a.TurnToDetail=function(e,t){a.props.history.push({pathname:t,state:e})},g(a,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{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,t){return i.default.createElement("div",{className:"p-r-Item",key:t},"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,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"})):"",e.type&&1===e.type?i.default.createElement(a.default,{title:"该项目是一个导入于其他网站的仓库",className:"ml5"},i.default.createElement("i",{className:"iconfont icon-jingxiang 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:"暂无数据~"}))}}]),t}(o.Component);t.default=m}}]); |