build/static/js/85.68b6ea23.chunk.js

1 line
13 KiB
JavaScript
Raw Normal View History

2022-12-08 16:50:44 +08:00
(this.webpackJsonp=this.webpackJsonp||[]).push([[85],{"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="},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}},"Rs/d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,l,r=(a=["\n display:flex;\n font-weight: bold;\n ","\n align-items: center;\n & img{\n width:30px;\n height:30px;\n border-radius:50%;\n }\n ","\n "],l=["\n display:flex;\n font-weight: bold;\n ","\n align-items: center;\n & img{\n width:30px;\n height:30px;\n border-radius:50%;\n }\n ","\n "],Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(l)}}))),i=c(n("q1tI")),o=c(n("vOnD")),d=n("eO8H");function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.url,n=e.name,a=e.column,l=e.id,c=e.login,s=o.default.span(r,a&&"flex-direction: column;text-align:center;",!a&&"\n & span{\n margin-left:8px;\n }");return l?i.default.createElement(d.Link,{to:"/"+c},i.default.createElement(s,null,t&&i.default.createElement("img",{src:t,alt:""}),i.default.createElement("span",null,n))):i.default.createElement(s,null,t&&i.default.createElement("img",{src:t,alt:""}),i.default.createElement("span",null,n))}},VPG4:function(e,t,n){},aABL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s(n("3S7+")),l=s(n("CFYs")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],a=!0,l=!1,r=void 0;try{for(var i,o=e[Symbol.iterator]();!(a=(i=o.next()).done)&&(n.push(i.value),!t||n.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{!a&&o.return&&o.return()}finally{if(l)throw r}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("TfFZ"),n("D8SU");var i=n("q1tI"),o=s(i),d=n("PhNK"),c=n("spEH");function s(e){return e&&e.__esModule?e:{default:e}}n("js5m"),n("VPG4"),t.default=function(e){var t=e.data,n=e.history,s=e.owner,u=e.projectsId,f=e.parentsSha,m=(0,i.useState)(t&&t.files),p=r(m,2),A=p[0],g=p[1],E=(0,i.useState)("复制文件路径"),b=r(E,2),h=b[0],v=b[1],x=(0,i.useState)(!1),w=r(x,2),y=w[0],N=w[1];function k(e,t,n){if(!n){var a=A.concat();a[t].flag=!e,a.splice(),g(a)}}(0,i.useEffect)((function(){t&&g(t.files)}),[t]),(0,i.useEffect)((function(){document.addEventListener("click",(function(){N(!1)}))}),[]);var C=o.default.createElement("div",{className:"folders"},o.default.createElement("div",{className:"folderList"},A&&A.map((function(e,t){return o.default.createElement("a",{href:"#value"+t},o.default.createElement(c.FlexAJ,{className:"filesInfo",key:t,onClick:function(){e.flag&&k(e.flag,t,e.isBin),N(!1)}},o.default.createElement(c.AlignCenter,null,o.default.createElement("i",{className:"iconfont icon-wenjianicon mr4"}),o.default.createElement("span",{className:"cursor-pointer","data-clipboard-text":e.name},e.name)),o.default.createElement("div",{