Merge branch 'newVersion_forge' into dev_devOps
This commit is contained in:
commit
aca923fe07
|
@ -521,6 +521,7 @@ class CoderRootDirectory extends Component {
|
||||||
{...this.state}
|
{...this.state}
|
||||||
readOnly={this.state.readOnly}
|
readOnly={this.state.readOnly}
|
||||||
onEdit={this.onEdit}
|
onEdit={this.onEdit}
|
||||||
|
currentBranch={branch}
|
||||||
></CoderRootFileDetail>
|
></CoderRootFileDetail>
|
||||||
)}
|
)}
|
||||||
{
|
{
|
||||||
|
|
|
@ -164,7 +164,8 @@ class CoderRootFileDetail extends Component {
|
||||||
current_user,
|
current_user,
|
||||||
isManager,
|
isManager,
|
||||||
isDeveloper,
|
isDeveloper,
|
||||||
md
|
md,
|
||||||
|
currentBranch
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const { language, languages, description } = this.state;
|
const { language, languages, description } = this.state;
|
||||||
let flag = current_user && current_user.login && (isManager || isDeveloper);
|
let flag = current_user && current_user.login && (isManager || isDeveloper);
|
||||||
|
@ -194,12 +195,9 @@ class CoderRootFileDetail extends Component {
|
||||||
<a onClick={() => this.EditFile(false)} className="ml20">
|
<a onClick={() => this.EditFile(false)} className="ml20">
|
||||||
<i className="iconfont icon-bianji1 font-15 color-grey-6"></i>
|
<i className="iconfont icon-bianji1 font-15 color-grey-6"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
) : (
|
) : (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Select
|
<Select
|
||||||
|
@ -273,6 +271,7 @@ class CoderRootFileDetail extends Component {
|
||||||
content={detail.content}
|
content={detail.content}
|
||||||
readOnly={readOnly}
|
readOnly={readOnly}
|
||||||
editorType="update"
|
editorType="update"
|
||||||
|
currentBranch={currentBranch}
|
||||||
></Meditor>
|
></Meditor>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -115,7 +115,7 @@ class UserSubmitComponent extends Component {
|
||||||
|
|
||||||
const { branch, projectsId , owner } = this.props.match.params;
|
const { branch, projectsId , owner } = this.props.match.params;
|
||||||
|
|
||||||
const { current_user, filepath, projectDetail } = this.props;
|
const { current_user, filepath, projectDetail , currentBranch } = this.props;
|
||||||
const { editor_type } = this.props;
|
const { editor_type } = this.props;
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
@ -175,7 +175,7 @@ class UserSubmitComponent extends Component {
|
||||||
>
|
>
|
||||||
<Radio value="0" className="mb10">
|
<Radio value="0" className="mb10">
|
||||||
<i className="iconfont icon-banbenku font-16 mr5"></i>
|
<i className="iconfont icon-banbenku font-16 mr5"></i>
|
||||||
直接提交至<span className="color-orange">{branch}</span>分支
|
直接提交至<span className="color-orange">{currentBranch || branch}</span>分支
|
||||||
</Radio>
|
</Radio>
|
||||||
<Radio value="1">
|
<Radio value="1">
|
||||||
<Icon type="pull-request" className="mr5" />
|
<Icon type="pull-request" className="mr5" />
|
||||||
|
|
|
@ -20,7 +20,7 @@ class m_editor extends Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { editorValue } = this.state;
|
const { editorValue } = this.state;
|
||||||
const { readOnly, editorType, language } = this.props;
|
const { readOnly, editorType, language , currentBranch } = this.props;
|
||||||
const editor_options = {
|
const editor_options = {
|
||||||
lineNumbers: "on",
|
lineNumbers: "on",
|
||||||
wordWrap: true, //强制换行
|
wordWrap: true, //强制换行
|
||||||
|
@ -64,6 +64,7 @@ class m_editor extends Component {
|
||||||
filepath={`${this.props.filepath}`}
|
filepath={`${this.props.filepath}`}
|
||||||
content={editorValue}
|
content={editorValue}
|
||||||
editor_type={editorType}
|
editor_type={editorType}
|
||||||
|
currentBranch={currentBranch}
|
||||||
></UserSubmitComponent>
|
></UserSubmitComponent>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -187,6 +187,9 @@
|
||||||
-o-text-overflow: ellipsis;
|
-o-text-overflow: ellipsis;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
.topWrapper_select.wrapperStyle li{
|
||||||
|
width:90px;
|
||||||
|
}
|
||||||
.topWrapper_select li {
|
.topWrapper_select li {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -608,7 +608,7 @@ class order extends Component {
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
checkedValue && checkedValue.length > 0 ?
|
checkedValue && checkedValue.length > 0 ?
|
||||||
<ul className="topWrapper_select">
|
<ul className="topWrapper_select wrapperStyle">
|
||||||
<li className="mr20">
|
<li className="mr20">
|
||||||
<Dropdown
|
<Dropdown
|
||||||
className="topWrapperSelect"
|
className="topWrapperSelect"
|
||||||
|
@ -628,7 +628,7 @@ class order extends Component {
|
||||||
</li>
|
</li>
|
||||||
<li className="mr20">
|
<li className="mr20">
|
||||||
<Dropdown
|
<Dropdown
|
||||||
className="topWrapperSelect"
|
className="topWrapperSelect wrapperStyle"
|
||||||
overlay={this.renderMenu(
|
overlay={this.renderMenu(
|
||||||
issue_chosen && issue_chosen.issue_version,
|
issue_chosen && issue_chosen.issue_version,
|
||||||
"更换里程碑",
|
"更换里程碑",
|
||||||
|
@ -645,7 +645,7 @@ class order extends Component {
|
||||||
</li>
|
</li>
|
||||||
<li className="mr20">
|
<li className="mr20">
|
||||||
<Dropdown
|
<Dropdown
|
||||||
className="topWrapperSelect"
|
className="topWrapperSelect wrapperStyle"
|
||||||
overlay={this.renderMenu(
|
overlay={this.renderMenu(
|
||||||
issue_chosen && issue_chosen.issue_status,
|
issue_chosen && issue_chosen.issue_status,
|
||||||
"修改状态",
|
"修改状态",
|
||||||
|
|
|
@ -603,10 +603,8 @@ class NewHeader extends Component {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
const isLogin = true; // 这里不会出现未登录的情况,服务端在服务端路由时发现如果是未登录,则跳转到登录页了。
|
|
||||||
const { match } = this.props;
|
const { match } = this.props;
|
||||||
|
|
||||||
|
|
||||||
let { Addcoursestypes,
|
let { Addcoursestypes,
|
||||||
tojoinitemtype,
|
tojoinitemtype,
|
||||||
tojoinclasstitle,
|
tojoinclasstitle,
|
||||||
|
@ -623,9 +621,7 @@ class NewHeader extends Component {
|
||||||
mygetHelmetapi2,
|
mygetHelmetapi2,
|
||||||
goshowqqgtounp,
|
goshowqqgtounp,
|
||||||
} = this.state;
|
} = this.state;
|
||||||
/*
|
/*用户名称 用户头像url*/
|
||||||
用户名称 用户头像url
|
|
||||||
*/
|
|
||||||
let activeIndex = false;
|
let activeIndex = false;
|
||||||
let activeForums = false;
|
let activeForums = false;
|
||||||
let activeShixuns = false;
|
let activeShixuns = false;
|
||||||
|
@ -671,7 +667,6 @@ class NewHeader extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -765,33 +760,22 @@ class NewHeader extends Component {
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div className="head-right">
|
<div className="head-right">
|
||||||
{this.props.user && this.props.user.login ?
|
{this.props.user && this.props.user.login &&
|
||||||
<div className="edu-menu-panel">
|
<div className="edu-menu-panel">
|
||||||
<i className="iconfont icon-tianjiafangda color-grey-6"></i>
|
<i className="iconfont icon-tianjiafangda color-grey-6"></i>
|
||||||
<div className="edu-menu-list" style={{ top: '60px' }}>
|
<div className="edu-menu-list" style={{ top: '48px' }}>
|
||||||
<div className="overPart"></div>
|
<div className="overPart"></div>
|
||||||
{/* <ul className={coursestypes === true && this.props.user && this.props.user.main_site === false ? "fl headwith100b edu-txt-center pr ul-leftline" : "fl with50 edu-txt-center pr ul-leftline"}>
|
|
||||||
{
|
|
||||||
mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.new_syllabuses &&
|
|
||||||
<li><a href={`${mygetHelmetapi2.new_course.new_syllabuses}`} target="_blank">新建课程</a></li>
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.new_course &&
|
|
||||||
<li><a href={`${mygetHelmetapi2.new_course.new_course}`} target="_blank">新建班级</a></li>
|
|
||||||
}
|
|
||||||
</ul> */}
|
|
||||||
{
|
{
|
||||||
coursestypes === true && this.props.user && this.props.user.main_site === false ? "" :
|
coursestypes === true && this.props.user && this.props.user.main_site === false ? "" :
|
||||||
<ul className="fl edu-txt-center">
|
<ul className="edu-txt-center">
|
||||||
<li><Link to={"/projects/mirror/new"}>新建镜像项目</Link></li>
|
<li><Link to={"/projects/mirror/new"}>新建镜像项目</Link></li>
|
||||||
<li><Link to={"/projects/deposit/new"}>新建托管项目</Link></li>
|
<li><Link to={"/projects/deposit/new"}>新建托管项目</Link></li>
|
||||||
</ul>
|
</ul>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
: ""
|
|
||||||
}
|
}
|
||||||
{this.props.user && this.props.user.login ?
|
{this.props.user && this.props.user.login &&
|
||||||
<div className="ml30 edu-menu-panel">
|
<div className="ml30 edu-menu-panel">
|
||||||
{user && user.login &&
|
{user && user.login &&
|
||||||
<a href={`${mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.tiding_url}`} style={{ position: 'relative' }} target="_blank">
|
<a href={`${mygetHelmetapi2 && mygetHelmetapi2.new_course && mygetHelmetapi2.new_course.tiding_url}`} style={{ position: 'relative' }} target="_blank">
|
||||||
|
@ -801,7 +785,6 @@ class NewHeader extends Component {
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
: ""
|
|
||||||
}
|
}
|
||||||
<Modal
|
<Modal
|
||||||
keyboard={false}
|
keyboard={false}
|
||||||
|
|
|
@ -37,7 +37,7 @@ body>.-task-title {
|
||||||
margin:0px auto;
|
margin:0px auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100%
|
height: 100%;
|
||||||
}
|
}
|
||||||
.globalSpin {
|
.globalSpin {
|
||||||
max-height: 700px !important;
|
max-height: 700px !important;
|
||||||
|
|
Loading…
Reference in New Issue