forked from Gitlink/forgeplus
1 line
59 KiB
JavaScript
1 line
59 KiB
JavaScript
(this.webpackJsonp=this.webpackJsonp||[]).push([[36],{"/oTB":function(e,t,a){},"3Diz":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(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=c(l);a("MN5C");var u=c(a("cJAJ")),i=a("i8i4");function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.projectsId,a=e.branch,c=e.owner,s=e.changeBranch,f=e.branchList,d=e.tagflag,m=void 0===d||d,p=(0,l.useState)(a),h=r(p,2),v=h[0],g=h[1],E=(0,l.useState)(!1),y=r(E,2),b=y[0],w=y[1],_=(0,l.useRef)(null),N=(0,l.useRef)(null);(0,l.useEffect)((function(){document.addEventListener("click",x,!1)}),[]);var x=function(e){var t=e.target,a=(0,i.findDOMNode)(_.current),n=(0,i.findDOMNode)(N.current);if(a&&n){var r=a.contains(t),l=n.contains(t);r||l||w(!1)}};(0,l.useEffect)((function(){g(a)}),[a]);var S=o.default.createElement("div",{ref:_},o.default.createElement(u.default,{visible:b,changeBranch:function(e){w(!1),s(e)},tagflag:m,projectsId:t,owner:c,branchList:f}));return o.default.createElement(n.default,{placement:"bottomLeft",visible:b,overlay:S,overlayClassName:"branch-tagBox-list",trigger:["click"]},o.default.createElement("div",{className:"branch-tagBox",ref:N,onClick:function(){return w(!b)}},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"}},v),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});a("LvDl");var n,r=a("q1tI"),l=(n=r)&&n.__esModule?n:{default:n};t.default=function(e){var t=e.treeValuePath,a=e.returnUlr,n=e.returnMain,r=e.getPathUrl,o=e.identifier;return l.default.createElement("li",{className:"listtablepath"},l.default.createElement("p",null,l.default.createElement("a",{onClick:n,className:"color-blue"},o),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},e):l.default.createElement("a",{onClick:function(){return a(""+r(t,n+1))},className:"color-blue subFileName"},e))}))))}},BtkW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=h(a("W9HT")),r=h(a("2/Rp")),l=h(a("CtXQ")),o=h(a("9yH6")),u=h(a("Vl3Y")),i=h(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=h(s),d=a("sYIF"),m=a("eO8H");a("XmZk");var p=h(a("vDqi"));function h(e){return e&&e.__esModule?e:{default:e}}var v=i.default.TextArea;function g(e){return e&&e.length>0&&e.indexOf("/")>-1?e.replaceAll("/","%2F"):e}function E(e){return e&&e.length>0&&e.indexOf("%2F")>-1?e.replaceAll("%2F","/"):e}var y=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=a.props.match.params,o=l.branch,u=l.projectsId,i=l.owner,c=a.state,s=c.submitType,f=c.filename;a.setState({isSpin:!0});var d="upload"===r?t:t.substr(1);a.props.form.validateFieldsAndScroll((function(e,t){if(e)a.setState({isSpin:!1});else{var r="/"+i+"/"+u+"/create_file.json";p.default.post(r,{filepath:f||d,branch:E(o),new_branch:"1"===s?t.branchname:void 0,content:n,message:t.desc}).then((function(e){if(a.setState({isSpin:!1}),e.data&&e.data.name){if(a.props.showNotification("文件新建成功!"),"1"===s){var n=a.props.getDetail;n&&n()}var r="/"+i+"/"+u+(t.branchname?"/tree/"+g(t.branchname):o?"/tree/"+g(o):"");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=a.props.match.params,u=o.projectsId,i=o.owner,c=a.state.submitType,s="/"+i+"/"+u+"/update_file.json",f=l||t;a.props.form.validateFieldsAndScroll((function(e,o){e?a.setState({isSpin:!1}):p.default.put(s,{filepath:n.path,branch:"1"===c?void 0:E(f),new_branch:"1"===c?o.branchname:void 0,content:r,sha:n.sha,message:o.desc}).then((function(e){if(a.setState({isSpin:!1}),e.data&&1===e.data.status){var n=l||t,r="/"+i+"/"+u+(o.branchname?"/tree/"+g(o.branchname):n?"/tree/"+g(n):"");a.props.history.push(r),a.props.showNotification("文件修改成功!")}})).catch((function(e){a.setState({isSpin:!1}),console.log(e)}))}))},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,g=h.branch,y=h.projectsId,b=h.owner,w=this.props,_=w.current_user,N=w.filepath,x=w.projectDetail,S=w.currentBranch,j=this.props.editor_type,k=S||g;return f.default.createElement("div",null,f.default.createElement("span",{className:"df",style:{alignItems:"center"}},f.default.createElement(m.Link,{to:"/"+(_&&_.login),className:"show-user-link"},f.default.createElement("img",{src:(0,d.getImageUrl)("/"+(_&&_.image_url)),alt:"",className:"screwImg"}),f.default.createElement("span",{className:"color-grey-3 ver-middle"},_&&_.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:"/"+(x&&x.identifier)+"/",value:c||N,onChange:this.changeFileName,placeholder:"文件路径..."})))),f.default.createElement(u.default.Item,null,p("desc",{rules:[{required:!0,message:"请添加描述信息"}]})(f.default.createElement(v,{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"},E(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:"请输入分支名称"}]})(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("/"+b+"/"+y)},className:"mr20"},"取消"))))}}]),t}(s.Component),b=u.default.create({name:"UserSubmitForm"})(y);t.default=b},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).content,n=e.detail&&e.detail.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.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:70},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:_,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=s(a("/wGt")),r=s(a("W9HT")),l=s(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=s(u);a("KkuB");var c=s(a("vDqi"));function s(e){return e&&e.__esModule?e:{default:e}}var f=l.default.TreeNode,d=l.default.DirectoryTree;t.default=function(e){var t=e.visible,a=e.onClose,l=e.branch,s=e.owner,m=e.projectsId,p=e.history,h=e.name,v=e.list,g=(0,u.useState)(void 0),E=o(g,2),y=E[0],b=E[1],w=(0,u.useState)(!0),_=o(w,2),N=_[0],x=_[1],S=(0,u.useState)(!0),j=o(S,2),k=j[0],O=j[1];return(0,u.useEffect)((function(){var e;t&&k&&(v?(b(v),x(!1)):(e="/"+s+"/"+m+"/entries.json",c.default.get(e,{params:{ref:l}}).then((function(e){e&&b(e.data.entries),x(!1)})).catch((function(e){}))),O(!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:N},i.default.createElement("div",{className:"drawerHead"},i.default.createElement("p",{className:"font-20"},h),i.default.createElement("p",null,i.default.createElement("i",{class:"iconfont icon-fenzhi2 font-18 color-grey-9 mr3"}),l)),i.default.createElement(d,{loadData:function(e){return new Promise((function(t){if(e.props.children)t();else{var a=[],n="/"+s+"/"+m+"/sub_entries.json";c.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,b([].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)}(y))),t()}),2e3)}}))},onSelect:function(e,t){var n,r=t.node.props.dataRef;if("file"===r.type){a();var o=(n=l)&&n.length>0&&n.indexOf("/")>-1?n.replaceAll("/","%2F"):n;p.push("/"+s+"/"+m+"/tree/"+o+"/"+r.path)}}},y&&function e(t){return t&&t.length>0&&t.map((function(t){return i.default.createElement(f,{title:t.name,key:t.key,dataRef:t,isLeaf:"file"===t.type},e(t.children))}))}(y))))}},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=e.item,a=e.goToSubRoot,n=e.owner,r=e.projectsId;return l.default.createElement("li",null,l.default.createElement("span",null,l.default.createElement("a",{onClick:function(){return a(t.path,t.type,t.name)},className:"submodule"===t.type&&"submoduleStyle"},l.default.createElement("i",{className:"iconfont "+i[""+t.type]+" mr8"}),t.name)),l.default.createElement("span",{title:"init project"},l.default.createElement(o.Link,{to:"/"+n+"/"+r+"/commits/"+(0,u.truncateCommitId)(""+(t.commit&&t.commit.sha)),title:t.commit&&t.commit.message},t.commit&&t.commit.message)),l.default.createElement("span",{title:t.commit&&t.commit.created_at},t.commit&&t.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链接"}))),u.default.createElement(r.default.Item,{label:"实践课程"},p("lesson_url",{rules:[]})(u.default.createElement(l.default,{placeholder:"实践课程链接"})))))})))},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.content?_(d.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:70,targetOffset:160},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=c(a("gL5p")),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){a.setState({editorValue:e})},a.state={editorValue: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,t=this.state.editorValue,a=this.props,r=a.readOnly,l=a.editorType,c=a.language,s=a.currentBranch,f=a.descName,d={lineNumbers:"on",wordWrap:!0,selectOnLineNumbers:!0,lineHeight:24,renderLineHighlight:"line",revealHorizontalRightPadding:5,placeholder:"请输入内容",readOnly:r,cursorStyle:r?"underline-thin":"line",folding:!0,foldingStrategy:"indentation",automaticLayout:!0,overviewRulerBorder:!1,scrollBeyondLastLine:!1,minimap:{enabled:!1}};return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"editorBorderBox"},o.default.createElement(u.default,{language:c||"plaintext",theme:"vs-grey",placeholder:"请输入内容",value:t,options:d,onChange:this.changeEditor,editorWillMount:this.editorWillMount,editorDidMount:function(t,a){t.onDidChangeModelDecorations((function(){requestAnimationFrame(n)}));var n=function(){var n=t.getDomNode();if(n){var r=t.getOption(a.editor.EditorOption.lineHeight),l=t.getModel().getLineCount()||1,o=t.getTopForLineNumber(l+1)+r+40;o<400&&(o=400),e.state.prevHeight!==o&&(e.setState({prevHeight:o}),n.style.height=o+"px",t.layout())}};n()}})),!r&&o.default.createElement("div",{className:"editorBorderSubmitBox",style:{marginTop:"20px",padding:"20px"}},o.default.createElement(i.default,n({},this.props,this.state,{filepath:""+this.props.filepath,content:t,editor_type:l,currentBranch:s,descName:f}))))}}]),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,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")},l=a("q1tI"),o=(n=l)&&n.__esModule?n:{default:n},u=a("spEH");t.default=function(e){var t=e.languages,a=(0,l.useState)(void 0),n=r(a,2),i=n[0],c=n[1];function s(){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(){if(t){var e=[];Object.keys(t).map((function(a,n){e.push({name:a,percent:t[a],color:s()})})),c(e)}}),[t]),o.default.createElement("div",null,o.default.createElement("p",{className:"font-16 color-ooo aboutSubTitle"},"开发语言"),o.default.createElement("div",{className:"progress"},i&&i.map((function(e,t){return o.default.createElement("span",{style:{width:e.percent,backgroundColor:e.color}})}))),i&&i.length>0&&o.default.createElement(u.FlexAJ,{className:"progresstip"},i.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,A(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,A(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),S=x[0],j=x[1],k=(0,i.useState)(!0),O=u(k,2),I=O[0],C=O[1],M=(0,i.useState)(void 0),T=u(M,2),P=T[0],A=T[1],B=(0,i.useState)(void 0),F=u(B,2),L=F[0],H=F[1],q=(0,i.useState)("branch"),D=u(q,2),R=D[0],z=D[1];return(0,i.useEffect)((function(){E&&(z("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){z(e.key),C(!0),"branch"===e.key?(f(v,g),j(0)):(m(v,g),j(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"},L&&L.length>0&&L.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))})),L&&0===L.length&&c.default.createElement("p",{className:"listTips"},"暂无",w,0===S?"分支":"标签","~"))))}},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(W(!0),0!==(a=N&&N.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=N).push(u({},n)),x(r),K(n),W(!1),e.next=15;break;case 13:K(a[0]),W(!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.contributors,E=e.owner,y=e.projectsId,b=e.currentLogin,w=(0,c.useState)([]),_=i(w,2),N=_[0],x=_[1],S=(0,c.useState)(void 0),j=i(S,2),k=j[0],O=j[1],I=(0,c.useState)(0),C=i(I,2),M=C[0],T=C[1],P=(0,c.useState)(""),A=i(P,2),B=A[0],F=A[1],L=(0,c.useState)(void 0),H=i(L,2),q=H[0],D=H[1],R=(0,c.useState)(!1),z=i(R,2),U=z[0],W=z[1];function K(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"}},b&&b===e.login?s.default.createElement(l.default,{className:"currentBtn"},"当前用户"):e.is_watch?s.default.createElement(l.default,{type:"default",onClick:function(){return J(!1,e.login)}},"已关注"):s.default.createElement(l.default,{type:"primary",onClick:function(){return J(!0,e.login)}},"关注TA")));F(t)}}function J(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=N&&N.filter((function(e){return e.login===t}));n&&(n[0].is_watch=e),K(n[0])}})).catch((function(e){console.log(e)}))}function Z(e,t,a){t!==q&&D(t);var n=k.concat();n.map((function(e){return e.visible=!1})),e&&(n[a].visible=e),n.splice(),O(n)}return(0,c.useEffect)((function(){g&&g.total_count>0&&(T(g.total_count),O(g.list))}),[g]),(0,c.useEffect)((function(){q?v(q):F(void 0)}),[q]),s.default.createElement("div",{className:"halfs"},s.default.createElement(d.Link,{to:"/"+E+"/"+y+"/contribute",className:"font-16 color-ooo hoverA"},s.default.createElement("span",null,"贡献者"),g&&g.total_count>0&&s.default.createElement("span",{className:"infoCount"},g.total_count)),s.default.createElement("div",{className:"attrPerson",onMouseLeave:function(){return Z(!1)}},M>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 Z(!0,e.login,t)}})))})):""))}},gUMM:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=A(a("W9HT")),r=A(a("PArb")),l=A(a("2/Rp")),o=A(a("jsC+")),u=A(a("BvKs")),i=A(a("wFql")),c=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},s=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"),a("O+5t");var f=a("q1tI"),d=A(f),m=a("spEH"),p=a("sYIF"),h=a("eO8H"),v=a("PhNK"),g=A(a("lH0x")),E=A(a("3Diz")),y=A(a("Rs/d")),b=A(a("vDqi")),w=A(a("760K")),_=A(a("KusB")),N=A(a("OZBj")),x=A(a("Eitf"));a("/oTB");var S=A(a("YDKw")),j=A(a("eIPa")),k=A(a("YIv0")),O=A(a("KhU6")),I=A(a("NAAl")),C=A(a("2CTR")),M=A(a("z2sw")),T=A(a("aqs5")),P=A(a("bjH3"));function A(e){return e&&e.__esModule?e:{default:e}}i.default.Paragraph;function B(e){return e&&e.length>0&&e.indexOf("/")>-1?e.replaceAll("/","%2F"):e}t.default=function(e){var t,a=(0,f.useState)(void 0),i=s(a,2),A=i[0],F=i[1],L=(0,f.useState)(void 0),H=s(L,2),q=H[0],D=H[1],R=(0,f.useState)(void 0),z=s(R,2),U=z[0],W=z[1],K=(0,f.useState)(void 0),J=s(K,2),Z=J[0],V=J[1],X=(0,f.useState)(void 0),Y=s(X,2),Q=Y[0],G=Y[1],$=(0,f.useState)(void 0),ee=s($,2),te=ee[0],ae=ee[1],ne=(0,f.useState)("dir"),re=s(ne,2),le=re[0],oe=re[1],ue=(0,f.useState)(!0),ie=s(ue,2),ce=ie[0],se=ie[1],fe=(0,f.useState)(!1),de=s(fe,2),me=de[0],pe=de[1],he=(0,f.useState)(0),ve=s(he,2),ge=ve[0],Ee=ve[1],ye=(0,f.useState)(void 0),be=s(ye,2),we=be[0],_e=be[1],Ne=(0,f.useState)(void 0),xe=s(Ne,2),Se=xe[0],je=xe[1],ke=(0,f.useState)(void 0),Oe=s(ke,2),Ie=Oe[0],Ce=Oe[1],Me=(0,f.useState)(void 0),Te=s(Me,2),Pe=Te[0],Ae=Te[1],Be=(0,f.useState)(!0),Fe=s(Be,2),Le=Fe[0],He=Fe[1],qe=(0,f.useState)(!0),De=s(qe,2),Re=De[0],ze=De[1],Ue=(0,f.useState)(!1),We=s(Ue,2),Ke=We[0],Je=We[1],Ze=(0,f.useState)(!1),Ve=s(Ze,2),Xe=Ve[0],Ye=Ve[1],Qe=(0,f.useState)(!1),Ge=s(Qe,2),$e=Ge[0],et=Ge[1],tt=(0,f.useState)(void 0),at=s(tt,2),nt=at[0],rt=at[1],lt=(0,f.useState)(void 0),ot=s(lt,2),ut=ot[0],it=ot[1],ct=(0,f.useState)(void 0),st=s(ct,2),ft=st[0],dt=st[1],mt=(0,f.useState)(void 0),pt=s(mt,2),ht=pt[0],vt=pt[1],gt=(0,f.useState)(void 0),Et=s(gt,2),yt=Et[0],bt=Et[1],wt=(0,f.useState)(!1),_t=s(wt,2),Nt=_t[0],xt=_t[1],St=(0,f.useState)(!0),jt=s(St,2),kt=jt[0],Ot=jt[1],It=(0,f.useState)(!0),Ct=s(It,2),Mt=Ct[0],Tt=Ct[1],Pt=(0,f.useState)(void 0),At=s(Pt,2),Bt=At[0],Ft=At[1],Lt=e.match.params.owner,Ht=e.match.params.projectsId,qt=e.match.params.branchName;qt=(t=qt)&&t.length>0&&t.indexOf("%2F")>-1?t.replaceAll("%2F","/"):t;var Dt=e.projectDetail,Rt=e.history.location.pathname,zt=Dt&&2!=Dt.type&&("Admin"===Dt.permission||"Owner"===Dt.permission||"Manager"===Dt.permission),Ut=e.bannerList;function Wt(e,t){b.default.get("/"+Lt+"/"+Ht+"/readme.json",{params:{owner:Lt,repo:Ht,filepath:e,ref:t||qt}}).then((function(e){vt(e?e.data:void 0)}))}function Kt(t,a,n){if("submodule"!==a){var r=B(qt||yt);oe(a),e.history.push("/"+Lt+"/"+Ht+"/tree/"+r+(t?"/"+t:""))}}function Jt(t){if(!1===e.checkIfLogin())return e.showLoginDialog(),!1;e.history.push(t)}(0,f.useEffect)((function(){if(Ut&&Ut.length>0){var e=Ut.filter((function(e){return"pulls"===e.menu_name})),t=Ut.filter((function(e){return"issues"===e.menu_name}));e&&0===e.length&&Ot(!1),t&&0===t.length&&Tt(!1)}}),[Ut]),(0,f.useEffect)((function(){Dt&&(F(Dt),rt(Dt.description),it(Dt.website),dt(Dt.lesson_url),bt(Dt.default_branch),D(Dt.invite_code))}),[Dt]),(0,f.useEffect)((function(){V(U?U.split("/"):void 0)}),[U]),(0,f.useEffect)((function(){if(Ht&&Lt&&yt){var e=B(qt);if(Rt.indexOf("/"+Lt+"/"+Ht)>-1&&Rt.indexOf("/tree/"+e+"/")>-1){var t=Rt.split("/tree/"+e+"/")[1];W(t),function(e,t){ze(!0);var a="/"+Lt+"/"+Ht+"/sub_entries.json";b.default.get(a,{params:{filepath:e,ref:t||qt,type:le}}).then((function(t){if(t){var a=t.data.entries;a.type?(_e(void 0),je(a),oe(a.type),vt(void 0)):(je(void 0),_e(a),oe("dir"),Wt(e,qt||yt));var n=t.data.last_commit;G(n&&n.commit),ae(n&&n.committer),Ye(!1),He(!0),He(!Nt),se(!0)}setTimeout((function(){ze(!1)}),500)})).catch((function(e){ze(!1)}))}(t,qt),oe("file")}else W(void 0),function(e){ze(!0);var t="/"+Lt+"/"+Ht+"/entries.json";b.default.get(t,{params:{ref:e}}).then((function(e){if(e){Ee(e.data.commits_count),_e(e.data.entries),je(void 0),Ae(e.data.tar_url),Ce(e.data.zip_url);var t=e.data.last_commit;G(t&&t.commit),ae(t&&t.committer),Ye(!0),He(!0),xt(!1),se(!0),Wt("",qt||yt)}setTimeout((function(){ze(!1)}),500)})).catch((function(e){ze(!1)}))}(qt||yt),oe("dir")}}),[Ht,Lt,Rt,yt]),(0,f.useEffect)((function(){b.default.get("/"+Lt+"/"+Ht+"/releases.json").then((function(e){if(e&&e.data){var t={list:e.data.releases,total_count:e.data.releases.length};Ft(t)}}))}),[]),(0,f.useEffect)((function(){if(A&&Q){var e=document.getElementById("ptxt");if(e)e.offsetHeight>35&&pe(!0)}}),[A,Q]);var Zt,Vt=d.default.createElement(g.default,{http_url:A&&A.clone_url,ssh_url:A&&A.ssh_url,zip_url:Ie,tar_url:Pe,showNotification:e.showNotification}),Xt=Se&&Se.name,Yt=Xt&&".md"===Xt.substring(Xt.length-3,Xt.length),Qt=e.current_user,Gt=Qt&&Qt.login&&Mt,$t=A&&A.permission&&"Reporter"!==A.permission&&2!==A.type&&kt,ea="dir"===le&&A&&2!==A.type&&(A.permission&&"Reporter"!==A.permission||Qt&&Qt.admin);return d.default.createElement(m.WhiteBack,null,d.default.createElement(I.default,{desc:nt,website:ut,lesson_url:ft,visible:$e,onCancel:function(){return et(!1)},onOk:function(e,t,a){var n="/"+Lt+"/"+Ht+".json";b.default.put(n,{description:e,website:t,lesson_url:a}).then((function(e){e&&e.data&&e.data.id&&(rt(e.data.description),it(e.data.website),dt(e.data.lesson_url))}))}}),d.default.createElement(n.default,{spinning:Re},(we||Se)&&d.default.createElement(d.default.Fragment,null,d.default.createElement(O.default,{history:e.history,owner:Lt,projectsId:Ht,name:A&&A.name,branch:qt||yt,visible:Ke,onClose:function(){return Je(!1)},list:Xe?we:void 0}),d.default.createElement("div",{className:"drawerBtn",onClick:function(){return Je(!0)}},d.default.createElement("i",{className:"iconfont icon-zuohuaicon font-14"}),d.default.createElement("span",null,"目录"))),d.default.createElement("div",{style:{minHeight:"500px"}},A&&d.default.createElement(m.Box,{className:"Panels"},d.default.createElement(m.LongWidth,null,d.default.createElement("div",{className:"panelmenu"},d.default.createElement(m.FlexAJ,null,d.default.createElement(m.AlignCenter,null,d.default.createElement("div",{className:"mr30"},e&&e.platform?d.default.createElement(E.default,{repo_id:A&&A.repo_id,projectsId:Ht,branch:qt||yt,changeBranch:function(t){var a=B(t),n="/"+Lt+"/"+Ht+(t&&"/tree/"+a)+(U?"/"+U:"");e.history.push(n)},owner:Lt,history:e.history,branchList:A&&A.branches&&A.branches.list}):d.default.createElement("span",null,"分支:",d.default.createElement("span",{className:"color-grey-6"},qt||yt))),Z&&Z.length>0?d.default.createElement(w.default,{identifier:A&&A.identifier,treeValuePath:Z,returnUlr:function(t){var a=B(qt);e.history.push("/"+Lt+"/"+Ht+"/tree"+(a?"/"+a:"")+"/"+t)},returnMain:function(){W(void 0);var t=B(qt||yt);e.history.push("/"+Lt+"/"+Ht+"/tree/"+t)},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)}}}):d.default.createElement(d.default.Fragment,null,d.default.createElement(m.AlignCenter,{className:"mr20"},d.default.createElement(h.Link,{to:"/"+Lt+"/"+Ht+"/branches",className:"iconBtn"},d.default.createElement("i",{className:"iconfont icon-master_icon font-16"}),d.default.createElement("span",null,"分支"),d.default.createElement("span",null,A&&A.branches_count))),d.default.createElement(m.AlignCenter,{className:"mr20"},d.default.createElement(h.Link,{to:"/"+Lt+"/"+Ht+"/tags",className:"iconBtn"},d.default.createElement("i",{className:"iconfont icon-biaoqianicon font-16"}),d.default.createElement("span",null,"标签"),d.default.createElement("span",null,A&&A.tags_count))))),d.default.createElement(m.AlignCenter,{className:"depotBtn"},($t||Gt)&&d.default.createElement("div",{className:"addOptionBtn"},$t&&d.default.createElement(T.default,c({},e,{sureFunc:function(){return Jt("/"+Lt+"/"+Ht+"/compare/master..."+(qt||yt))}}),"+ 合并请求"),Gt&&d.default.createElement(T.default,c({},e,{sureFunc:function(){return Jt("/"+Lt+"/"+Ht+"/issues/new")}}),"+ 易修")),ea&&d.default.createElement(o.default,{overlay:(Zt=B(qt||yt),d.default.createElement(u.default,{className:"fileMenu"},d.default.createElement(u.default.Item,null,d.default.createElement(T.default,c({},e,{sureFunc:function(){return Jt("/"+Lt+"/"+Ht+"/"+Zt+"/uploadfile"+(void 0===U?"":"/"+U))}}),"上传文件")),d.default.createElement(u.default.Item,null,d.default.createElement(T.default,c({},e,{sureFunc:function(){return Jt("/"+Lt+"/"+Ht+"/"+Zt+"/newfile"+(void 0===U?"":"/"+U))}}),"新建文件")))),className:"mr10",trigger:["click"],getPopupContainer:document.parentNode},d.default.createElement("a",null,"文件 ",d.default.createElement("i",{className:"iconfont icon-sanjiaoxing-down ml3 font-14 color-grey-6 mr-5"}))),d.default.createElement(o.default,{overlay:Vt,placement:"bottomRight",trigger:["click"]},d.default.createElement(l.default,{type:"primary"},"下载 ",d.default.createElement("i",{className:"iconfont icon-sanjiaoxing-down ml3 font-14 color-white mr-3"}))))),we&&we.length>0||Se?d.default.createElement("div",{className:"listtable"},Q&&d.default.createElement("div",{className:"listtablehead"},d.default.createElement(y.default,{url:(0,p.getImageUrl)("/"+(te&&te.image_url)),name:te&&te.name,id:te&&te.id,login:te&&te.login}),d.default.createElement("div",{className:me&&ce?"ellipsistxt hidetxt":"ellipsistxt"},d.default.createElement("pre",{id:"ptxt"},d.default.createElement(h.Link,{to:"/"+Lt+"/"+Ht+"/commits/"+(0,v.truncateCommitId)(Q.sha)},d.default.createElement(P.default,{value:Q.message})))),me&&d.default.createElement("span",{className:"ellipsis",onClick:function(){return function(e){se(!e)}(ce)}},d.default.createElement("i",{className:"iconfont icon-shenglvehao"})),d.default.createElement("span",{className:"ml20 color-grey-6 font-12 mt3"},Q.time_from_now),ge?d.default.createElement(h.Link,{to:"/"+Lt+"/"+Ht+"/commits/branch/"+B(qt||yt),className:"ml20 color-grey-3",style:{height:"28px",lineHeight:"28px"}},d.default.createElement("i",{className:"iconfont icon-tijiaoicon mr3 font-16"}),d.default.createElement("span",{style:{fontWeight:"500"}},ge,"次提交")):""),d.default.createElement("ul",{className:"listtablebody"},we&&we.length>0&&we.map((function(e,t){return d.default.createElement(_.default,{owner:Lt,item:e,projectsId:Ht,goToSubRoot:Kt})})),Se&&d.default.createElement(x.default,c({},e,{detail:Se,readOnly:Le,md:Yt,onEdit:function(e){He(e),xt(!1)},currentBranch:qt||yt,type:A.type})))):"",we&&0===we.length&&!Se?d.default.createElement(C.default,{_html:"暂未发现文件"}):"",ht&&ht.content?d.default.createElement(N.default,{ChangeFile:function(t,a){var n=B(qt||yt);e.history.push("/"+Lt+"/"+Ht+"/tree/"+n+"/"+t),oe("file"),xt(!0)},readme:ht,operate:e&&(e.isManager||e.isDeveloper)&&2!==A.type,history:e.history}):"")),!(Z&&Z.length>0)&&!Se&&d.default.createElement(m.ShortWidth,null,d.default.createElement(m.Gap,{style:{paddingLeft:"30px"}},d.default.createElement("div",{className:"panelmenu"},d.default.createElement(m.FlexAJ,{className:"font-18 color-ooo mb20",style:{lineHeight:"28px"}},"关于",A.permission&&("Admin"===A.permission||"Owner"===A.permission||"Manager"===A.permission)&&d.default.createElement("i",{onClick:function(){return et(!0)},className:"iconfont icon-a-shezhi color-grey-9 font-15"})),nt&&d.default.createElement("p",{className:"font-14 color-grey-3 mb15 task-hide-2",style:{lineHeight:"24px",WebkitLineClamp:"4",textAlign:"justify",wordBreak:"break-all"}},nt),ut&&d.default.createElement("div",{className:"color-grey-6 df pinfos mb5"},d.default.createElement("i",{className:"iconfont icon-lianjie2 font-15 mr10"}),d.default.createElement("a",{href:ut,target:"_blank",style:{wordBreak:"break-all",lineHeight:"20px",marginTop:"5px",textDecoration:"underline"}},ut)),d.default.createElement("div",{className:"pinfos mb5"},d.default.createElement("i",{className:"iconfont icon-zishuwenjian_icon font-15 mr10"}),d.default.createElement("a",{href:"#readme"},"README.md")),d.default.createElement("div",{className:"color-grey-6 mb5"},d.default.createElement("i",{className:"iconfont icon-neicunicon font-15 mr10"}),d.default.createElement("span",null,A&&A.size)),A&&A.license_name&&d.default.createElement("div",{className:"pinfos"},d.default.createElement("i",{className:"iconfont icon-xieyiicon font-16 mr10"}),d.default.createElement(h.Link,{to:"/"+Lt+"/"+Ht+"/tree/"+(qt||yt)+"/LICENSE",className:"color-grey-6"},A.license_name))),q&&d.default.createElement("div",null,d.default.createElement(r.default,null),d.default.createElement(M.default,{code:q})),ft&&d.default.createElement("div",null,d.default.createElement(r.default,null),d.default.createElement("p",{className:"font-16 color-ooo"},"实践课程"),d.default.createElement("a",{href:ft,target:"_blank",className:"color-grey-6",style:{textDecoration:"underline",wordBreak:"break-all"}},ft)),Bt&&d.default.createElement(d.default.Fragment,null,d.default.createElement(r.default,null),d.default.createElement(S.default,{owner:Lt,projectsId:Ht,releaseVersions:Bt,history:e.history,distribution:zt})),A&&A.contributors&&A.contributors.total_count>0&&d.default.createElement(j.default,{contributors:A.contributors,owner:Lt,projectsId:Ht}),A&&A.languages&&d.default.createElement(d.default.Fragment,null,d.default.createElement(r.default,null),d.default.createElement(k.default,{languages:A.languages}))))))))}},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",{style:{borderBottom:"1px solid #eee"}},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"),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"},o.default.createElement(n.default.Item,null,o.default.createElement("a",{href:i},"下载 ZIP")),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)}},E.map((function(e,t){return u.default.createElement("div",{style:{paddingLeft:10*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"})))}}}]); |