diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index aba950566..b8bf92901 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,7 +1,10 @@
-
+
+
+
+
@@ -10,47 +13,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -59,70 +26,10 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -131,36 +38,36 @@
- Educoder
- title
- textcount
- forks
- commentCtx
- 上传文件
- subFileType
- .ide
- .idea
- deleteUser
- axios.delete
- style=
- width75f
- max-width
- 请输入合并
- journal-list-item
- issue-tag-show
- 创建
- .map((item,key)=>{
- .map((item,key)
- 评论成
- 该合并请求可以进行自动合并操作
- 没有
创建工单
可读权限
sub_entries
- 可读
- icon-bianji
- readOnly
isRe
+ icon-bianji
+ 可读
+ journals_count >
+ readOnly
+ Fork
+ forked
+ .OptionsUl
+ tyle=
+ overflo
+ <span className="span_title">里程碑</span>
+ <span className="span_title">里程碑
+ 分支合并到
+ Input
+ 新建标签
+ orderid
+ deletedetail
+ onMouseMove
+ TextArea
+ body
+ 该合并请求可以进行自动合并操作
+ title
+ changbodypr
+ <Select
+ commitKey
+ CoderRootDirectorytext
+ CoderRootDirectory
$PROJECT_DIR$
@@ -176,10 +83,8 @@
+
-
+
-
@@ -239,19 +152,13 @@
-
-
-
-
-
-
-
-
+
+
@@ -300,18 +207,19 @@
-
+
+
+
-
+
-
-
+
@@ -323,8 +231,8 @@
-
-
+
+
@@ -370,37 +278,22 @@
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -453,17 +346,6 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -515,20 +397,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -549,34 +417,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -628,15 +468,6 @@
-
-
-
-
-
-
-
-
-
@@ -666,43 +497,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -722,20 +516,10 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -744,24 +528,76 @@
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -772,37 +608,145 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
diff --git a/src/App.js b/src/App.js
index 1d4d382b8..c67fac722 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,6 +1,6 @@
import React, {Component} from 'react';
import './public-path';
-import logo from './logo.svg';
+// import logo from './logo.svg';
import './App.css';
import {ConfigProvider} from 'antd'
import zhCN from 'antd/lib/locale-provider/zh_CN';
@@ -21,9 +21,9 @@ import Trialapplicationreview from './modules/user/Trialapplicationreview';
import Addcourses from "./modules/courses/coursesPublic/Addcourses";
import AccountProfile from "./modules/user/AccountProfile";
import Accountnewprofile from './modules/user/Accountnewprofile';
-import Trialapplication from './modules/login/Trialapplication';
+// import Trialapplication from './modules/login/Trialapplication';
import Certifiedprofessional from './modules/modals/Certifiedprofessional';
-import NotFoundPage from './NotFoundPage'
+// import NotFoundPage from './NotFoundPage'
import Loading from './Loading'
@@ -481,7 +481,7 @@ class App extends Component {
this.setState({
mygetHelmetapi: undefined
});
- document.title = "Forge";
+ // document.title = "Forge";
var link = document.createElement('link'),
oldLink = document.getElementById('dynamic-favicon');
link.id = 'dynamic-favicon';
diff --git a/src/AppConfig.js b/src/AppConfig.js
index 9388b124f..fcbd188e7 100644
--- a/src/AppConfig.js
+++ b/src/AppConfig.js
@@ -3,7 +3,7 @@ import React from "react";
import axios from 'axios';
import md5 from 'md5';
import { requestProxy } from "./indexEduplus2RequestProxy";
-import { broadcastChannelOnmessage ,SetAppModel, isDev, queryString } from 'educoder';
+import { broadcastChannelOnmessage , isDev, queryString } from 'educoder';
import { notification } from 'antd';
import cookie from 'react-cookies';
import './index.css';
@@ -322,8 +322,7 @@ export function initAxiosInterceptors(props) {
// console.log("401401401")
// }
if (response.data.status === 403||response.data.status === "403") {
-
- locationurl('/403');
+ locationurl('/403');
}
if (response.data.status === 404) {
diff --git a/src/forge/Branch/branch.css b/src/forge/Branch/branch.css
index a8c1deeec..5f9ae58f6 100644
--- a/src/forge/Branch/branch.css
+++ b/src/forge/Branch/branch.css
@@ -17,20 +17,22 @@
box-shadow: 0px 0px 1px 1px rgba(134, 134, 134, 0.1);
border-radius: 3px;
background: #fff;
- max-height: 200px;
+ max-height: 300px;
}
.OptionsUl{
max-height: 200px;
overflow-y: auto;
+ margin-top: 10px;
}
.OptionsUl li{
- height: 22px;
- line-height: 22px;
- cursor: pointer;;
+ height: 30px;
+ /*line-height: 22px;*/
+ cursor: pointer;
}
.OptionsUl li a{
display: block;
- padding-left: 2px;
+ padding: 4px;
+ /*padding-left: 2px;*/
}
.OptionsInput{
height: 32px;
diff --git a/src/forge/Main/CoderRootDirectory.js b/src/forge/Main/CoderRootDirectory.js
index 52e858e74..78fee33c4 100644
--- a/src/forge/Main/CoderRootDirectory.js
+++ b/src/forge/Main/CoderRootDirectory.js
@@ -238,7 +238,8 @@ class CoderRootDirectory extends Component{
:""
}
- {truncateCommitId(branchLastCommit.last_commit.id)}
+ {truncateCommitId(branchLastCommit.last_commit.id)}
+ {/*{truncateCommitId(branchLastCommit.last_commit.id)}*/}
{branchLastCommit.last_commit.message}
{branchLastCommit.last_commit.time_from_now}
diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index 0d83e1aa5..b33fb1ed1 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -245,19 +245,25 @@ class Detail extends Component{
if (result) {
if (result.data.status === 0) {
this.props.history.push(`/projects/${result.data.id}/coders`);
+ this.props.showNotification(result.data.message);
}
this.setState({
isSpin:false
})
- this.props.showNotification(result.data.message);
- }else{
- this.setState({
- isSpin:false
- })
-
- this.props.showNotification(`服务器开小差了`);
+ } else {
+ if(result.data.status !== 401){
+ this.props.showNotification(result.data.message);
+ }else{
+ this.setState({
+ isSpin:false
+ })
+ this.props.showNotification(`服务器开小差了`);
+ }
}
}).catch(error=>{
+ this.setState({
+ isSpin:false
+ })
console.log(error);
})
}
diff --git a/src/forge/Main/IndexItem.js b/src/forge/Main/IndexItem.js
index 8633928b2..e8d0faf2b 100644
--- a/src/forge/Main/IndexItem.js
+++ b/src/forge/Main/IndexItem.js
@@ -31,7 +31,7 @@ class IndexItem extends Component{
{item.description}
{/* { item.forked_count ? { item.forked_count}:"" } */}
-
点赞 ({ item.praises_count })
+
赞 ({ item.praises_count })
{ item.language && item.language.id ? :"" }
diff --git a/src/forge/Merge/MergeDetail.js b/src/forge/Merge/MergeDetail.js
index 6a6b82a19..3312ba8f1 100644
--- a/src/forge/Merge/MergeDetail.js
+++ b/src/forge/Merge/MergeDetail.js
@@ -255,10 +255,15 @@ class MergeDetail extends Component{
{ data && data.issue.description}
-
+
{data&&data.issue_status==="关闭"?"关闭中!":"开启中!"}
- 请求从{data && data.pull_request.head}分支合并到{data && pull_request.base}分支
- {/* 由 { data && data.issue.author_name} 于 { data && data.issue.created_at }创建{ data && data.issue.journals_count && data.issue.journals_count > 0 ?` · ${data.issue.journals_count} 条评论`:""} */}
+
+ 由 { data && data.issue.author_name} 于 { data && data.issue.created_at }创建{ data && data.issue.journals_count && data.issue.journals_count > 0 ?` · ${data.issue.journals_count} 条评论`:""}
+
+
+
+ 请求从 {data && data.pull_request.head} 分支合并到 {data && data.pull_request.base} 分支
+
@@ -314,9 +319,9 @@ class MergeDetail extends Component{
指派给
{data && data.issue.assign_user_name}
-
+
里程碑
- {data&&data.issue.version===null?"未添加里程碑":data&&data.issue.version.length===0?data.issue.version:'未添加里程碑'}
+ {data&&data.issue.version===null?"未添加里程碑":data&&data.issue.version.length===0?data.issue.version:'未添加里程碑'}
diff --git a/src/forge/Merge/MergeItem.js b/src/forge/Merge/MergeItem.js
index ea55f1bf4..553a4a6d7 100644
--- a/src/forge/Merge/MergeItem.js
+++ b/src/forge/Merge/MergeItem.js
@@ -1,7 +1,29 @@
import React , { Component } from 'react';
import { Link } from 'react-router-dom';
+import {Popconfirm} from "antd";
class MergeItem extends Component{
+ constructor(props){
+ super(props);
+ this.state={
+ //显示 隐藏
+ isdisplay:false,
+ orderid:'',
+ }
+ }
+
+ onMouseMove=(type)=>{
+ this.setState({
+ isdisplay:true,
+ orderid:type
+ })
+ }
+
+ onMouseOut=()=>{
+ this.setState({
+ isdisplay:false
+ })
+ }
set_issue_tags =(issue_tags)=>{
if(issue_tags && issue_tags.length > 0){
@@ -41,12 +63,23 @@ class MergeItem extends Component{
}
-
+ this.onMouseMove(item.id)} onMouseOut={()=>this.onMouseOut()}>
- {this.set_issue_tags(item.issue_tags)}
{/*- {item.issue_type || "--"}
*/}
- {item.version || "--"}
- {item.assign_user_name || "--"}
- - { item.journals_count ? {item.journals_count} : "" }
+ -
+
+
+ { item.journals_count ? {item.journals_count} : "" }
+
+
+
+
)
diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js
index 22c0f4a7e..60743728f 100644
--- a/src/forge/Merge/MessageCount.js
+++ b/src/forge/Merge/MessageCount.js
@@ -11,7 +11,7 @@ import './merge.css';
import QuillForEditor from '../quillForEditor';
import MergeSubmit from './MergeSubmit';
-// const TextArea = Input.TextArea;
+const TextArea = Input.TextArea;
const options = [
['bold', 'italic', 'underline'],
@@ -20,6 +20,7 @@ const options = [
['link', 'image'],
['formula']
];
+
class MessageCount extends Component{
constructor(props){
super(props);
@@ -182,7 +183,7 @@ class MessageCount extends Component{
project_id:projectsId,
id:data.pull_request.id,
do:mergekey,
- body:JSON.stringify(body),
+ body:body,
title:title,
}).then(result=>{
if(result){
@@ -250,9 +251,9 @@ class MessageCount extends Component{
})
}
- changbodypr=(value)=>{
+ changbodypr=(e)=>{
this.setState({
- body:value
+ body:e.target.value
})
}
editdetail=(count,status)=>{
@@ -502,11 +503,13 @@ class MessageCount extends Component{
}
{data&&data.issue.issue_status==="关闭"?"关闭中":data&&data.pull_request.status===0?"开启中":"已合并"}
-
- 请求从{data && data.pull_request.head}分支合并到{data && data.pull_request.base}分支
-
- {/* 由 { data && data.issue.author_name} 于 { data && data.issue.created_at }创建{ data && data.issue.journals_count && data.issue.journals_count > 0 ?` · ${data.issue.journals_count} 条评论`:""} */}
+
+ 由 { data && data.issue.author_name} 于 { data && data.issue.created_at }创建{ data && data.issue.journals_count && data.issue.journals_count > 0 ?` · ${data.issue.journals_count} 条评论`:""}
+
+
+ 请求从 {data && data.pull_request.head} 分支合并到 {data && data.pull_request.base} 分支
+
{
data && data.issue.user_permission ?
@@ -564,21 +567,21 @@ class MessageCount extends Component{
-
-
-
- {/*
*/}
+ {/*
*/}
+ {/**/}
+ {/*
*/}
+
this.prmerge()}>合并请求
@@ -636,9 +639,9 @@ class MessageCount extends Component{
data && data.issue.issue_tags ? {data.issue.issue_tags[0].name} : "--"
}
-
+
里程碑
- {
+ {
data && data.issue.version ? data.issue.version : "--"
}
diff --git a/src/forge/Order/Detail.js b/src/forge/Order/Detail.js
index 6f2dba645..aa2360656 100644
--- a/src/forge/Order/Detail.js
+++ b/src/forge/Order/Detail.js
@@ -574,9 +574,9 @@ class Detail extends Component{
data && data.issue_tags ? {data.issue_tags[0].name} : "--"
}
-
+
里程碑
- {
+ {
data && data.version ? data.version : "--"
}
diff --git a/src/forge/Order/OrderItem.js b/src/forge/Order/OrderItem.js
index af851218d..ba09be430 100644
--- a/src/forge/Order/OrderItem.js
+++ b/src/forge/Order/OrderItem.js
@@ -77,7 +77,8 @@ class OrderItem extends Component{
- {item.assign_user_name || "--"}
{item.priority|| "--"}
- {item.done_ratio || "--"}
-
+
-
+
{ item.journals_count ? {item.journals_count} : "" }
@@ -91,7 +92,8 @@ class OrderItem extends Component{
-
+
+
diff --git a/src/forge/Order/UpdateDetail.js b/src/forge/Order/UpdateDetail.js
index 438a44ecc..638f5330b 100644
--- a/src/forge/Order/UpdateDetail.js
+++ b/src/forge/Order/UpdateDetail.js
@@ -9,9 +9,7 @@ import{ Modal , Form , Input , Select } from 'antd'
import Attachments from '../Upload/attachment';
import QuillForEditor from '../quillForEditor';
-import { QuillDeltaToHtmlConverter } from 'quill-delta-to-html'
-const TextArea = Input.TextArea;
const Option = Select.Option;
const options = [
@@ -136,6 +134,51 @@ class UpdateDetail extends Component{
)
}
}
+
+ // 切换完成度
+ changeRatio=(e)=>{
+ if(e === 0){
+ this.props.form.setFieldsValue({
+ status_id:1
+ })
+ this.setState({
+ status_id:1
+ })
+ }else if(e === 100){
+ this.props.form.setFieldsValue({
+ status_id:3
+ })
+ this.setState({
+ status_id:3
+ })
+ }else{
+ this.props.form.setFieldsValue({
+ status_id:2
+ })
+ this.setState({
+ status_id:2
+ })
+ }
+ }
+ // 切换状态
+ changeStatus=(e)=>{
+ // console.log(e);
+ if(e === 1){
+ this.props.form.setFieldsValue({
+ done_ratio:0
+ })
+ this.setState({
+ done_ratio:0
+ })
+ }else if(e === 3){
+ this.props.form.setFieldsValue({
+ done_ratio:100
+ })
+ this.setState({
+ done_ratio:100
+ })
+ }
+ }
stringJson=(value) =>{
let _value = null;
@@ -300,7 +343,7 @@ class UpdateDetail extends Component{
required: true, message: '请选择完成状态'
}],
})(
-