forgeplus/public/react/build/static/js/41.8a04d797.chunk.js

1 line
8.4 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[41],{"0Cz8":function(e,t,n){var a=n("Xi7e"),r=n("ebwN"),o=n("e4Nc");e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var i=n.__data__;if(!r||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(i)}return n.set(e,t),this.size=n.size,this}},"0Rql":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAQCAYAAABtPJ3XAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALKADAAQAAAABAAAAEAAAAACYv7IkAAABuElEQVRIDdVWr0/DQBT+ujQowgSZwAAKQkhAoAiGTBT2B+ARM/wIAQx2dgYICdRU4PkDBhM4goYEgwODWBBDIjje17VJV9rudkdIeMmt69137333+n6cg1+StR01L6rqMjwFTFKtA7zKoy0juDl3njhnK6LTTjYaauSjg2PRsqUUSlnaHAdfMu+PVXB41XA+szC6c1aESbbbQQsKVSGF2gqwvgxMTfTMv7wB1/dA6w6Qw9Dlt+UKajakXd2TZeFCzwrZ8TJwtAkszvSjZqcBjtUloHkJvHdRjb7Gbj9S/83Yw1HMPoqpUnPvJ9k0hYdnOdRZOMvwWDCN6cyYSxvLea8zZhkGac9m4YkhNopzJqeR2BD2aJExqysJbLhXd18SZ0w4Ll1xgiWV5v2PsfHePFzRvOtth/lbhMleY9abisKoqV1jD8dcWbp0ZRhsnk63fcEKOrxIlTiRb7PPOsvSpSPEUsTiqVSJg97bcL82Hg7YwdgUWLIGCTHEco9gg0H4vHVjwlEd9ZkBbApFpLlGTJQtvmkN5iGsOh3vBtKa59jB2BR0WjP30LCpGMVv0ti/uvwkif/V9fIbUzmWMlmEs/gAAAAASUVORK5CYII="},"6sVZ":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},"77Zs":function(e,t,n){var a=n("Xi7e");e.exports=function(){this.__data__=new a,this.size=0}},B8du:function(e,t){e.exports=function(){return!1}},BPxw:function(e,t,n){},DSRE:function(e,t,n){(function(e){var a=n("Kz5y"),r=n("B8du"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,c=i&&i.exports===o?a.Buffer:void 0,u=(c?c.isBuffer:void 0)||r;e.exports=u}).call(this,n("YuTi")(e))},JHRd:function(e,t,n){var a=n("Kz5y").Uint8Array;e.exports=a},Kwxn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,r=n("q1tI"),o=(a=r)&&a.__esModule?a:{default:a},i=n("eO8H");n("dEUZ"),t.default=function(e){var t=e.tab,n=e.owner,a=e.projectsId;return o.default.createElement("ul",{className:"subMenu"},o.default.createElement(i.Link,{to:"/"+n+"/"+a+"/tags",className:"tags"===t?"active":""},"标签"),o.default.createElement(i.Link,{to:"/"+n+"/"+a+"/releases",className:"releases"===t?"active":""},"发行版"))}},L8xA:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},MMmD:function(e,t,n){var a=n("lSCD"),r=n("shjB");e.exports=function(e){return null!=e&&r(e.length)&&!a(e)}},PhNK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.truncateCommitId=function(e){return e&&e.length>11?e.substring(0,10):e},t.timeFormat=function(e){var t=new Date(1e3*e),n=t.getHours()<10?"0".concat(t.getHours()):t.getHours(),a=t.getMinutes()<10?"0".concat(t.getMinutes()):t.getMinutes();return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" "+n+":"+a}},"UNi/":function(e,t){e.exports=function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}},VaNO:function(e,t){e.exports=function(e){return this.__data__.has(e)}},b80T:function(e,t,n){var a=n("UNi/"),r=n("03A+"),o=n("Z0cm"),i=n("DSRE"),c=n("wJg7"),u=n("c6wG"),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),s=!n&&r(e),f=!n&&!s&&i(e),d=!n&&!s&&!f&&u(e),A=n||s||f||d,g=A?a(e.length,String):[],m=g.length;for(var p in e)!t&&!l.call(e,p)||A&&("length"==p||f&&("offset"==p||"parent"==p)||d&&("buffer"==p||"byteLength"==p||"byteOffset"==p)||c(p,m))||g.push(p);return g}},c6wG:function(e,t,n){var a=n("dD9F"),r=n("sEf8"),o=n("mdPL"),i=o&&o.isTypedArray,c=i?r(i):a;e.exports=c},dD9F:function(e,t,n){var a=n("NykK"),r=n("shjB"),o=n("ExA7"),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!i[a(e)]}},dEUZ:function(e,t,n){},fmRc:function(e,t,n){var a=n("Xi7e"),r=n("77Zs"),o=n("L8xA"),i=n("gCq4"),c=n("VaNO"),u=n("0Cz8");function l(e){var t=this.__data__=new a(e);this.size=t.size}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=c,l.prototype.set=u,e.exports=l},gCq4:function(e,t){e.exports=function(e){return this.__data__.get(e)}},kekF:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},mdPL:function(e,t,n){(function(e){var a=n("WFqU"),r=t&&!t.nodeType&&t,o=r&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===r&&a.process,c=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=c}).call(this,n("YuTi")(e))},n5qf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=b(n("W9HT")),r=b(n("wCAj")),o=b(n("3S7+")),i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,r=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(a=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){r=!0,o=e}finally{try{!a&&c.return&&c.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("04bd"),n("mbEz"),n("TfFZ");var c=n("q1tI"),u=b(c),l=b(n("Kwxn")),s=b(n("vDqi")),f=n("eO8H"),d=n("PhNK"),A=n("sYIF"),g=b(n("2CTR"));n("BPxw");var m=b(n("0Rql")),p=b(n("wd/R"));function b(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,c.useState)(void 0),n=i(t,2),b=n[0],h=n[1],v=(0,c.useState)(!0),y=i(v,2),j=y[0],E=y[1],_=e.match.params,x=_.projectsId,w=_.owner;(0,c.useEffect)((function(){if(x){var e="/"+w+"/"+x+"/tags.json";s.default.get(e).then((function(e){e&&(h(e.data),E(!1))})).catch((function(e){}))}}),[w,x]);var I=[{title:"标签名",dataIndex:"name",key:1,ellipsis:!0,width:"200px",render:function(e,t){return u.default.createElement("div",{className:"tagBranch"},u.default.createElement(f.Link,{className:"hover tagClass",to:"/"+w+"/"+x+"/tree/"+t.name},t.name))}},{title:"创建时间",dataIndex:"time_ago",key:2,ellipsis:!0,render:function(e,t){return u.default.createElement("span",{className:"color-grey-3 tagModel"},t.tagger&&u.default.createElement(o.default,{placement:"top",title:t.tagger.name},t.tagger.id?u.default.createElement(f.Link,{className:"mr3 tagModelImg",to:"/"+t.tagger.login},u.default.createElement("img",{src:(0,A.getImageUrl)("/"+(t.tagger&&t.tagger.image_url)),alt:""})):u.default.createElement("span",{className:"mr3 tagModelImg",style:{cursor:"default"}},u.default.createElement("img",{src:(0,A.getImageUrl)("/"+(t.tagger&&t.tagger.image_url)),alt:""}))),u.default.createElement("span",null,"创建于",e))}},{title:"提交ID",dataIndex:"id",key:3,ellipsis:!0,render:function(e,t){return u.default.createElement(o.default,{placement:"top",title:"最后提交日期:"+(t.created_at_unix?(0,p.default)(1e3*t.created_at_unix).format("YYYY-MM-DD"):"")},u.default.createElement("img",{src:m.default,alt:"提交ID",width:"22px",className:"mr4"}),u.default.createElement(f.Link,{className:"hover color-blue",to:"/"+w+"/"+x+"/commits/"+(0,d.truncateCommitId)(""+t.id)},(0,d.truncateCommitId)(t.id)))}},{title:"描述信息",dataIndex:"message",key:4,ellipsis:!0,render:function(e,t){return t.message||"--"}},{title:"下载",dataIndex:"stage_type",key:5,ellipsis:!0,align:"center",width:"204px",render:function(e,t){return u.default.createElement(u.default.Fragment,null,u.default.createElement("a",{href:""+t.tarball_url,download:!0,className:"btn-83"},u.default.createElement("i",{className:"iconfont icon-xiazai-icon font-16 mr5"}),"TAR"),u.default.createElement("a",{href:""+t.zipball_url,download:!0,className:"btn-83"},u.default.createElement("i",{className:"iconfont icon-xiazai-icon font-16 mr5"}),"ZIP"))}}];return u.default.createElement("div",null,u.default.createElement(l.default,{tab:"tags",projectsId:x,owner:w}),u.default.createElement(a.default,{spinning:j},u.default.createElement("div",{className:"tagSpin"},b&&b.length>0&&u.default.createElement(r.default,{className:"tagTable",dataSource:b,columns:I,pagination:!1}),b&&0===b.length&&u.default.createElement(g.default,{_html:"暂无数据~"}))))}},sEf8:function(e,t){e.exports=function(e){return function(t){return e(t)}}},zZ0H:function(e,t){e.exports=function(e){return e}}}]);