1 line
30 KiB
JavaScript
1 line
30 KiB
JavaScript
|
(this.webpackJsonp=this.webpackJsonp||[]).push([[63],{"0lcf":function(e,t,n){"use strict";n.r(t);n("SchZ"),n("u3En")},"6JOy":function(e,t,n){},AubP:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=u(n("NUBc"));n("YQTV");var r=u(n("q1tI")),l=n("spEH"),o=u(n("Rs/d")),i=n("PhNK"),s=n("sYIF"),c=n("eO8H");function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.commits,n=e.projectsId,u=e.owner,f=e.total,d=e.limit,p=e.changeCommitFunc;return r.default.createElement("div",{className:"pb20"},t.map((function(e,t){return r.default.createElement("div",{className:"prCommits"},r.default.createElement("p",{className:"prCreate"},e.created_at),r.default.createElement("div",{className:"prInfo"},r.default.createElement(l.FlexAJ,null,r.default.createElement(l.AlignCenter,null,r.default.createElement(c.Link,{to:"/"+u+"/"+n+"/commits/"+(0,i.truncateCommitId)(""+e.sha),className:"commitKey",style:{marginLeft:0}},(0,i.truncateCommitId)(""+e.sha)),r.default.createElement("p",{className:"ml15 font-16 color-grey-3 task-hide",style:{maxWidth:"700px"}},e.message)),r.default.createElement(c.Link,{to:"/"+u+"/"+n+"/commits/"+(0,i.truncateCommitId)(e.sha),className:"color-blue"},"浏览代码")),r.default.createElement(l.AlignCenter,{className:"mt15"},r.default.createElement(o.default,{url:(0,s.getImageUrl)("/"+(e.committer&&e.committer.image_url)),name:""+(e.committer&&e.committer.name)}),r.default.createElement("span",null,":提交于",e.time_from_now))))})),f>d&&r.default.createElement("div",{style:{textAlign:"center",paddingTop:"20px"}},r.default.createElement(a.default,{pageSize:d,total:f,onChange:function(e){return p(e)}})))}},Fyak:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=u(n("ZTPi")),r=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},l=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("AUBz");var o=n("q1tI"),i=u(o),s=u(n("AubP")),c=u(n("aABL"));function u(e){return e&&e.__esModule?e:{default:e}}n("6JOy"),n("js5m");var f=a.default.TabPane,d=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.changeTab=function(e){n.setState({activeKey:e})},n.changeCommitFunc=function(e){var t=n.props.changeCommitFunc;t&&t(e)},n.state={activeKey:"1"},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),l(t,[{key:"render",value:function(){var e=this.props.match.params,t=e.projectsId,n=e.owner,l=this.props,o=l.comparesData,u=void 0===o?{}:o,d=l.limit,p=u.commits,m=u.diff,h=u.commits_count,g=this.state.activeKey;return p&&0===p.length||!m?"":i.default.createElement("div",{className:"main mergeRequest",style:{paddingTop:"0px"}},i.default.createElement(a.default,{activeKey:g,className:"custom-commit-tabs",animated:!1,onChange:this.changeTab},p&&p.length>0&&i.default.createElement(f,{tab:i.default.createElement("span",null,i.default.createElement("span",{className:"font-16"},"提交"),h>0&&i.default.createElement("span",{className:"tabNum"},h)),key:"1"},i.default.createElement(s.default,r({},this.props,{commits:p,total:h,limit:d,changeCommitFunc:this.changeCommitFunc,projectsId:t,owner:n}))),m&&m.files&&m.files.length>0&&i.default.createElement(f,{tab:i.default.createElement("span",null,i.
|