Merge pull request 'fix wip' (#162) from pre_develop into featrue_system_popup_notification
This commit is contained in:
commit
68b34ab418
|
@ -1949,9 +1949,7 @@ a.decoration {
|
||||||
}
|
}
|
||||||
|
|
||||||
.mr20 {
|
.mr20 {
|
||||||
margin-right: 10px;
|
margin-right: 20px;
|
||||||
margin-left: 10px;
|
|
||||||
float: left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mr25 {
|
.mr25 {
|
||||||
|
@ -1959,7 +1957,7 @@ a.decoration {
|
||||||
}
|
}
|
||||||
|
|
||||||
.mr30 {
|
.mr30 {
|
||||||
margin-right: 10px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mr35 {
|
.mr35 {
|
||||||
|
|
|
@ -53,8 +53,10 @@ function SelectOverlay({ changeBranch , tagflag , branchList , projectsId , owne
|
||||||
setIsSpin(true);
|
setIsSpin(true);
|
||||||
if(e.key === "branch"){
|
if(e.key === "branch"){
|
||||||
getBranchs(projectsId,owner);
|
getBranchs(projectsId,owner);
|
||||||
|
setNav(0);
|
||||||
}else{
|
}else{
|
||||||
getTags(projectsId,owner);
|
getTags(projectsId,owner);
|
||||||
|
setNav(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -402,7 +402,7 @@ function CoderDepot(props){
|
||||||
getPathUrl={getPathUrl}
|
getPathUrl={getPathUrl}
|
||||||
/>
|
/>
|
||||||
:
|
:
|
||||||
<div>
|
<React.Fragment>
|
||||||
<AlignCenter className="mr20">
|
<AlignCenter className="mr20">
|
||||||
<Link to={`/${owner}/${projectsId}/branches`} className="iconBtn">
|
<Link to={`/${owner}/${projectsId}/branches`} className="iconBtn">
|
||||||
<i className="iconfont icon-master_icon font-16"></i>
|
<i className="iconfont icon-master_icon font-16"></i>
|
||||||
|
@ -417,7 +417,7 @@ function CoderDepot(props){
|
||||||
<span>{projectDetail && projectDetail.tags && projectDetail.tags.total_count}</span>
|
<span>{projectDetail && projectDetail.tags && projectDetail.tags.total_count}</span>
|
||||||
</Link>
|
</Link>
|
||||||
</AlignCenter>
|
</AlignCenter>
|
||||||
</div>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
</AlignCenter>
|
</AlignCenter>
|
||||||
<AlignCenter className="depotBtn">
|
<AlignCenter className="depotBtn">
|
||||||
|
|
|
@ -91,7 +91,7 @@ export default (props) => {
|
||||||
{commit && commit.message &&
|
{commit && commit.message &&
|
||||||
<RenderHtml className="task-hide" value={commit.message}/>
|
<RenderHtml className="task-hide" value={commit.message}/>
|
||||||
}
|
}
|
||||||
<Link to={`/${owner}/${projectsId}/tree/${truncateCommitId(sha)}`}><i className="iconfont icon-fenzhi2 font-18"></i>{data.branch}</Link>
|
<Link to={`/${owner}/${projectsId}/tree/${data.branch}`}><i className="iconfont icon-fenzhi2 font-18"></i>{data.branch}</Link>
|
||||||
</div>
|
</div>
|
||||||
<Button type="primary" onClick={()=>{history.push(`/${owner}/${projectsId}/tree/${truncateCommitId(sha)}`)}} className="btnblue" style={{height:"36px"}}>浏览文件</Button>
|
<Button type="primary" onClick={()=>{history.push(`/${owner}/${projectsId}/tree/${truncateCommitId(sha)}`)}} className="btnblue" style={{height:"36px"}}>浏览文件</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -195,7 +195,7 @@
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
&:nth-child(5){
|
&:nth-child(5n){
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -271,8 +271,10 @@
|
||||||
word-wrap:break-word;
|
word-wrap:break-word;
|
||||||
.markdown-body{
|
.markdown-body{
|
||||||
line-height: 10px;
|
line-height: 10px;
|
||||||
|
font-size: 14px;
|
||||||
& p {
|
& p {
|
||||||
margin: 0px 0px !important;
|
margin: 1px 0px 0px !important;
|
||||||
|
font-size: 14px !important;
|
||||||
}
|
}
|
||||||
& ol,ul{
|
& ol,ul{
|
||||||
padding-bottom: 3px;
|
padding-bottom: 3px;
|
||||||
|
|
|
@ -119,8 +119,8 @@ function Tags(props) {
|
||||||
return(
|
return(
|
||||||
<div>
|
<div>
|
||||||
<SubMenu tab={"tags"} projectsId={projectsId} owner={owner}/>
|
<SubMenu tab={"tags"} projectsId={projectsId} owner={owner}/>
|
||||||
<div className="tagSpin">
|
|
||||||
<Spin spinning={isSpin}>
|
<Spin spinning={isSpin}>
|
||||||
|
<div className="tagSpin">
|
||||||
{
|
{
|
||||||
source && source.length > 0 &&
|
source && source.length > 0 &&
|
||||||
<Table
|
<Table
|
||||||
|
@ -130,8 +130,8 @@ function Tags(props) {
|
||||||
{
|
{
|
||||||
source && source.length === 0 && <Nonedata _html={'暂无数据~'}/>
|
source && source.length === 0 && <Nonedata _html={'暂无数据~'}/>
|
||||||
}
|
}
|
||||||
</Spin>
|
|
||||||
</div>
|
</div>
|
||||||
|
</Spin>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,10 +39,6 @@
|
||||||
}
|
}
|
||||||
.tagSpin{
|
.tagSpin{
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
text-align: center;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
.tagBranch{
|
.tagBranch{
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
|
|
|
@ -153,15 +153,20 @@ class Setting extends Component {
|
||||||
name: values.project_name,
|
name: values.project_name,
|
||||||
description: values.project_description,
|
description: values.project_description,
|
||||||
private: private_check,
|
private: private_check,
|
||||||
|
identifier:values.project_identifier,
|
||||||
...values,
|
...values,
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
this.props.showNotification(`仓库信息修改成功!`);
|
|
||||||
const { getDetail } = this.props;
|
|
||||||
getDetail && getDetail();
|
|
||||||
this.setState({
|
this.setState({
|
||||||
loading:false
|
loading:false
|
||||||
})
|
})
|
||||||
|
this.props.showNotification(`仓库信息修改成功!`);
|
||||||
|
// if(values.project_identifier !== projectsId){
|
||||||
|
// this.props.history.push(`/${owner}/${values.project_identifier}/settings`);
|
||||||
|
// }else{
|
||||||
|
// }
|
||||||
|
const { getDetail } = this.props;
|
||||||
|
getDetail && getDetail();
|
||||||
}
|
}
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
@ -283,6 +288,18 @@ class Setting extends Component {
|
||||||
)}
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</div>
|
</div>
|
||||||
|
{/* <Form.Item label="项目标识 (项目url标识部分,更改项目标识将导致原仓库地址失效)">
|
||||||
|
{getFieldDecorator("project_identifier", {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入项目标识",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
})(
|
||||||
|
<Input placeholder="项目标识请使用与项目相关的英文关键字" maxLength="100" />
|
||||||
|
)}
|
||||||
|
</Form.Item> */}
|
||||||
<Form.Item label="项目简介">
|
<Form.Item label="项目简介">
|
||||||
{getFieldDecorator("project_description", {
|
{getFieldDecorator("project_description", {
|
||||||
rules: [],
|
rules: [],
|
||||||
|
|
Loading…
Reference in New Issue