From d65f771b6bd164c847428f35230636b4b2f7ab66 Mon Sep 17 00:00:00 2001
From: "sylor_huang@126.com"
Date: Wed, 1 Apr 2020 18:23:57 +0800
Subject: [PATCH 01/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 436 +++++++++++++++--------------
src/forge/Branch/branch.css | 10 +-
src/forge/Main/Detail.js | 7 +-
src/forge/Merge/MergeDetail.js | 15 +-
src/forge/Merge/MergeItem.js | 35 ++-
src/forge/Merge/MessageCount.js | 4 +-
src/forge/Order/Detail.js | 4 +-
src/forge/Order/OrderItem.js | 6 +-
src/forge/Order/order.css | 9 +
src/forge/Settings/Collaborator.js | 21 +-
src/forge/Settings/setting.css | 2 +-
11 files changed, 305 insertions(+), 244 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index aba950566..f01b417b0 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,7 +1,19 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -10,6 +22,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -23,67 +65,19 @@
-
+
-
-
-
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -94,8 +88,8 @@
-
-
+
+
@@ -106,8 +100,8 @@
-
-
+
+
@@ -116,13 +110,10 @@
-
+
-
-
-
-
-
+
+
@@ -131,16 +122,6 @@
- Educoder
- title
- textcount
- forks
- commentCtx
- 上传文件
- subFileType
- .ide
- .idea
- deleteUser
axios.delete
style=
width75f
@@ -157,10 +138,20 @@
创建工单
可读权限
sub_entries
- 可读
- icon-bianji
- readOnly
isRe
+ icon-bianji
+ 可读
+ journals_count >
+ readOnly
+ Fork
+ forked
+ .OptionsUl
+ deletedetail
+ tyle=
+ overflo
+ orderid
+ <span className="span_title">里程碑</span>
+ <span className="span_title">里程碑
$PROJECT_DIR$
@@ -179,7 +170,6 @@
-
@@ -187,35 +177,40 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
-
+
-
@@ -223,35 +218,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -300,18 +271,19 @@
-
+
+
-
+
-
+
@@ -323,8 +295,8 @@
-
-
+
+
@@ -370,6 +342,20 @@
+
@@ -381,16 +367,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -549,34 +525,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -628,15 +576,6 @@
-
-
-
-
-
-
-
-
-
@@ -666,23 +605,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -696,13 +618,6 @@
-
-
-
-
-
-
-
@@ -722,20 +637,37 @@
-
+
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -744,24 +676,62 @@
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -772,42 +742,76 @@
-
+
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/forge/Branch/branch.css b/src/forge/Branch/branch.css
index a8c1deeec..f9c4dbd5b 100644
--- a/src/forge/Branch/branch.css
+++ b/src/forge/Branch/branch.css
@@ -22,15 +22,17 @@
.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/Detail.js b/src/forge/Main/Detail.js
index 0d83e1aa5..c2bfa4dee 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -249,7 +249,9 @@ class Detail extends Component{
this.setState({
isSpin:false
})
- this.props.showNotification(result.data.message);
+ if(result.data.status !== 401){
+ this.props.showNotification(result.data.message);
+ }
}else{
this.setState({
isSpin:false
@@ -258,6 +260,9 @@ class Detail extends Component{
this.props.showNotification(`服务器开小差了`);
}
}).catch(error=>{
+ this.setState({
+ isSpin:false
+ })
console.log(error);
})
}
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{
Date: Wed, 1 Apr 2020 18:57:58 +0800
Subject: [PATCH 02/12] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 266 +++++++++++++-------------------
src/forge/Merge/MergeItem.js | 2 +-
src/forge/Merge/MessageCount.js | 10 +-
src/forge/Version/NewVersion.js | 4 +-
4 files changed, 115 insertions(+), 167 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index f01b417b0..51fa0abde 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,17 +2,9 @@
-
-
-
-
-
-
-
-
-
+
@@ -23,19 +15,10 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -43,53 +26,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -100,8 +41,8 @@
-
-
+
+
@@ -109,23 +50,10 @@
-
-
-
-
-
-
-
-
-
- axios.delete
- style=
- width75f
- max-width
请输入合并
journal-list-item
issue-tag-show
@@ -146,12 +74,16 @@
Fork
forked
.OptionsUl
- deletedetail
tyle=
overflo
- orderid
<span className="span_title">里程碑</span>
<span className="span_title">里程碑
+ 分支合并到
+ Input
+ 新建标签
+ orderid
+ deletedetail
+ onMouseMove
$PROJECT_DIR$
@@ -167,7 +99,6 @@
@@ -218,6 +150,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -272,12 +222,12 @@
-
+
-
+
@@ -296,7 +246,7 @@
-
+
@@ -429,17 +379,6 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -605,19 +544,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -637,16 +563,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -684,16 +600,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -732,16 +638,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -752,16 +648,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -783,10 +669,70 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -795,20 +741,20 @@
-
-
+
+
-
+
-
-
+
+
-
+
diff --git a/src/forge/Merge/MergeItem.js b/src/forge/Merge/MergeItem.js
index b7bea6e03..553a4a6d7 100644
--- a/src/forge/Merge/MergeItem.js
+++ b/src/forge/Merge/MergeItem.js
@@ -63,7 +63,7 @@ class MergeItem extends Component{
}
-
+ this.onMouseMove(item.id)} onMouseOut={()=>this.onMouseOut()}>
- {this.set_issue_tags(item.issue_tags)}
{/*- {item.issue_type || "--"}
*/}
- {item.version || "--"}
diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js
index ed7cf0354..2ea07020c 100644
--- a/src/forge/Merge/MessageCount.js
+++ b/src/forge/Merge/MessageCount.js
@@ -502,11 +502,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 ?
diff --git a/src/forge/Version/NewVersion.js b/src/forge/Version/NewVersion.js
index 350a929a4..6cda959cb 100644
--- a/src/forge/Version/NewVersion.js
+++ b/src/forge/Version/NewVersion.js
@@ -145,7 +145,7 @@ class NewVersion extends Component{
版本发布组织项目的版本。
From 3cfb5a037030195b7c9471a2cab1863fa79674af Mon Sep 17 00:00:00 2001
From: "sylor_huang@126.com"
Date: Wed, 1 Apr 2020 19:08:52 +0800
Subject: [PATCH 03/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 98 +++++++++++++++++++-----------
src/forge/Version/UpdateVersion.js | 2 +-
2 files changed, 62 insertions(+), 38 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 51fa0abde..86b49613c 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,9 +2,7 @@
-
-
-
+
@@ -18,7 +16,7 @@
-
+
@@ -26,11 +24,11 @@
-
+
-
-
+
+
@@ -41,8 +39,32 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -130,6 +152,7 @@
+
@@ -166,7 +189,7 @@
-
+
@@ -222,12 +245,12 @@
-
+
-
+
@@ -246,7 +269,7 @@
-
+
@@ -308,15 +331,6 @@
-
-
-
-
-
-
-
-
-
@@ -712,23 +726,13 @@
-
+
-
-
-
-
-
-
-
-
-
-
@@ -741,8 +745,8 @@
-
-
+
+
@@ -751,8 +755,28 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/forge/Version/UpdateVersion.js b/src/forge/Version/UpdateVersion.js
index 07c82b3ec..6f873cbc4 100644
--- a/src/forge/Version/UpdateVersion.js
+++ b/src/forge/Version/UpdateVersion.js
@@ -152,7 +152,7 @@ class NewVersion extends Component{
initialValue:this.state.data&&this.state.data.name
})(
-
+
)}
From aae855bda50f312cb23e54de84a0974d2c416fc4 Mon Sep 17 00:00:00 2001
From: "sylor_huang@126.com"
Date: Thu, 2 Apr 2020 10:09:38 +0800
Subject: [PATCH 04/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 88 ++++++++++++++++++++-------------
src/forge/Branch/branch.css | 2 +-
src/forge/Merge/MessageCount.js | 2 +-
3 files changed, 57 insertions(+), 35 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 86b49613c..e1e91cf60 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,7 +2,8 @@
-
+
+
@@ -28,7 +29,7 @@
-
+
@@ -40,7 +41,7 @@
-
+
@@ -60,11 +61,11 @@
-
+
-
-
+
+
@@ -72,6 +73,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -141,7 +163,6 @@
-
@@ -149,10 +170,11 @@
-
+
+
@@ -189,7 +211,7 @@
-
+
@@ -245,12 +267,12 @@
-
+
-
+
@@ -269,7 +291,7 @@
-
+
@@ -634,13 +656,6 @@
-
-
-
-
-
-
-
@@ -693,16 +708,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -746,7 +751,7 @@
-
+
@@ -756,7 +761,7 @@
-
+
@@ -775,13 +780,30 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/forge/Branch/branch.css b/src/forge/Branch/branch.css
index f9c4dbd5b..5f9ae58f6 100644
--- a/src/forge/Branch/branch.css
+++ b/src/forge/Branch/branch.css
@@ -17,7 +17,7 @@
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;
diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js
index 2ea07020c..69c364ab4 100644
--- a/src/forge/Merge/MessageCount.js
+++ b/src/forge/Merge/MessageCount.js
@@ -502,7 +502,7 @@ class MessageCount extends Component{
}
{data&&data.issue.issue_status==="关闭"?"关闭中":data&&data.pull_request.status===0?"开启中":"已合并"}
-
+
由 { data && data.issue.author_name} 于 { data && data.issue.created_at }创建{ data && data.issue.journals_count && data.issue.journals_count > 0 ?` · ${data.issue.journals_count} 条评论`:""}
From 65df8b01466c6de5c2bbbbc44112cb0db19b1fef Mon Sep 17 00:00:00 2001
From: "sylor_huang@126.com"
Date: Thu, 2 Apr 2020 11:00:53 +0800
Subject: [PATCH 05/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E5=B9=B6?=
=?UTF-8?q?=E8=AF=B7=E6=B1=82=E7=9A=84=E6=8F=8F=E8=BF=B0=E4=B8=BAtextarea?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 126 +++++++-------------------------
src/forge/Merge/MessageCount.js | 33 +++++----
2 files changed, 45 insertions(+), 114 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index e1e91cf60..b73c5f511 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,7 +2,6 @@
-
@@ -13,80 +12,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -98,8 +28,6 @@
- 请输入合并
- journal-list-item
issue-tag-show
创建
.map((item,key)=>{
@@ -128,6 +56,8 @@
orderid
deletedetail
onMouseMove
+ commitKey
+ TextArea
$PROJECT_DIR$
@@ -267,18 +197,18 @@
-
+
-
+
-
+
@@ -291,7 +221,7 @@
-
+
@@ -609,23 +539,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -791,14 +704,31 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js
index 69c364ab4..201b9c4c3 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);
@@ -566,21 +567,21 @@ class MessageCount extends Component{
-
-
-
- {/*
*/}
+ {/*
*/}
+ {/**/}
+ {/*
*/}
+
this.prmerge()}>合并请求
From bc496c6d8b202be053a66247765668b641b6256a Mon Sep 17 00:00:00 2001
From: "sylor_huang@126.com"
Date: Thu, 2 Apr 2020 11:27:46 +0800
Subject: [PATCH 06/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9pr=E7=9A=84=E6=8F=8F?=
=?UTF-8?q?=E8=BF=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 21 +++++++++++----------
src/forge/Merge/MessageCount.js | 6 +++---
2 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b73c5f511..b424df457 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,6 +2,7 @@
+
@@ -15,8 +16,8 @@
-
-
+
+
@@ -28,12 +29,10 @@
- issue-tag-show
创建
.map((item,key)=>{
.map((item,key)
评论成
- 该合并请求可以进行自动合并操作
没有
创建工单
可读权限
@@ -58,6 +57,8 @@
onMouseMove
commitKey
TextArea
+ 该合并请求可以进行自动合并操作
+ body
$PROJECT_DIR$
@@ -197,12 +198,12 @@
-
+
-
+
@@ -220,8 +221,8 @@
-
-
+
+
@@ -727,8 +728,8 @@
-
-
+
+
diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js
index 201b9c4c3..f3aa818c8 100644
--- a/src/forge/Merge/MessageCount.js
+++ b/src/forge/Merge/MessageCount.js
@@ -183,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){
@@ -378,7 +378,7 @@ class MessageCount extends Component{
render(){
const { projectsId,mergeId } = this.props.match.params;
- const { data,journalsdata, page, limit, search_count, isSpin, isedit, showFiles , commentsContent , quillFlag } = this.state;
+ const { data,journalsdata, page, limit, search_count, isSpin, isedit, showFiles , commentsContent , quillFlag, body } = this.state;
const { getFieldDecorator } = this.props.form;
const { current_user } = this.props;
const url = this.props.history.location.pathname;
@@ -581,7 +581,7 @@ class MessageCount extends Component{
{/*onContentChange={this.changbodypr}*/}
{/*/>*/}
{/**/}
-
+
this.prmerge()}>合并请求
From dc01557c591c16c77ad90b20003548860337bebb Mon Sep 17 00:00:00 2001
From: "sylor_huang@126.com"
Date: Thu, 2 Apr 2020 11:38:51 +0800
Subject: [PATCH 07/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9pr=E6=8F=90=E4=BA=A4?=
=?UTF-8?q?=E4=B8=BAtextarea?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 25 +++++++++++--------------
src/forge/Merge/MessageCount.js | 8 ++++----
2 files changed, 15 insertions(+), 18 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b424df457..341caf23a 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,10 +1,7 @@
-
-
-
-
+
@@ -16,8 +13,8 @@
-
-
+
+
@@ -57,8 +54,8 @@
onMouseMove
commitKey
TextArea
- 该合并请求可以进行自动合并操作
body
+ 该合并请求可以进行自动合并操作
$PROJECT_DIR$
@@ -198,18 +195,18 @@
-
+
-
+
-
+
@@ -221,8 +218,8 @@
-
-
+
+
@@ -728,8 +725,8 @@
-
-
+
+
diff --git a/src/forge/Merge/MessageCount.js b/src/forge/Merge/MessageCount.js
index f3aa818c8..60743728f 100644
--- a/src/forge/Merge/MessageCount.js
+++ b/src/forge/Merge/MessageCount.js
@@ -251,9 +251,9 @@ class MessageCount extends Component{
})
}
- changbodypr=(value)=>{
+ changbodypr=(e)=>{
this.setState({
- body:value
+ body:e.target.value
})
}
editdetail=(count,status)=>{
@@ -378,7 +378,7 @@ class MessageCount extends Component{
render(){
const { projectsId,mergeId } = this.props.match.params;
- const { data,journalsdata, page, limit, search_count, isSpin, isedit, showFiles , commentsContent , quillFlag, body } = this.state;
+ const { data,journalsdata, page, limit, search_count, isSpin, isedit, showFiles , commentsContent , quillFlag } = this.state;
const { getFieldDecorator } = this.props.form;
const { current_user } = this.props;
const url = this.props.history.location.pathname;
@@ -581,7 +581,7 @@ class MessageCount extends Component{
{/*onContentChange={this.changbodypr}*/}
{/*/>*/}
{/**/}
-
+
this.prmerge()}>合并请求
From dc00ffc34bb683cdb8f23bd7491e4ceefb53c06d Mon Sep 17 00:00:00 2001
From: "sylor_huang@126.com"
Date: Thu, 2 Apr 2020 13:35:56 +0800
Subject: [PATCH 08/12] build
---
.idea/workspace.xml | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 341caf23a..e81ee7eb6 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -13,8 +13,8 @@
-
-
+
+
@@ -26,8 +26,6 @@
- 创建
- .map((item,key)=>{
.map((item,key)
评论成
没有
@@ -56,6 +54,8 @@
TextArea
body
该合并请求可以进行自动合并操作
+ title
+ changbodypr
$PROJECT_DIR$
@@ -195,12 +195,12 @@
-
+
-
+
@@ -218,8 +218,8 @@
-
-
+
+
@@ -725,8 +725,8 @@
-
-
+
+
From 1d64957e5ac96297a0ba9a2a1bfde6961977a3bd Mon Sep 17 00:00:00 2001
From: caicai8 <1149225589@qq.com>
Date: Thu, 2 Apr 2020 15:48:19 +0800
Subject: [PATCH 09/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.js | 6 +++---
src/AppConfig.js | 2 +-
src/forge/Main/Detail.js | 2 +-
src/forge/Version/UpdateVersion.js | 12 ++++++------
src/modules/tpm/TPMIndexHOC.js | 4 ++--
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/App.js b/src/App.js
index 1d4d382b8..0ea1aed69 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'
diff --git a/src/AppConfig.js b/src/AppConfig.js
index 9388b124f..4fa0e7dcc 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';
diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index 34553cafa..2bace9299 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -245,11 +245,11 @@ 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.props.showNotification(`服务器开小差了`);
}
diff --git a/src/forge/Version/UpdateVersion.js b/src/forge/Version/UpdateVersion.js
index 07c82b3ec..4b1439348 100644
--- a/src/forge/Version/UpdateVersion.js
+++ b/src/forge/Version/UpdateVersion.js
@@ -173,14 +173,14 @@ class NewVersion extends Component{
-
-
标记为预行版
-
标记此版本不适合生产使用
+
diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js
index 60ceab86a..2ff446065 100644
--- a/src/modules/tpm/TPMIndexHOC.js
+++ b/src/modules/tpm/TPMIndexHOC.js
@@ -20,9 +20,9 @@ import Trialapplication from "../login/Trialapplication";
const $ = window.$;
const versionNum = '0001';
-let _url_origin='';
+let _url_origin='';
if(window.location.port === "3007"){
- _url_origin="https://test-newweb.educoder.net";
+ _url_origin="https://testforgeplus.trustie.net";
}
if (!window['indexHOCLoaded']) {
window.indexHOCLoaded = true;
From f511e85d38658e3d48f2c84eb7814d4066889c22 Mon Sep 17 00:00:00 2001
From: caicai8 <1149225589@qq.com>
Date: Thu, 2 Apr 2020 17:14:04 +0800
Subject: [PATCH 10/12] =?UTF-8?q?=E6=B8=85=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.js | 2 +-
src/AppConfig.js | 3 +--
src/modules/tpm/NewHeader.js | 2 +-
src/modules/tpm/TPMIndexHOC.js | 42 +++++++++++++++++-----------------
4 files changed, 24 insertions(+), 25 deletions(-)
diff --git a/src/App.js b/src/App.js
index 0ea1aed69..c67fac722 100644
--- a/src/App.js
+++ b/src/App.js
@@ -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 4fa0e7dcc..fcbd188e7 100644
--- a/src/AppConfig.js
+++ b/src/AppConfig.js
@@ -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/modules/tpm/NewHeader.js b/src/modules/tpm/NewHeader.js
index 4f8567b95..8cce393dc 100644
--- a/src/modules/tpm/NewHeader.js
+++ b/src/modules/tpm/NewHeader.js
@@ -691,7 +691,7 @@ submittojoinclass=(value)=>{
this.setState({
mygetHelmetapi2: 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/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js
index 2ff446065..2c17791ec 100644
--- a/src/modules/tpm/TPMIndexHOC.js
+++ b/src/modules/tpm/TPMIndexHOC.js
@@ -1,18 +1,18 @@
import React, { Component } from 'react';
-import PropTypes from 'prop-types';
+// import PropTypes from 'prop-types';
import NewHeader from './NewHeader'
import NewFooter from './NewFooter'
import SiderBar from './SiderBar'
-import { getUrl, downloadFile } from 'educoder'
+import { downloadFile } from 'educoder'
import axios from 'axios';
import { Spin } from 'antd';
import './TPMIndex.css';
import LoginDialog from '../login/LoginDialog';
import AccountProfile from '../user/AccountProfile';
import AccountPhoneemail from '../user/AccountPhoneemail';
-import Trialapplication from "../login/Trialapplication";
+// import Trialapplication from "../login/Trialapplication";
// import "antd/dist/antd.css";
// import '../../css/educoder/edu-common.css'
// import '../../css/educoder/edu-all.css'
@@ -128,24 +128,24 @@ export function TPMIndexHOC(WrappedComponent) {
componentDidMount() {
// console.log("TPMIndexHOC========");
- // console.log(this.props);
- window.addEventListener('keyup', this.keyupListener)
+ // console.log("match",this.props);
+ window.addEventListener('keyup', this.keyupListener);
- if(this.props.match.path==="/"){
- // document.title="创新源于实践";
- }else if(this.props.match.path==="/403"){
- document.title="你没有权限访问";
- }else if(this.props.match.path==="/nopage"){
- document.title="没有找到该页面";
- }else if(this.props.match.path==="/shixuns"){
- document.title="实训项目";
- }else if(this.props.match.path==="/paths"){
- document.title="实践课程";
- }else if(this.props.match.path==="/courses"){
- document.title="翻转课堂";
- }else if(this.props.match.path==="/projects"){
- document.title="开源项目";
- }
+ if(this.props.match.path==="/"){
+ document.title="Forge";
+ }else if(this.props.match.path==="/403"){
+ document.title="你没有权限访问";
+ }else if(this.props.match.path==="/nopage"){
+ document.title="没有找到该页面";
+ }else if(this.props.match.path==="/shixuns"){
+ document.title="实训项目";
+ }else if(this.props.match.path==="/paths"){
+ document.title="实践课程";
+ }else if(this.props.match.path==="/courses"){
+ document.title="翻转课堂";
+ }else if(this.props.match.path==="/projects"){
+ document.title="开源项目";
+ }
$.ajaxSetup({
cache: true
@@ -264,7 +264,7 @@ export function TPMIndexHOC(WrappedComponent) {
this.setState({
mygetHelmetapi: undefined
});
- document.title = "Forge";
+ // document.title = "Forge";
var link = document.createElement('link'),
oldLink = document.getElementById('dynamic-favicon');
link.id = 'dynamic-favicon';
From f6dba27d8a99ca146639088d079054b049b4d878 Mon Sep 17 00:00:00 2001
From: "sylor_huang@126.com"
Date: Thu, 2 Apr 2020 17:54:23 +0800
Subject: [PATCH 11/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9commit=E7=9A=84?=
=?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=9C=B0=E5=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/workspace.xml | 126 ++++++++++++++++-----------
src/forge/Main/CoderRootDirectory.js | 3 +-
2 files changed, 75 insertions(+), 54 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index e81ee7eb6..b8bf92901 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,7 +1,10 @@
-
+
+
+
+
@@ -11,24 +14,30 @@
-
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
- .map((item,key)
- 评论成
- 没有
创建工单
可读权限
sub_entries
@@ -50,12 +59,15 @@
orderid
deletedetail
onMouseMove
- commitKey
TextArea
body
该合并请求可以进行自动合并操作
title
changbodypr
+ <Select
+ commitKey
+ CoderRootDirectorytext
+ CoderRootDirectory
$PROJECT_DIR$
@@ -80,7 +92,6 @@
-
@@ -103,6 +114,8 @@
+
+
@@ -139,7 +152,7 @@
-
+
@@ -195,18 +208,18 @@
-
+
+
-
+
-
-
+
@@ -219,7 +232,7 @@
-
+
@@ -281,16 +294,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -394,20 +397,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -713,25 +702,56 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/forge/Main/CoderRootDirectory.js b/src/forge/Main/CoderRootDirectory.js
index a431ecdf7..a15de49ae 100644
--- a/src/forge/Main/CoderRootDirectory.js
+++ b/src/forge/Main/CoderRootDirectory.js
@@ -237,7 +237,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}
From 748ab612d2676f4d321b915b814442d3aaf35494 Mon Sep 17 00:00:00 2001
From: caicai8 <1149225589@qq.com>
Date: Thu, 2 Apr 2020 18:21:43 +0800
Subject: [PATCH 12/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=A5=E5=8D=95?=
=?UTF-8?q?=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/forge/Main/IndexItem.js | 4 +--
src/forge/Order/UpdateDetail.js | 51 ++++++++++++++++++++++++++++++---
2 files changed, 49 insertions(+), 6 deletions(-)
diff --git a/src/forge/Main/IndexItem.js b/src/forge/Main/IndexItem.js
index f6ba8fdd2..463f1da6a 100644
--- a/src/forge/Main/IndexItem.js
+++ b/src/forge/Main/IndexItem.js
@@ -25,13 +25,13 @@ class IndexItem extends Component{
-
{item.author.name}/
{item.name}
+
{item.author.name}/
{item.name}
{item.description}
{/* { item.forked_count ? { item.forked_count}:"" } */}
-
点赞 ({ item.praises_count })
+
赞 ({ item.praises_count })
{ item.language && item.language.id ? :"" }
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: '请选择完成状态'
}],
})(
-