1 line
60 KiB
JavaScript
1 line
60 KiB
JavaScript
(this.webpackJsonp=this.webpackJsonp||[]).push([[48],{"/oTB":function(e,t,a){},"3Diz":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(a("jsC+")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("aIZi");var l=a("q1tI"),o=s(l);a("MN5C");var u=s(a("cJAJ")),i=a("i8i4"),c=a("sYIF");function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.projectsId,a=e.branch,s=e.owner,f=e.changeBranch,d=e.branchList,m=e.tagflag,p=void 0===m||m,h=(0,l.useState)(a),v=r(h,2),g=v[0],E=v[1],y=(0,l.useState)(!1),b=r(y,2),w=b[0],_=b[1],N=(0,l.useRef)(null),x=(0,l.useRef)(null);(0,l.useEffect)((function(){document.addEventListener("click",j,!1)}),[]);var j=function(e){var t=e.target,a=(0,i.findDOMNode)(N.current),n=(0,i.findDOMNode)(x.current);if(a&&n){var r=a.contains(t),l=n.contains(t);r||l||_(!1)}};(0,l.useEffect)((function(){E(a)}),[a]);var k=o.default.createElement("div",{ref:N},o.default.createElement(u.default,{visible:w,changeBranch:function(e){_(!1);var t=(0,c.turnbar)(e);f(t)},tagflag:p,projectsId:t,owner:s,branchList:d}));return o.default.createElement(n.default,{placement:"bottomLeft",visible:w,overlay:k,overlayClassName:"branch-tagBox-list",trigger:["click"]},o.default.createElement("div",{className:"branch-tagBox",ref:x,onClick:function(){return _(!w)}},o.default.createElement("span",{className:"color-grey-9 mr3 ml8"},o.default.createElement("i",{className:"iconfont icon-fenzhi2 font-18"})),o.default.createElement("span",{className:"ant-dropdown-link task-hide",style:{fontWeight:"500",minWidth:"45px",maxWidth:"270px"}},g),o.default.createElement("i",{className:"showtag iconfont icon-sanjiaoxing-down font-15 color-grey-9 mr5 ml5 mt1"})))}},"760K":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=a("q1tI"),l=(n=r)&&n.__esModule?n:{default:n},o=a("sYIF");t.default=function(e){var t=e.treeValuePath,a=e.returnUlr,n=e.returnMain,r=e.getPathUrl,u=e.identifier;return l.default.createElement("li",{className:"listtablepath"},l.default.createElement("p",null,l.default.createElement("a",{onClick:n,className:"color-blue"},u),t.map((function(e,n){return l.default.createElement(l.default.Fragment,null,n===t.length-1?l.default.createElement("span",{className:"color-grey-6 subFileName",key:n},(0,o.returnbar)(e)):l.default.createElement("a",{onClick:function(){return a(""+r(t,n+1))},className:"color-blue subFileName"},(0,o.returnbar)(e)))}))))}},BtkW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(a("W9HT")),r=v(a("2/Rp")),l=v(a("CtXQ")),o=v(a("9yH6")),u=v(a("Vl3Y")),i=v(a("5rEg")),c=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}();a("04bd"),a("L/Qf"),a("2oDE"),a("K4yd"),a("tULf"),a("1vPl");var s=a("q1tI"),f=v(s),d=a("sYIF"),m=a("eO8H");a("XmZk");var p=a("J66h"),h=v(a("vDqi"));function v(e){return e&&e.__esModule?e:{default:e}}var g=i.default.TextArea,E=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 a=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 a.componentDidMount=function(){var e=a.props.descName;e&&a.props.form.setFieldsValue({desc:e})},a.componentDidUpdate=function(e){var t=a.props.descName;e&&t&&e.descName!==t&&a.props.form.setFieldsValue({desc:t})},a.changeSubmittype=function(e){a.setState({submitType:e.target.value})},a.changeFileName=function(e){a.setState({filename:e.target.value})},a.subMitFrom=function(){var e=a.props,t=e.filepath,n=e.content,r=e.editor_type,l=e.checkName,o=a.props.match.params,u=o.branch,i=o.projectsId,c=o.owner,s=a.state,f=s.submitType,m=s.filename;a.setState({isSpin:!0});var v="upload"===r?t:t.substr(1);a.props.form.validateFieldsAndScroll((function(e,t){if(e||l)a.setState({isSpin:!1});else{var o="/"+c+"/"+i+"/create_file.json";h.default.post(o,{filepath:m||v,branch:(0,d.returnbar)(u),new_branch:"1"===f?t.branchname:void 0,content:"upload"===r?n:p.Base64.encode(n),message:t.desc}).then((function(e){if(a.setState({isSpin:!1}),e.data&&e.data.name){if(a.props.showNotification("文件新建成功!"),"1"===f){var n=a.props.getDetail;n&&n()}var r="/"+c+"/"+i+(t.branchname?"/tree/"+(0,d.turnbar)(t.branchname):u?"/tree/"+(0,d.turnbar)(u):"");a.props.history.push(r)}})).catch((function(e){a.setState({isSpin:!1}),console.log(e)}))}}))},a.UpdateFile=function(){a.setState({isSpin:!0});var e=a.props,t=e.branch,n=e.detail,r=e.content,l=e.currentBranch,o=e.checkName,u=a.props.match.params,i=u.projectsId,c=u.owner,s=a.state.submitType,f="/"+c+"/"+i+"/update_file.json",m=l||t;a.props.form.validateFieldsAndScroll((function(e,u){e||o?a.setState({isSpin:!1}):h.default.put(f,{filepath:n.path,branch:"1"===s?void 0:(0,d.returnbar)(m),new_branch:"1"===s?u.branchname:void 0,content:r,sha:n.sha,message:u.desc}).then((function(e){if(a.setState({isSpin:!1}),e.data&&1===e.data.status){var n=l||t,r="/"+c+"/"+i+(u.branchname?"/tree/"+(0,d.turnbar)(u.branchname):n?"/tree/"+(0,d.turnbar)(n):"");a.props.history.push(r),a.props.showNotification("文件修改成功!")}})).catch((function(e){a.setState({isSpin:!1}),console.log(e)}))}))},a.checkBranchName=function(e,t,a){if(t||a(),t){if(/\\/g.test(t))a(f.default.createElement("span",null,"分支名不能包含下列任何字符:^*\\/"));else for(var n=0;n<"^*/".length;n++){var r="^*/"[n];if(t.indexOf(r)>-1)return void a(f.default.createElement("span",null,"分支名不能包含下列任何字符:^*\\/"))}}a()},a.state={submitType:"0",filename:"",isSpin:!1},a}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),c(t,[{key:"render",value:function(){var e=this,t=this.state,a=t.submitType,c=t.filename,s=t.isSpin,p=this.props.form.getFieldDecorator,h=this.props.match.params,v=h.branch,E=h.projectsId,y=h.owner,b=this.props,w=b.current_user,_=b.filepath,N=b.projectDetail,x=b.currentBranch,j=this.props.editor_type,k=x||v;return f.default.createElement("div",null,f.default.createElement("span",{className:"df",style:{alignItems:"center"}},f.default.createElement(m.Link,{to:"/"+(w&&w.login),className:"show-user-link"},f.default.createElement("img",{src:(0,d.getImageUrl)("/"+(w&&w.image_url)),alt:"",className:"screwImg"}),f.default.createElement("span",{className:"color-grey-3 ver-middle"},w&&w.username,":")),f.default.createElement("span",{className:"color-grey-8"},"提交变更")),f.default.createElement(n.default,{spinning:s},f.default.createElement("div",{className:"userScrew"},f.default.createElement("div",{className:"screwPanel"},f.default.createElement(u.default,null,f.default.createElement(u.default.Item,{style:{display:"upload"===j?"block":"none"}},p("path",{rules:[]})(f.default.createElement("div",{className:"setInputAddon"},f.default.createElement(i.default,{addonBefore:"/"+(N&&N.identifier)+"/",value:c||_,onChange:this.changeFileName,placeholder:"文件路径..."})))),f.default.createElement(u.default.Item,null,p("desc",{rules:[{required:!0,message:"请添加描述信息"}]})(f.default.createElement(g,{placeholder:"必填,描述主要修改类型和内容",authSize:{minRows:3,maxRows:5}}))),f.default.createElement(o.default.Group,{value:a,onChange:this.changeSubmittype},f.default.createElement(o.default,{value:"0",className:"mb10"},f.default.createElement("i",{className:"iconfont icon-banbenku font-16 mr5"}),"直接提交至",f.default.createElement("span",{className:"color-orange"},(0,d.returnbar)(k)),"分支"),f.default.createElement(o.default,{value:"1"},f.default.createElement(l.default,{type:"pull-request",className:"mr5"}),"为此提交创建一个",f.default.createElement("span",{className:"font-bd"},"新的分支"),"并发起合并请求")),"1"===a?f.default.createElement("div",{className:"mt15"},f.default.createElement(u.default.Item,{style:{paddingLeft:"24px"}},p("branchname",{rules:[{required:!0,message:"请输入分支名称"},{validator:this.checkBranchName}]})(f.default.createElement(i.default,{placeholder:"请输入分支名称",style:{width:"220px"}})))):""))),f.default.createElement("div",{className:"mt20"},f.default.createElement(r.default,{type:"primary",onClick:"update"===j?this.UpdateFile:this.subMitFrom,className:"mr30"},"提交变更"),f.default.createElement(r.default,{type:"primary grey",onClick:function(){e.props.history.push("/"+y+"/"+E)},className:"mr20"},"取消"))))}}]),t}(s.Component),y=u.default.create({name:"UserSubmitForm"})(E);t.default=y},Eitf:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(a("JsLm")),r=v(a("NJEC")),l=v(a("jsC+")),o=v(a("2fM7")),u=v(a("W9HT")),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}();a("mJp1"),a("k994"),a("aIZi"),a("8QGh"),a("04bd");var s=a("q1tI"),f=v(s);a("85A0");var d=v(a("vDqi")),m=v(a("R/Rt")),p=v(a("bjH3")),h=v(a("mJXK"));function v(e){return e&&e.__esModule?e:{default:e}}var g=window.$;var E=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 a=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 a.componentDidMount=function(){window.scrollTo(0,0);var e=a.props,t=e.detail;e.mdFlag;a.setState({value:t.content}),a.languages_total()},a.componentDidUpdate=function(e){var t=(a.props&&a.props.detail).replace_content,n=e.detail&&e.detail.replace_content;t&&n&&n!==t&&a.setState({description:t})},a.languages_total=function(){var e=a.props.detail.path.split("/").pop().split(".").pop(),t=[],n="javascript",r={apex:["apex","apxc"],azcli:["azcli"],bat:["bat"],clojure:["clj"],coffee:["coffee"],cpp:["cpp"],csharp:["cs"],csp:["csp"],css:["css"],dockerfile:["dockerfile","docker","yml"],fsharp:["fs"],go:["go"],html:["html","htm","erb"],ini:["ini"],java:["java","class"],javascript:["js"],json:["json"],less:["less"],lua:["lua"],markdown:["markdown","md","rmd"],msdax:["dax"],mysql:["sql"],objective:["m","mm","o","out"],perl:["perl"],pgsql:["sql"],php:["php"],postiats:["postiats"],powerquery:[""],powershell:["ps1"],pug:["pug"],python:["py"],r:["r"],razor:["cshtml"],redis:["rdb"],ruby:["rb"],rust:["rs"],sb:["sb"],scheme:["scm","ss"],scss:["scss"],shell:["sh"],solidity:["sol"],sql:["sql"],st:["st"],swift:["swift"],typescript:["ts"],vb:["vbp","frm","frx","bas","cls"],xml:["xml"],yaml:["yml"]};for(var l in r){t.push(l),-1!==r[l].indexOf(e)&&(n=l)}a.setState({languages:t,language:n})},a.select_language=function(e){a.setState({language:e})},a.EditFile=function(e){var t=a.props.onEdit;t&&t(e)},a.DownLoadFile=function(e){var t="/attachments/entries/get_file?download_url="+e;window.open(t)},a.changeMmirror=function(e,t,n){a.setState({value:n})},a.deleteFile=function(){var e=a.props,t=e.branch,n=e.detail,r=a.props.match.params,l=r.projectsId,o=r.owner,u="/"+o+"/"+l+"/delete_file.json";d.default.delete(u,{params:{filepath:n.path,branch:t,sha:n.sha}}).then((function(e){e&&(a.props.showNotification("删除成功!"),a.props.history.push("/"+o+"/"+l))})).catch((function(e){console.log(e)}))},a.updateCode=function(e){a.setState({value:e})},a.onContentChange=function(e){a.setState({description:e})},a.renderMenulist=function(){return a.state.description?g.map(g("#files-md").find("h1,h2,h3,h4,h5,h6"),(function(e,t){var a=e.id,n=e.tagName.replace("H","");return{href:""+("#"+a),text:e.textContent,level:n}})):[]},a.menu=function(){var e=a.renderMenulist();return e&&e.length>0?f.default.createElement(h.default,{menuList:e,hash:a.props.history.location.hash}):f.default.createElement(u.default,null)},a.state={value:void 0,language:void 0,languages:void 0,description:e.detail.replace_content,menuList:void 0},a}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),c(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.readOnly,u=t.detail,c=t.current_user,s=t.isManager,d=t.isDeveloper,h=t.currentBranch,v=t.platform,g=t.md,E=t.type,y=this.state,b=y.language,w=y.languages,_=y.description,N=c&&c.login&&(s||d),x=o.default.Option;return f.default.createElement(f.default.Fragment,null,f.default.createElement(n.default,{className:"griditemAnchor",offsetTop:58},f.default.createElement("div",{className:"griditemCate"},g&&a&&f.default.createElement(l.default,{overlay:this.menu(),trigger:["hover"],overlayClassName:"menuslist"},f.default.createElement("span",{className:"catelogue mr20"},f.default.createElement("i",{className:"iconfont icon-muluicon font-12 mr5"}),f.default.createElement("span",null,"目录"))),f.default.createElement("span",{className:"color-grey-6 font-16"},function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]}(u&&u.size))),f.default.createElement("p",{className:"text-right"},N&&v&&f.default.createElement("div",null,a?f.default.createElement("span",null,u.direct_download?"":f.default.createElement("span",null,f.default.createElement("a",{onClick:function(){return e.DownLoadFile(u.download_url)},className:"ml20"},f.default.createElement("i",{className:"iconfont icon-xiazai1 font-15 color-grey-6"})),2!==E&&f.default.createElement("a",{onClick:function(){return e.EditFile(!1)},className:"ml20"},f.default.createElement("i",{className:"iconfont icon-bianji1 font-15 color-grey-6"})))):f.default.createElement(f.default.Fragment,null,f.default.createElement(o.default,{showSearch:!0,placeholder:"请选择文本语言",style:{width:200},value:b,onChange:this.select_language},f.default.createElement(x,{value:void 0},"请选择文本语言"),w&&w.map((function(e,t){return f.default.createElement(x,{value:e,key:t},e)}))),f.default.createElement("button",{type:"button",className:"ant-btn ant-btn-sm ml20",onClick:function(){return e.EditFile(!0)}},f.default.createElement("span",null,"取 消"))),2!==E&&f.default.createElement(r.default,{title:"确认删除这个文件?",className:"ml20",okText:"确定",cancelText:"取消",onConfirm:this.deleteFile},f.default.createElement("a",null,f.default.createElement("i",{className:"iconfont icon-shanchu font-15 color-grey-6"})))))),f.default.createElement("div",null,u.image_type?f.default.createElement("div",{className:"edu-txt-center pt20 pb20"},f.default.createElement("img",{alt:"",src:u.download_url,style:{maxWidth:"80%"}})):u.direct_download?f.default.createElement("div",{className:"mt20 text-center"},f.default.createElement("a",{href:u.download_url,className:"color-blue font-15"},"下载原始文件")):g&&a?f.default.createElement("div",{className:"files-md",id:"files-md"},f.default.createElement(p.default,{className:"file-md imageLayerParent",value:_,url:this.props.history.location})):f.default.createElement(m.default,i({},this.props,this.state,{language:b||"javascript",filepath:"/"+u.path,content:u.content,readOnly:a,editorType:"update",currentBranch:h,descName:u&&"Update "+u.name}))))}}]),t}(s.Component);t.default=E},FRFo:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=u(a("3S7+")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("TfFZ");var l=a("q1tI"),o=u(l);function u(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.beforeText,a=e.afterText,u=e.className,i=e.inputId,c=e.timeOut,s=(0,l.useState)((function(){return t})),f=r(s,2),d=f[0],m=f[1],p=(0,l.useCallback)((function(){var e=document.querySelector("#"+i);e?(e.select(),document.execCommand("copy")&&document.execCommand("copy"),document.getSelection().removeAllRanges(),m(a),c&&setTimeout((function(){m(t)}),1500)):console.error("您的CopyTool未设置正确的inputId")}),[]);return o.default.createElement(n.default,{placement:"top",title:d,onVisibleChange:function(){m(t)}},o.default.createElement("i",{className:"iconfont icon-fuzhiicon "+u,style:{color:"#466aff"},onClick:p}))}i.defaultProps={beforeText:"复制链接",afterText:"复制成功",className:"",inputId:"copyText",timeOut:!0},t.default=(0,l.memo)(i)},KhU6:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(a("/wGt")),r=f(a("W9HT")),l=f(a("MJZm")),o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("Re5i"),a("04bd"),a("dlhN");var u=a("q1tI"),i=f(u),c=a("sYIF");a("KkuB");var s=f(a("vDqi"));function f(e){return e&&e.__esModule?e:{default:e}}var d=l.default.TreeNode,m=l.default.DirectoryTree;t.default=function(e){var t=e.visible,a=e.onClose,l=e.branch,f=e.owner,p=e.projectsId,h=e.history,v=e.name,g=e.list,E=(0,u.useState)(void 0),y=o(E,2),b=y[0],w=y[1],_=(0,u.useState)(!0),N=o(_,2),x=N[0],j=N[1],k=(0,u.useState)(!0),S=o(k,2),O=S[0],I=S[1];return(0,u.useEffect)((function(){var e;t&&O&&(g?(w(g),j(!1)):(e="/"+f+"/"+p+"/entries.json",s.default.get(e,{params:{ref:l}}).then((function(e){e&&w(e.data.entries),j(!1)})).catch((function(e){}))),I(!1))}),[t]),i.default.createElement(n.default,{placement:"left",visible:t,closable:!1,onClose:a,width:"320px",maskStyle:{backgroundColor:"rgba(0,0,0,0.09)"}},i.default.createElement(r.default,{spinning:x},i.default.createElement("div",{className:"drawerHead"},i.default.createElement("p",{className:"font-20"},v),i.default.createElement("p",null,i.default.createElement("i",{class:"iconfont icon-fenzhi2 font-18 color-grey-9 mr3"}),l)),i.default.createElement(m,{loadData:function(e){return new Promise((function(t){if(e.props.children)t();else{var a=[],n="/"+f+"/"+p+"/sub_entries.json";s.default.get(n,{params:{filepath:e.props.dataRef.path,ref:l,type:"dir"}}).then((function(e){e&&(a=e.data.entries)})).catch((function(e){})),setTimeout((function(){e.props.dataRef.children=a,w([].concat(function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}return Array.from(e)}(b))),t()}),2e3)}}))},onSelect:function(e,t){var n=t.node.props.dataRef;if("file"===n.type){a();var r=(0,c.turnbar)(l);h.push("/"+f+"/"+p+"/tree/"+r+"/"+n.path)}}},b&&function e(t){return t&&t.length>0&&t.map((function(t){return i.default.createElement(d,{title:t.name,key:t.key,dataRef:t,isLeaf:"file"===t.type},e(t.children))}))}(b))))}},KusB:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=a("q1tI"),l=(n=r)&&n.__esModule?n:{default:n},o=a("eO8H"),u=a("PhNK");var i={submodule:"icon-file-submodule font-17",file:"icon-wenjian6 font-15 color-blue-file",dir:"icon-wenjianjia4 font-15 color-blue_4C"};t.default=function(e){var t,a=e.item,n=e.goToSubRoot,r=e.owner,c=e.projectsId,s=e.platform;return l.default.createElement("li",null,l.default.createElement("span",null,!s&&a.image_type?l.default.createElement("span",null,l.default.createElement("i",{className:"iconfont "+i[""+a.type]+" mr8"}),a.name):l.default.createElement("a",{onClick:function(){return n(a.path,a.type,a.name)},className:"submodule"===a.type&&"submoduleStyle"},l.default.createElement("i",{className:"iconfont "+i[""+a.type]+" mr8"}),a.name)),l.default.createElement("span",{title:"init project"},l.default.createElement(o.Link,{to:"/"+r+"/"+c+"/commits/"+(0,u.truncateCommitId)(""+(a.commit&&a.commit.sha)),title:a.commit&&a.commit.message},((t=a.commit&&a.commit.message).indexOf("\n")>0&&t.split("\n"))[0])),l.default.createElement("span",{title:a.commit&&a.commit.created_at},a.commit&&a.commit.time_from_now))}},MN5C:function(e,t,a){},NAAl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(a("kLXV")),r=i(a("Vl3Y")),l=i(a("5rEg"));a("k3Gp"),a("tULf"),a("1vPl");var o=a("q1tI"),u=i(o);function i(e){return e&&e.__esModule?e:{default:e}}a("dEUZ");var c=l.default.TextArea;t.default=r.default.create()((0,o.forwardRef)((function(e){var t=e.form,a=e.visible,i=e.onCancel,s=e.onOk,f=e.desc,d=e.website,m=e.lesson_url,p=t.getFieldDecorator,h=t.validateFields,v=t.setFieldsValue;return(0,o.useEffect)((function(){(f||d)&&v({website:d,desc:f,lesson_url:m})}),[f,d]),u.default.createElement(n.default,{title:"修改信息",closable:!1,visible:a,centered:!0,onCancel:i,onOk:function(){h((function(e,t){e||(i(),s(t.desc,t.website,t.lesson_url))}))},okText:"确定",cancelText:"取消",width:"400px",className:"descmodal"},u.default.createElement(r.default,null,u.default.createElement(r.default.Item,{label:"项目简介"},p("desc",{rules:[]})(u.default.createElement(c,{placeholder:"请输入项目简介",rows:4,maxLength:200}))),u.default.createElement(r.default.Item,{label:"website"},p("website",{rules:[]})(u.default.createElement(l.default,{placeholder:"website链接",maxLength:200}))),u.default.createElement(r.default.Item,{label:"实践课程"},p("lesson_url",{rules:[]})(u.default.createElement(l.default,{placeholder:"实践课程链接",maxLength:200})))))})))},OZBj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(a("JsLm")),r=d(a("jsC+")),l=d(a("W9HT")),o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("mJp1"),a("aIZi"),a("04bd");var u=a("q1tI"),i=d(u),c=d(a("bjH3")),s=a("spEH"),f=d(a("mJXK"));function d(e){return e&&e.__esModule?e:{default:e}}var m=window.$;t.default=function(e){var t=e.operate,a=e.history,d=e.readme,p=e.ChangeFile,h=(0,u.useState)(void 0),v=o(h,2),g=v[0],E=v[1],y=(0,u.useState)(void 0),b=o(y,2),w=b[0],_=b[1];return(0,u.useEffect)((function(){d&&d.replace_content?_(d.replace_content):_(void 0)}),[d]),(0,u.useEffect)((function(){a.location.pathname;var e=m.map(m("#readme").find("h1,h2,h3,h4,h5,h6"),(function(e,t){var a=e.id,n=e.tagName.replace("H","");return{href:""+("#"+a),text:e.textContent,level:n}}));E(e)}),[w]),i.default.createElement("div",{className:"commonBox readBox",id:"readme"},i.default.createElement(n.default,{offsetTop:58},i.default.createElement("div",{className:"commonBox-title boxTitle"},i.default.createElement(s.AlignCenter,null,i.default.createElement(r.default,{overlay:g&&g.length>0?i.default.createElement(f.default,{menuList:g,hash:a.location.hash}):i.default.createElement(l.default,null),trigger:["hover"],overlayClassName:"menuslist"},i.default.createElement("span",{className:"catelogue"},i.default.createElement("i",{className:"iconfont icon-muluicon font-12 mr5"}),i.default.createElement("span",null,"目录"))),i.default.createElement("span",{className:"commonBox-title-read"},i.default.createElement("a",{href:"#readme "},"README.md"))),t?i.default.createElement("a",{className:"ml20 pull-right",onClick:function(){return p(d&&d.path,!1)}},i.default.createElement("i",{className:"iconfont icon-a-bianji font-17 color-grey-6"})):"")),w&&i.default.createElement("div",{className:"commonBox-info"},i.default.createElement(c.default,{className:"break_word_comments imageLayerParent",value:w,url:a.location})))}},PhNK:function(e,t,a){"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),a=t.getHours()<10?"0".concat(t.getHours()):t.getHours(),n=t.getMinutes()<10?"0".concat(t.getMinutes()):t.getMinutes();return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" "+a+":"+n}},"R/Rt":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),l=a("q1tI"),o=c(l),u=a("a2PE");a("McUL"),a("+dQi"),a("S6bl"),a("ewDg");var i=c(a("BtkW"));function c(e){return e&&e.__esModule?e:{default:e}}a("XmZk"),a("lr0e");var s=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 a=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 a.componentDidUpdate=function(e){e&&a.props&&a.props.content!==e.content&&a.setState({editorValue:a.props.content})},a.changeEditor=function(e,t){a.setState({changeValue:e.getValue()})},a.editorDidMount=function(e,t){a.props.goLine&&e.scrollIntoView({line:a.props.goLine,char:1},200)},a.editorDidMount=a.editorDidMount.bind(a),a.state={editorValue:a.props.content,changeValue:a.props.content,prevHeight:0},a}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.state,t=e.editorValue,a=e.changeValue,r=this.props,l=r.readOnly,c=r.editorType,s=r.currentBranch,f=r.descName,d=r.checkName,m={lineNumbers:"on",lineWrapping:!0,selectOnLineNumbers:!0,lineHeight:24,renderLineHighlight:"line",revealHorizontalRightPadding:5,placeholder:"请输入内容",readOnly:l,cursorStyle:l?"underline-thin":"line",folding:!0,foldingStrategy:"indentation",automaticLayout:!0,overviewRulerBorder:!1,scrollBeyondLastLine:!1,styleActiveLine:!0,minimap:{enabled:!1}};return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"editorBorderBox"},o.default.createElement(u.UnControlled,{placeholder:"请输入内容",value:t,options:m,onChange:this.changeEditor,onUpdate:this.editorDidMount})),!l&&o.default.createElement("div",{className:"editorBorderSubmitBox",style:{padding:"20px"}},o.default.createElement(i.default,n({},this.props,this.state,{filepath:""+this.props.filepath,content:a,editor_type:c,currentBranch:s,descName:f,checkName:d}))))}}]),t}(l.Component);t.default=s},"Rs/d":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r,l=(n=["\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 "],r=["\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(n,{raw:{value:Object.freeze(r)}}))),o=c(a("q1tI")),u=c(a("vOnD")),i=a("eO8H");function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.url,a=e.name,n=e.column,r=e.id,c=e.login,s=u.default.span(l,n&&"flex-direction: column;text-align:center;",!n&&"\n & span{\n margin-left:8px;\n }");return r?o.default.createElement(i.Link,{to:"/"+c},o.default.createElement(s,null,t&&o.default.createElement("img",{src:t,alt:""}),o.default.createElement("span",null,a))):o.default.createElement(s,null,t&&o.default.createElement("img",{src:t,alt:""}),o.default.createElement("span",null,a))}},XmZk:function(e,t,a){},YDKw:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r=a("q1tI"),l=(n=r)&&n.__esModule?n:{default:n},o=a("spEH"),u=a("eO8H");t.default=function(e){var t=e.owner,a=e.projectsId,n=e.releaseVersions,r=e.distribution;return l.default.createElement("div",null,l.default.createElement(u.Link,{to:"/"+t+"/"+a+"/releases",className:"font-16 color-ooo hoverA"},l.default.createElement("span",null,"发行版"),n&&n.total_count>0&&l.default.createElement("span",{className:"infoCount"},n.total_count)),n&&n.total_count>0?n.list.map((function(e,n){return 0===n&&l.default.createElement(o.AlignTop,{className:"mt10"},l.default.createElement("div",null,l.default.createElement("p",{className:"font-16 color-grey-6",style:{display:"flex",alignItems:"center"}},l.default.createElement(u.Link,{to:{pathname:"/"+t+"/"+a+"/releases",query:{turnFromNew:!0}},style:{maxWidth:"200px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},e.name),l.default.createElement("span",{className:"font-12 laterest ml5"},"最新")),l.default.createElement("p",{className:"color-grey-3 font-12"},e.created_at)))})):l.default.createElement("div",{className:"mt8"},"您暂未发布任何版本",r&&l.default.createElement(u.Link,{className:"color-blue ml20",to:{pathname:"/"+t+"/"+a+"/releases/new",state:{stable:!0}}},"创建新版本")))}},YIv0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(a("PArb")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("qNb/");var l=a("q1tI"),o=c(l),u=a("spEH"),i=c(a("vDqi"));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.owner,a=e.projectsId,c=(0,l.useState)(void 0),s=r(c,2),f=s[0],d=s[1];function m(){for(var e="#",t=["1","2","3","4","4","5","6","7","8","9","a","b","c","d","e","f"],a=0;a<6;a++){e+=t[parseInt(16*Math.random())]}return e}return(0,l.useEffect)((function(){var e;e="/"+t+"/"+a+"/languages.json",i.default.get(e).then((function(e){if(e){var t=e.data;if(t){var a=[];Object.keys(t).map((function(e,n){a.push({name:e,percent:t[e],color:m()})})),d(a)}}})).catch((function(e){}))}),[]),f&&f.length>0?o.default.createElement("div",null,o.default.createElement(n.default,null),o.default.createElement("p",{className:"font-16 color-ooo aboutSubTitle"},"开发语言"),o.default.createElement("div",{className:"progress"},f&&f.map((function(e,t){return o.default.createElement("span",{style:{width:e.percent,backgroundColor:e.color}})}))),f&&f.length>0&&o.default.createElement(u.FlexAJ,{className:"progresstip"},f.map((function(e,t){return o.default.createElement("span",null,o.default.createElement("i",{className:"zero",style:{backgroundColor:""+e.color}}),o.default.createElement("span",null,e.name),o.default.createElement("span",null,e.percent))})))):""}},cJAJ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(a("W9HT")),r=f(a("BvKs")),l=f(a("5rEg")),o=f(a("14Xm")),u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("04bd"),a("2WkQ"),a("1vPl");var i=a("q1tI"),c=f(i),s=a("tnhM");function f(e){return e&&e.__esModule?e:{default:e}}function d(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,a){return function n(r,l){try{var o=t[r](l),u=o.value}catch(e){return void a(e)}if(!o.done)return Promise.resolve(u).then((function(e){n("next",e)}),(function(e){n("throw",e)}));e(u)}("next")}))}}t.default=function(e){var t,a,f=(t=d(o.default.mark((function e(t,a){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getBranch)(t,a);case 2:n=e.sent,B(n),H(n),C(!1);case 6:case"end":return e.stop()}}),e,this)}))),function(e,a){return t.apply(this,arguments)}),m=(a=d(o.default.mark((function e(t,a){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getTag)(t,a);case 2:n=e.sent,B(n),H(n),C(!1);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)}),p=e.changeBranch,h=e.tagflag,v=e.projectsId,g=e.owner,E=e.visible,y=(0,i.useState)(void 0),b=u(y,2),w=b[0],_=b[1],N=(0,i.useState)(0),x=u(N,2),j=x[0],k=x[1],S=(0,i.useState)(!0),O=u(S,2),I=O[0],C=O[1],M=(0,i.useState)(void 0),T=u(M,2),P=T[0],B=T[1],L=(0,i.useState)(void 0),A=u(L,2),F=A[0],H=A[1],D=(0,i.useState)("branch"),q=u(D,2),R=q[0],U=q[1];return(0,i.useEffect)((function(){E&&(U("branch"),f(v,g),C(!0))}),[E]),c.default.createElement("div",{className:"overlayBranch"},c.default.createElement("div",{className:"padding15",style:{paddingBottom:"0px"}},c.default.createElement(l.default,{prefix:c.default.createElement("i",{className:"iconfont icon-sousuo_icon1 font-14"}),placeholder:"请输入分支"+(h?"或标签":"")+"名称搜索",autocomplete:"off",className:"OptionsInput",value:w,onChange:function(e){_(e.target.value);var t=e.target.value?P&&P.length>0&&P.filter((function(t){return t.name.indexOf(e.target.value)>-1})):P;H(t)}})),c.default.createElement(r.default,{mode:"horizontal",className:"navUl",selectedKeys:[R],onClick:function(e){U(e.key),C(!0),"branch"===e.key?(f(v,g),k(0)):(m(v,g),k(1))}},c.default.createElement(r.default.Item,{key:"branch"},"分支"),h&&c.default.createElement(r.default.Item,{key:"tag"},"标签")),c.default.createElement(n.default,{spinning:I},c.default.createElement("ul",{className:"OptionsUl",id:"ul-btn"},F&&F.length>0&&F.map((function(e,t){return c.default.createElement("li",{key:t,onClick:function(){return t=e.name,void p(t);var t}},c.default.createElement("a",{className:"task-hide ulALink"},e.name))})),F&&0===F.length&&c.default.createElement("p",{className:"listTips"},"暂无",w,0===j?"分支":"标签","~"))))}},dEUZ:function(e,t,a){},eIPa:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=v(a("diRs")),r=v(a("W9HT")),l=v(a("2/Rp")),o=v(a("14Xm")),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("Aosp"),a("04bd"),a("L/Qf");var c=a("q1tI"),s=v(c),f=a("spEH"),d=a("eO8H"),m=a("sYIF");a("KkuB");var p=a("tnhM"),h=v(a("vDqi"));function v(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t,a,v=(t=o.default.mark((function e(t){var a,n,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(z(!0),0!==(a=_&&_.filter((function(e){return e.login===t}))).length){e.next=13;break}return e.next=5,(0,p.getUser)(t);case 5:n=e.sent,(r=_).push(u({},n)),N(r),W(n),z(!1),e.next=15;break;case 13:W(a[0]),z(!1);case 15:case"end":return e.stop()}}),e,this)})),a=function(){var e=t.apply(this,arguments);return new Promise((function(t,a){return function n(r,l){try{var o=e[r](l),u=o.value}catch(e){return void a(e)}if(!o.done)return Promise.resolve(u).then((function(e){n("next",e)}),(function(e){n("throw",e)}));t(u)}("next")}))},function(e){return a.apply(this,arguments)}),g=e.owner,E=e.projectsId,y=e.currentLogin,b=(0,c.useState)([]),w=i(b,2),_=w[0],N=w[1],x=(0,c.useState)(void 0),j=i(x,2),k=j[0],S=j[1],O=(0,c.useState)(0),I=i(O,2),C=I[0],M=I[1],T=(0,c.useState)(""),P=i(T,2),B=P[0],L=P[1],A=(0,c.useState)(void 0),F=i(A,2),H=F[0],D=F[1],q=(0,c.useState)(!1),R=i(q,2),U=R[0],z=R[1];function W(e){if(e){var t=s.default.createElement(r.default,{spinning:U},s.default.createElement(f.FlexAJ,{className:"menuMaininfos"},s.default.createElement(f.AlignCenter,null,s.default.createElement(d.Link,{to:"/"+e.login},s.default.createElement("img",{src:(0,m.getImageUrl)("/"+e.image_url),alt:"",className:"radius",width:"38px",height:"38px"})),s.default.createElement("div",{className:"ml10"},s.default.createElement(d.Link,{to:"/"+e.login},e.name),e.location&&s.default.createElement("span",{className:"leftline"},e.location),e.organizations&&e.organizations.length>0&&s.default.createElement("p",{className:"task-hide",style:{maxWidth:"215px"}},"所属组织:",function(e){var t="";return e.map((function(e){t=t+e.name+"、"})),t&&t.substr(0,t.length-1)}(e.organizations))))),s.default.createElement(f.AlignCenter,{className:"menuinfos"},s.default.createElement(d.Link,{to:"/"+e.login+"/projects"},s.default.createElement("span",null,e.projects_count),s.default.createElement("span",null,"项目数")),s.default.createElement(d.Link,{to:"/"+e.login+"/followers"},s.default.createElement("span",null,e.followers_count),s.default.createElement("span",null,"粉丝数")),s.default.createElement(d.Link,{to:"/"+e.login+"/following"},s.default.createElement("span",null,e.following_count),s.default.createElement("span",null,"关注数"))),s.default.createElement("div",{className:"pb20",style:{display:"flex",justifyContent:"center"}},y&&y===e.login?s.default.createElement(l.default,{className:"currentBtn"},"当前用户"):e.is_watch?s.default.createElement(l.default,{type:"default",onClick:function(){return K(!1,e.login)}},"已关注"):s.default.createElement(l.default,{type:"primary",onClick:function(){return K(!0,e.login)}},"关注TA")));L(t)}}function K(e,t){(0,h.default)({method:e?"post":"delete",url:"/watchers/"+(e?"follow":"unfollow")+".json",params:{target_type:"user",id:t}}).then((function(a){if(a&&(0===a.data.status||2===a.data.status)){var n=_&&_.filter((function(e){return e.login===t}));n&&(n[0].is_watch=e),W(n[0])}})).catch((function(e){console.log(e)}))}function J(e,t,a){t!==H&&D(t);var n=k.concat();n.map((function(e){return e.visible=!1})),e&&(n[a].visible=e),n.splice(),S(n)}return(0,c.useEffect)((function(){var e;e="/"+g+"/"+E+"/contributors.json",h.default.get(e).then((function(e){e&&(M(e.data.total_count),S(e.data.list))})).catch((function(e){}))}),[]),(0,c.useEffect)((function(){H?v(H):L(void 0)}),[H]),C>0?s.default.createElement("div",{className:"halfs"},s.default.createElement(d.Link,{to:"/"+g+"/"+E+"/contribute",className:"font-16 color-ooo hoverA"},s.default.createElement("span",null,"贡献者"),C>0&&s.default.createElement("span",{className:"infoCount"},C)),s.default.createElement("div",{className:"attrPerson",onMouseLeave:function(){return J(!1)}},k&&k.length>0&&k.map((function(e,t){return s.default.createElement(n.default,{content:B,visible:e.visible,overlayClassName:"menuPanels",placement:"top"},s.default.createElement(d.Link,{key:t,to:"/"+e.login},s.default.createElement("img",{src:(0,m.getImageUrl)("/"+e.image_url),alt:"",onMouseOver:function(){return J(!0,e.login,t)}})))})))):""}},gUMM:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=P(a("W9HT")),r=P(a("PArb")),l=P(a("2/Rp")),o=P(a("jsC+")),u=P(a("BvKs")),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("04bd"),a("qNb/"),a("L/Qf"),a("aIZi"),a("2WkQ");var s=a("q1tI"),f=P(s),d=a("spEH"),m=a("sYIF"),p=a("eO8H"),h=a("PhNK"),v=P(a("lH0x")),g=P(a("3Diz")),E=P(a("Rs/d")),y=P(a("vDqi")),b=P(a("760K")),w=P(a("KusB")),_=P(a("OZBj")),N=P(a("Eitf"));a("/oTB");var x=P(a("YDKw")),j=P(a("eIPa")),k=P(a("YIv0")),S=P(a("KhU6")),O=P(a("NAAl")),I=P(a("2CTR")),C=P(a("z2sw")),M=P(a("aqs5")),T=P(a("bjH3"));function P(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,s.useState)(void 0),a=c(t,2),P=a[0],B=a[1],L=(0,s.useState)(void 0),A=c(L,2),F=A[0],H=A[1],D=(0,s.useState)(void 0),q=c(D,2),R=q[0],U=q[1],z=(0,s.useState)(void 0),W=c(z,2),K=W[0],J=W[1],V=(0,s.useState)(void 0),Z=c(V,2),Y=Z[0],X=Z[1],Q=(0,s.useState)(void 0),G=c(Q,2),$=G[0],ee=G[1],te=(0,s.useState)("dir"),ae=c(te,2),ne=ae[0],re=ae[1],le=(0,s.useState)(!0),oe=c(le,2),ue=oe[0],ie=oe[1],ce=(0,s.useState)(!1),se=c(ce,2),fe=se[0],de=se[1],me=(0,s.useState)(0),pe=c(me,2),he=pe[0],ve=pe[1],ge=(0,s.useState)(void 0),Ee=c(ge,2),ye=Ee[0],be=Ee[1],we=(0,s.useState)(void 0),_e=c(we,2),Ne=_e[0],xe=_e[1],je=(0,s.useState)(void 0),ke=c(je,2),Se=ke[0],Oe=ke[1],Ie=(0,s.useState)(void 0),Ce=c(Ie,2),Me=Ce[0],Te=Ce[1],Pe=(0,s.useState)(!0),Be=c(Pe,2),Le=Be[0],Ae=Be[1],Fe=(0,s.useState)(!0),He=c(Fe,2),De=He[0],qe=He[1],Re=(0,s.useState)(!1),Ue=c(Re,2),ze=Ue[0],We=Ue[1],Ke=(0,s.useState)(!1),Je=c(Ke,2),Ve=Je[0],Ze=Je[1],Ye=(0,s.useState)(!1),Xe=c(Ye,2),Qe=Xe[0],Ge=Xe[1],$e=(0,s.useState)(void 0),et=c($e,2),tt=et[0],at=et[1],nt=(0,s.useState)(void 0),rt=c(nt,2),lt=rt[0],ot=rt[1],ut=(0,s.useState)(void 0),it=c(ut,2),ct=it[0],st=it[1],ft=(0,s.useState)(void 0),dt=c(ft,2),mt=dt[0],pt=dt[1],ht=(0,s.useState)(void 0),vt=c(ht,2),gt=vt[0],Et=vt[1],yt=(0,s.useState)(!1),bt=c(yt,2),wt=bt[0],_t=bt[1],Nt=(0,s.useState)(!0),xt=c(Nt,2),jt=xt[0],kt=xt[1],St=(0,s.useState)(!0),Ot=c(St,2),It=Ot[0],Ct=Ot[1],Mt=(0,s.useState)(void 0),Tt=c(Mt,2),Pt=Tt[0],Bt=Tt[1],Lt=e.match.params.owner,At=e.match.params.projectsId,Ft=e.match.params.branchName;Ft=(0,m.returnbar)(Ft);var Ht=e.projectDetail,Dt=e.history.location.pathname,qt=Ht&&2!=Ht.type&&("Admin"===Ht.permission||"Owner"===Ht.permission||"Manager"===Ht.permission),Rt=e.bannerList;function Ut(e,t){y.default.get("/"+Lt+"/"+At+"/readme.json",{params:{owner:Lt,repo:At,filepath:e,ref:t||Ft}}).then((function(e){pt(e?e.data:void 0)}))}function zt(t,a,n){if("submodule"!==a){var r=Ft||gt,l=(0,m.turnbar)(r),o=(0,m.turnbar)(t);re(a),e.history.push("/"+Lt+"/"+At+"/tree/"+l+(o?"/"+o:""))}}function Wt(t){if(!1===e.checkIfLogin())return e.showLoginDialog(),!1;e.history.push(t)}(0,s.useEffect)((function(){if(Rt&&Rt.length>0){var e=Rt.filter((function(e){return"pulls"===e.menu_name})),t=Rt.filter((function(e){return"issues"===e.menu_name}));e&&0===e.length&&kt(!1),t&&0===t.length&&(Ct(!1),console.log(Rt))}}),[Rt]),(0,s.useEffect)((function(){Ht&&(B(Ht),at(Ht.description),ot(Ht.website),st(Ht.lesson_url),Et(Ht.default_branch),H(Ht.invite_code))}),[Ht]),(0,s.useEffect)((function(){J(R?(0,m.returnbar)(R).split("/"):void 0)}),[R]),(0,s.useEffect)((function(){if(At&&Lt&>){var e=(0,m.turnbar)(Ft);if(Dt.indexOf("/"+Lt+"/"+At)>-1&&Dt.indexOf("/tree/"+e+"/")>-1){var t=Dt.split("/tree/"+e+"/")[1];U(t),function(e,t){qe(!0);var a="/"+Lt+"/"+At+"/sub_entries.json";y.default.get(a,{params:{filepath:(0,m.returnbar)(e),ref:t||Ft,type:ne}}).then((function(t){if(t){var a=t.data.entries;a.type?(be(void 0),xe(a),re(a.type),pt(void 0)):(xe(void 0),be(a),re("dir"),Ut(e,Ft||gt));var n=t.data.last_commit;X(n&&n.commit),ee(n&&n.committer),Ze(!1),Ae(!0),Ae(!wt),ie(!0)}setTimeout((function(){qe(!1)}),500)})).catch((function(e){qe(!1)}))}(t,Ft),re("file")}else U(void 0),function(e){qe(!0);var t="/"+Lt+"/"+At+"/entries.json";y.default.get(t,{params:{ref:e}}).then((function(e){if(e){ve(e.data.commits_count),be(e.data.entries),xe(void 0),Te(e.data.tar_url),Oe(e.data.zip_url);var t=e.data.last_commit;X(t&&t.commit),ee(t&&t.committer),Ze(!0),Ae(!0),_t(!1),ie(!0),Ut("",Ft||gt)}setTimeout((function(){qe(!1)}),500)})).catch((function(e){qe(!1)}))}(Ft||gt),re("dir")}}),[At,Lt,Dt,gt]),(0,s.useEffect)((function(){y.default.get("/"+Lt+"/"+At+"/releases.json").then((function(e){if(e&&e.data){var t={list:e.data.releases,total_count:e.data.releases&&e.data.releases.length};Bt(t)}}))}),[]),(0,s.useEffect)((function(){if(P&&Y){var e=document.getElementById("ptxt");if(e)e.offsetHeight>36&&de(!0)}}),[P,Y]);var Kt,Jt,Vt=f.default.createElement(v.default,{http_url:P&&P.clone_url,ssh_url:P&&e&&e.platform&&P.ssh_url,zip_url:e&&e.platform&&Se,tar_url:e&&e.platform&&Me,showNotification:e.showNotification}),Zt=Ne&&Ne.name,Yt=Zt&&".md"===Zt.substring(Zt.length-3,Zt.length),Xt=e.current_user,Qt=Xt&&Xt.login&&It,Gt=P&&P.permission&&"Reporter"!==P.permission&&2!==P.type&&jt&&e.platform,$t="dir"===ne&&P&&2!==P.type&&(P.permission&&"Reporter"!==P.permission||Xt&&Xt.admin);return f.default.createElement(d.WhiteBack,null,f.default.createElement(O.default,{desc:tt,website:lt,lesson_url:ct,visible:Qe,onCancel:function(){return Ge(!1)},onOk:function(e,t,a){var n="/"+Lt+"/"+At+".json";y.default.put(n,{description:e,website:t||"",lesson_url:a||""}).then((function(e){e&&e.data&&e.data.id&&(at(e.data.description),ot(e.data.website),st(e.data.lesson_url))}))}}),f.default.createElement(n.default,{spinning:De},(ye||Ne)&&f.default.createElement(f.default.Fragment,null,f.default.createElement(S.default,{history:e.history,owner:Lt,projectsId:At,name:P&&P.name,branch:Ft||gt,visible:ze,onClose:function(){return We(!1)},list:Ve?ye:void 0}),f.default.createElement("div",{className:"drawerBtn",onClick:function(){return We(!0)}},f.default.createElement("i",{className:"iconfont icon-zuohuaicon font-14"}),f.default.createElement("span",null,"目录"))),f.default.createElement("div",{style:{minHeight:"500px"}},P&&f.default.createElement(d.Box,{className:"Panels"},f.default.createElement(d.LongWidth,null,f.default.createElement("div",{className:"panelmenu"},f.default.createElement(d.FlexAJ,null,f.default.createElement(d.AlignCenter,null,f.default.createElement("div",{className:"mr30"},e&&e.platform?f.default.createElement(g.default,{repo_id:P&&P.repo_id,projectsId:At,branch:Ft||gt,changeBranch:function(t){var a="/"+Lt+"/"+At+(t&&"/tree/"+t)+(R?"/"+R:"");e.history.push(a)},owner:Lt,history:e.history,branchList:P&&P.branches&&P.branches.list}):f.default.createElement("span",null,"分支:",f.default.createElement("span",{className:"color-grey-6"},Ft||gt))),K&&K.length>0?f.default.createElement(b.default,{identifier:P&&P.identifier,treeValuePath:K,returnUlr:function(t){var a=(0,m.turnbar)(Ft);re("dir"),e.history.push("/"+Lt+"/"+At+"/tree"+(a?"/"+a:"")+"/"+t)},returnMain:function(){U(void 0);var t=Ft||gt,a=(0,m.turnbar)(t);e.history.push("/"+Lt+"/"+At+"/tree/"+a)},getPathUrl:function(e,t){if(e&&e.length>0&&t){for(var a="",n=0;n<t;n++)a+="/"+e[n];return a.substr(1)}}}):f.default.createElement(f.default.Fragment,null,f.default.createElement(d.AlignCenter,{className:"mr20"},e.platform?f.default.createElement(p.Link,{to:"/"+Lt+"/"+At+"/branches",className:"iconBtn"},f.default.createElement("i",{className:"iconfont icon-master_icon font-16"}),f.default.createElement("span",null,"分支"),f.default.createElement("span",null,P&&P.branches_count)):f.default.createElement("span",null,f.default.createElement("i",{className:"iconfont icon-master_icon font-16 color-grey-6"}),f.default.createElement("span",{className:"ml3 color-grey-6"},"分支"),f.default.createElement("span",{className:"ml3"},P&&P.branches_count))),f.default.createElement(d.AlignCenter,{className:"mr20"},e.platform?f.default.createElement(p.Link,{to:"/"+Lt+"/"+At+"/tags",className:"iconBtn"},f.default.createElement("i",{className:"iconfont icon-biaoqianicon font-16"}),f.default.createElement("span",null,"标签"),f.default.createElement("span",null,P&&P.tags_count)):f.default.createElement("span",null,f.default.createElement("i",{className:"iconfont icon-biaoqianicon font-16 color-grey-6"}),f.default.createElement("span",{className:"ml3 color-grey-6"},"标签"),f.default.createElement("span",{className:"ml3"},P&&P.tags_count))))),f.default.createElement(d.AlignCenter,{className:"depotBtn"},f.default.createElement("div",{className:"addOptionBtn"},Gt&&f.default.createElement(M.default,i({},e,{sureFunc:function(){return Wt("/"+Lt+"/"+At+"/compare/"+(0,m.turnbar)(Ft||gt)+"..."+(0,m.turnbar)(Ft||gt))}}),"+ 合并请求"),It&&f.default.createElement("a",{onClick:function(){Qt?e.history.push("/"+Lt+"/"+At+"/issues/new"):e.showLoginDialog("/"+Lt+"/"+At+"/issues/new")}},"+ 疑修")),$t&&f.default.createElement(o.default,{overlay:(Kt=Ft||gt,Jt=(0,m.turnbar)(Kt),f.default.createElement(u.default,{className:"fileMenu"},f.default.createElement(u.default.Item,null,f.default.createElement(M.default,i({},e,{sureFunc:function(){return Wt("/"+Lt+"/"+At+"/"+Jt+"/uploadfile"+(void 0===R?"":"/"+R))}}),"上传文件")),f.default.createElement(u.default.Item,null,f.default.createElement(M.default,i({},e,{sureFunc:function(){return Wt("/"+Lt+"/"+At+"/"+Jt+"/newfile"+(void 0===R?"":"/"+R))}}),"新建文件")))),className:"mr10",trigger:["click"],getPopupContainer:document.parentNode},f.default.createElement("a",null,"文件 ",f.default.createElement("i",{className:"iconfont icon-sanjiaoxing-down ml3 font-14 color-grey-6 mr-5"}))),f.default.createElement(o.default,{overlay:Vt,placement:"bottomRight",trigger:["click"]},f.default.createElement(l.default,{type:"primary"},"下载 ",f.default.createElement("i",{className:"iconfont icon-sanjiaoxing-down ml3 font-14 color-white mr-3"}))))),ye&&ye.length>0||Ne?f.default.createElement("div",{className:"listtable"},(Y&&Y.message||$)&&f.default.createElement("div",{className:"listtablehead"},$&&f.default.createElement(E.default,{url:(0,m.getImageUrl)("/"+$.image_url),name:$.name,id:$.id,login:$.login}),Y&&Y.message&&f.default.createElement("div",{className:fe&&ue?"ellipsistxt hidetxt":"ellipsistxt"},f.default.createElement("pre",{id:"ptxt"},f.default.createElement(p.Link,{to:"/"+Lt+"/"+At+"/commits/"+(0,h.truncateCommitId)(Y.sha)},f.default.createElement(T.default,{value:Y&&Y.message})))),fe&&f.default.createElement("span",{className:"ellipsis",onClick:function(){return function(e){ie(!e)}(ue)}},f.default.createElement("i",{className:"iconfont icon-shenglvehao"})),f.default.createElement("span",{className:"ml20 color-grey-6 font-12 mt3"},Y&&Y.time_from_now),he?f.default.createElement(p.Link,{to:"/"+Lt+"/"+At+"/commits/branch/"+(0,m.turnbar)(Ft||gt),className:"ml20 color-grey-3",style:{height:"28px",lineHeight:"28px"}},f.default.createElement("i",{className:"iconfont icon-tijiaoicon mr3 font-16"}),f.default.createElement("span",{style:{fontWeight:"500"}},he,"次提交")):""),f.default.createElement("ul",{className:"listtablebody"},ye&&ye.length>0&&ye.map((function(t,a){return f.default.createElement(w.default,{owner:Lt,item:t,projectsId:At,goToSubRoot:zt,platform:e.platform})})),Ne&&f.default.createElement(N.default,i({},e,{detail:Ne,readOnly:Le,md:Yt,onEdit:function(e){Ae(e),_t(!1)},currentBranch:Ft||gt,type:P.type})))):"",ye&&0===ye.length&&!Ne?f.default.createElement(I.default,{_html:"暂未发现文件"}):"",mt&&mt.replace_content?f.default.createElement(_.default,{ChangeFile:function(t,a){var n=Ft||gt,r=(0,m.turnbar)(n);e.history.push("/"+Lt+"/"+At+"/tree/"+r+"/"+t),re("file"),_t(!0)},readme:mt,operate:e&&(e.isManager||e.isDeveloper)&&2!==P.type,history:e.history}):"")),!(K&&K.length>0)&&!Ne&&f.default.createElement(d.ShortWidth,null,f.default.createElement(d.Gap,{style:{paddingLeft:"30px"}},f.default.createElement("div",{className:"panelmenu"},f.default.createElement(d.FlexAJ,{className:"font-18 color-ooo mb20",style:{lineHeight:"28px"}},"关于",P.permission&&("Admin"===P.permission||"Owner"===P.permission||"Manager"===P.permission)&&f.default.createElement("i",{onClick:function(){return Ge(!0)},className:"iconfont icon-a-shezhi color-grey-9 font-15 pointer"})),tt&&f.default.createElement("p",{className:"font-14 color-grey-3 mb15 task-hide-2",style:{lineHeight:"24px",WebkitLineClamp:"4",textAlign:"justify",wordBreak:"break-all"},title:tt},tt),lt&&f.default.createElement("div",{className:"color-grey-6 df pinfos mb5"},f.default.createElement("i",{className:"iconfont icon-lianjie2 font-15 mr10"}),f.default.createElement("a",{href:lt,target:"_blank",style:{wordBreak:"break-all",lineHeight:"20px",marginTop:"5px",textDecoration:"underline"}},lt)),f.default.createElement("div",{className:"pinfos mb5"},f.default.createElement("i",{className:"iconfont icon-zishuwenjian_icon font-15 mr10"}),f.default.createElement("a",{href:"#readme"},"README.md")),f.default.createElement("div",{className:"color-grey-6 mb5"},f.default.createElement("i",{className:"iconfont icon-neicunicon font-15 mr10"}),f.default.createElement("span",null,P&&P.size)),P&&P.license_name&&f.default.createElement("div",{className:"pinfos"},f.default.createElement("i",{className:"iconfont icon-xieyiicon font-16 mr10"}),f.default.createElement(p.Link,{to:"/"+Lt+"/"+At+"/tree/"+(0,m.turnbar)(Ft||gt)+"/LICENSE",className:"color-grey-6"},P.license_name))),F&&f.default.createElement("div",null,f.default.createElement(r.default,null),f.default.createElement(C.default,{code:F})),ct&&f.default.createElement("div",null,f.default.createElement(r.default,null),f.default.createElement("p",{className:"font-16 color-ooo"},"实践课程"),f.default.createElement("a",{href:ct,target:"_blank",className:"color-grey-6",style:{textDecoration:"underline",wordBreak:"break-all"}},ct)),Pt&&e.platform&&f.default.createElement(f.default.Fragment,null,f.default.createElement(r.default,null),f.default.createElement(x.default,{owner:Lt,projectsId:At,releaseVersions:Pt,history:e.history,distribution:qt})),f.default.createElement(j.default,{owner:Lt,projectsId:At}),f.default.createElement(k.default,{owner:Lt,projectsId:At})))))))}},lH0x:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(a("BvKs")),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("2WkQ");var l=a("q1tI"),o=i(l);a("MN5C");var u=i(a("FRFo"));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.http_url,a=e.ssh_url,i=e.zip_url,c=e.tar_url,s=(0,l.useState)("HTTP"),f=r(s,2),d=f[0],m=f[1];return o.default.createElement("div",{className:"downMenu"},o.default.createElement("div",null,o.default.createElement(n.default,{className:"urlMenu",selectedKeys:[d],mode:"horizontal"},o.default.createElement(n.default.Item,{key:"HTTP",onClick:function(e){m(e.key)}},"HTTP"),a&&o.default.createElement(n.default.Item,{key:"SSH",onClick:function(e){m(e.key)}},"SSH")),o.default.createElement("div",{className:"gitAddressClone"},o.default.createElement("input",{type:"text",id:"copy_rep_content",value:"HTTP"===d?t:a}),o.default.createElement(u.default,{inputId:"copy_rep_content",className:"copytool"}))),o.default.createElement(n.default,{className:"edu-txt-center"},i&&o.default.createElement(n.default.Item,{style:{borderTop:"1px solid #eee"}},o.default.createElement("a",{href:i},"下载 ZIP")),c&&o.default.createElement(n.default.Item,null,o.default.createElement("a",{href:c},"下载 TAR.GZ"))))}},lr0e:function(e,t,a){},mJXK:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(a("5rEg")),r=i(a("JsLm")),l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],n=!0,r=!1,l=void 0;try{for(var o,u=e[Symbol.iterator]();!(n=(o=u.next()).done)&&(a.push(o.value),!t||a.length!==t);n=!0);}catch(e){r=!0,l=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw l}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};a("1vPl"),a("mJp1");var o=a("q1tI"),u=i(o);function i(e){return e&&e.__esModule?e:{default:e}}a("dEUZ");var c=r.default.Link;t.default=function(e){var t=e.menuList,a=(e.hash,(0,o.useState)("")),i=l(a,2),s=i[0],f=i[1],d=(0,o.useState)(""),m=l(d,2),p=m[0],h=m[1],v=(0,o.useState)(t),g=l(v,2),E=g[0],y=g[1];return u.default.createElement("div",null,u.default.createElement("div",{className:"searchBox"},u.default.createElement(n.default,{placeholder:"请输入关键字",value:p,onChange:function(e){if(h(e.target.value),e.target.value){var a=t.filter((function(t){return t.text.toLowerCase().indexOf(e.target.value.toLowerCase())>-1}));y(a)}else y(t)},prefix:u.default.createElement("i",{className:"iconfont icon-sousuo_icon1 font-14"})})),E&&E.length>0?u.default.createElement("div",{className:"anchorBox"},u.default.createElement(r.default,{affix:!1,onChange:function(e){f(e)},offsetTop:140},E.map((function(e,t){return u.default.createElement("div",{style:{paddingLeft:15*e.level+"px"},className:s===e.href?"items active":"items"},u.default.createElement(c,{href:"#"+e.text,title:e.text}))})))):"")}},tnhM:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUser=t.getSubEntries=t.getHooks=t.getTag=t.getBranch=void 0;var n=l(a("14Xm")),r=l(a("vDqi"));function l(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,a){return function n(r,l){try{var o=t[r](l),u=o.value}catch(e){return void a(e)}if(!o.done)return Promise.resolve(u).then((function(e){n("next",e)}),(function(e){n("throw",e)}));e(u)}("next")}))}}var u,i,c,s,f;t.getBranch=(u=o(n.default.mark((function e(t,a){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.get("/"+a+"/"+t+"/branches.json");case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t){return u.apply(this,arguments)}),t.getTag=(i=o(n.default.mark((function e(t,a){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.get("/"+a+"/"+t+"/tags.json");case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t){return i.apply(this,arguments)}),t.getHooks=(c=o(n.default.mark((function e(t,a){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.get("/projects/"+t+"/hooks.json",{params:a});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t){return c.apply(this,arguments)}),t.getSubEntries=(s=o(n.default.mark((function e(t,a,l){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.get("/"+t+"/"+a+"/sub_entries.json",{params:l});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t,a){return s.apply(this,arguments)}),t.getUser=(f=o(n.default.mark((function e(t){return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.get("/users/"+t+"/hovercard.json");case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e){return f.apply(this,arguments)})},z2sw:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=l(a("q1tI"));a("dEUZ");var r=l(a("FRFo"));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.code,a=e.className;return n.default.createElement("div",{className:a},n.default.createElement("span",{className:"font-16 color-ooo"},"邀请码"),n.default.createElement("div",null,n.default.createElement("input",{value:t,id:"devitecode",style:{width:"62px",border:"none",cursor:"default"},readOnly:!0}),n.default.createElement(r.default,{timeOut:!0,beforeText:n.default.createElement("p",{className:"edu-txt-center"},"可以通过邀请码邀请成员加入项目",n.default.createElement("br",null),"点击复制邀请码。"),className:"ml8 font-16",inputId:"devitecode"})))}}}]); |