diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 46e68133..47c1bfa4 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -262,6 +321,11 @@ + + + + + - - + - + @@ -329,7 +395,7 @@ - + @@ -391,40 +457,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -501,44 +533,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -549,25 +543,6 @@ - - - - - - - - - - - - - - - - - - - @@ -578,17 +553,6 @@ - - - - - - - - - - - @@ -596,46 +560,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -650,16 +574,6 @@ - - - - - - - - - - @@ -674,23 +588,6 @@ - - - - - - - - - - - - - - - - - @@ -698,56 +595,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -757,7 +607,7 @@ - + @@ -767,7 +617,7 @@ - + @@ -775,51 +625,68 @@ + + + + + + + + + + - + - - - - - - - - - - - - + + - + - - + + - + - - + + - + - - + + + + + + + + + + + + + + + + + + + @@ -828,13 +695,219 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/forge/Activity/Activity.js b/src/forge/Activity/Activity.js index 137677a5..6616d929 100644 --- a/src/forge/Activity/Activity.js +++ b/src/forge/Activity/Activity.js @@ -131,25 +131,25 @@ class Activity extends Component{

- {data && data.issues_count}工单 + {data && data.issues_count}任务 diff --git a/src/forge/Activity/ActivityItem.js b/src/forge/Activity/ActivityItem.js index dfecf1c9..2d75889b 100644 --- a/src/forge/Activity/ActivityItem.js +++ b/src/forge/Activity/ActivityItem.js @@ -18,7 +18,7 @@ class ActivityItem extends Component{ {item.trend_type}

: - // 如果是工单 + // 如果是任务 item.trend_type==="Issue"? {item.name} diff --git a/src/forge/Images/milepost.png b/src/forge/Images/milepost.png new file mode 100644 index 00000000..d6f7fc8a Binary files /dev/null and b/src/forge/Images/milepost.png differ diff --git a/src/forge/Main/CoderRootDirectory.js b/src/forge/Main/CoderRootDirectory.js index 78fee33c..d6fd4e87 100644 --- a/src/forge/Main/CoderRootDirectory.js +++ b/src/forge/Main/CoderRootDirectory.js @@ -238,9 +238,10 @@ class CoderRootDirectory extends Component{ :"" } - {truncateCommitId(branchLastCommit.last_commit.id)} + {/*{truncateCommitId(branchLastCommit.last_commit.id)}*/} {branchLastCommit.last_commit.message} + {truncateCommitId(branchLastCommit.last_commit.id)} {branchLastCommit.last_commit.time_from_now} ) diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js index cd5cc8f3..c07a7ffa 100644 --- a/src/forge/Main/Detail.js +++ b/src/forge/Main/Detail.js @@ -21,6 +21,7 @@ import img_focus from '../Images/focus.png'; import img_parised from '../Images/parised.png'; import img_focused from '../Images/focused.png'; import img_fork from '../Images/fork.png'; +import img_milepost from '../Images/milepost.png'; const FileNew = Loadable({ loader: () => import('../Newfile/Index'), loading: Loading, @@ -292,7 +293,7 @@ class Detail extends Component{
-
+

{ projectDetail && projectDetail.forked_from_project_id ? @@ -311,7 +312,7 @@ class Detail extends Component{ { projectDetail && projectDetail.forked_from_project_id && projectDetail.fork_info ?

- Forked from + forked from {projectDetail.fork_info.fork_project_user_name} / @@ -326,15 +327,17 @@ class Detail extends Component{
    -
  • -1 || urlFlag) ? "active" : ""}>代码
  • -
  • -1 ? "active" : ""}>工单{projectDetail&&projectDetail.issues_count===0?"":projectDetail&&projectDetail.issues_count===0?projectDetail.issues_count:""}
  • +
  • -1 || urlFlag) ? "active" : ""}>代码库
  • +
  • -1 && !(url.indexOf("Milepost")>0 || url.indexOf("meilpost")>0 || url.indexOf("tags")>0))? "active" : ""}>任务{projectDetail&&projectDetail.issues_count===0?"":projectDetail&&projectDetail.issues_count===0?projectDetail.issues_count:""}
  • -1 ? "active" : ""}>合并请求{projectDetail&&projectDetail.pull_requests_count===0?"":projectDetail&&projectDetail.pull_requests_count===0?projectDetail.pull_requests_count:""}
  • -1 ? "active" : ""}>版本发布
  • -1 ? "active" : ""}>动态
  • +
  • -1 || url.indexOf("meilpost")>-1) ? "active" : ""}>里程碑
  • { isManager &&
  • 0 ? "active" : ""}>仓库设置
  • } +
@@ -386,7 +389,7 @@ class Detail extends Component{ (props) => () } > - {/* 工单详情 */} + {/* 任务详情 */} () @@ -418,7 +421,7 @@ class Detail extends Component{ > - {/* 新建工单 */} + {/* 新建任务 */} { const {projectsId,orderId} = this.props.match.params; const url = `/projects/${projectsId}/issues/${orderId}/close_issue.json`; @@ -233,15 +233,15 @@ class MergeDetail extends Component{ return(
-
-
*/}

diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js index 60743728..a0942179 100644 --- a/src/forge/Merge/MessageCount.js +++ b/src/forge/Merge/MessageCount.js @@ -156,7 +156,7 @@ class MessageCount extends Component{ } - //关闭工单 + //关闭任务 closedetail=(id)=>{ const {projectsId,orderId} = this.props.match.params; const {data } = this.state; @@ -484,14 +484,14 @@ class MessageCount extends Component{ return(

-
-
+ {/*
*/} + {/*
*/}
{ diff --git a/src/forge/Merge/UpdateMerge.js b/src/forge/Merge/UpdateMerge.js index c5708fcd..cb4a04d5 100644 --- a/src/forge/Merge/UpdateMerge.js +++ b/src/forge/Merge/UpdateMerge.js @@ -195,9 +195,9 @@ class UpdateMerge extends Component{ const { issue_tag_ids , fixed_version_id , assigned_to_id , issue_chosen , subject, textcount,get_attachments } = this.state; return(
-
-
+ {/*
*/} + {/*
*/}
@@ -207,7 +207,7 @@ class UpdateMerge extends Component{ {getFieldDecorator('title', { rules: [{ - required: true, message: '请填写工单标题' + required: true, message: '请填写任务标题' }], initialValue: subject })( @@ -219,7 +219,7 @@ class UpdateMerge extends Component{ rules: [], initialValue: textcount })( -