From 3af911654eeb4daf33d09f7b5052c33d2fa4c5d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 4 Jul 2019 15:44:14 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/coursesPublic/PathModal.js | 6 +-
.../courses/shixunHomework/shixunHomework.js | 2 +-
public/react/src/modules/home/shixunsHome.js | 2 +-
public/react/src/modules/paths/PathNew.js | 26 +-
public/react/src/modules/tpm/NewHeader.js | 4 +-
.../modules/tpm/component/TPMRightSection.js | 410 ++++-----
.../react/src/modules/user/usersInfo/Infos.js | 780 +++++++++---------
.../src/modules/user/usersInfo/InfosPath.js | 392 ++++-----
8 files changed, 811 insertions(+), 811 deletions(-)
diff --git a/public/react/src/modules/courses/coursesPublic/PathModal.js b/public/react/src/modules/courses/coursesPublic/PathModal.js
index 0b69fa15d..fc6747e08 100644
--- a/public/react/src/modules/courses/coursesPublic/PathModal.js
+++ b/public/react/src/modules/courses/coursesPublic/PathModal.js
@@ -75,13 +75,13 @@ class PathModal extends Component{
if(patheditarry===undefined){
this.setState({
patheditarrytype:true,
- patheditarryvalue:"请先选择实训课程"
+ patheditarryvalue:"请先选择实践课程"
})
return
}else if(patheditarry.length===0){
this.setState({
patheditarrytype:true,
- patheditarryvalue:"请先选择实训课程"
+ patheditarryvalue:"请先选择实践课程"
})
return
}
@@ -137,7 +137,7 @@ class PathModal extends Component{
/>:""}
this.editname(datas&&datas.main_category_name)} className={"mr30"}>目录重命名*/}
:
this.editDir(datas&&datas.category_name)} className={"mr30 font-16"}>目录重命名:""}
- {this.props.isAdmin()===true?datas&&datas.category_name===undefined||datas&&datas.category_name===null?选用实训课程:"":""}
+ {this.props.isAdmin()===true?datas&&datas.category_name===undefined||datas&&datas.category_name===null?选用实践课程:"":""}
{this.props.isAdmin()===true?this.createCommonWork()}>选用实训:""}
diff --git a/public/react/src/modules/home/shixunsHome.js b/public/react/src/modules/home/shixunsHome.js
index 9ef26f7a8..9093ec22d 100644
--- a/public/react/src/modules/home/shixunsHome.js
+++ b/public/react/src/modules/home/shixunsHome.js
@@ -189,7 +189,7 @@ class ShixunsHome extends Component {
{/*实训路径*/}
-
实训课程
+
实践课程
TRAINING COURSE
更多
diff --git a/public/react/src/modules/paths/PathNew.js b/public/react/src/modules/paths/PathNew.js
index 89adbc233..0575fc817 100644
--- a/public/react/src/modules/paths/PathNew.js
+++ b/public/react/src/modules/paths/PathNew.js
@@ -94,7 +94,7 @@ class PathNew extends Component{
submitNewPath=()=>{
let {pathName} = this.state;
if(pathName===""){
- this.props.showSnackbar("请输入实训课程名称");
+ this.props.showSnackbar("请输入实践课程名称");
window.location.href="#part_Name";
this.setState({
flag_name:false
@@ -103,23 +103,23 @@ class PathNew extends Component{
}
let des=this.Des_editMD.getValue();
if(des===""){
- this.props.showSnackbar("请输入实训课程的简介");
+ this.props.showSnackbar("请输入实践课程的简介");
window.location.href="#part_Des";
return;
}
if (des.length > 5000) {
- this.props.showSnackbar("实训课程的简介最大限制5000个字符");
+ this.props.showSnackbar("实践课程的简介最大限制5000个字符");
window.location.href="#part_Des";
return;
}
let point = this.Point_editMD.getValue();
if(point===""){
- this.props.showSnackbar("请输入实训课程的学习须知");
+ this.props.showSnackbar("请输入实践课程的学习须知");
window.location.href="#part_point";
return;
}
if(point.length > 500){
- this.props.showSnackbar("实训课程的学习须知最大限制500个字符");
+ this.props.showSnackbar("实践课程的学习须知最大限制500个字符");
window.location.href="#part_point";
return;
}
@@ -177,10 +177,10 @@ class PathNew extends Component{
})
const Des_editMD = create_editorMD("shixun_introduction","100%","490px"
- ,"请在此输入实训课程的简介,最大限制5000个字符","/api/attachments.json", response.data.description,"");
+ ,"请在此输入实践课程的简介,最大限制5000个字符","/api/attachments.json", response.data.description,"");
this.Des_editMD=Des_editMD;
const Point_editMD = create_editorMD("shixun_propaedeutics","100%","260px"
- ,"请在此输入实训课程的学习须知,最大限制500个字符","/api/attachments.json",response.data.learning_notes,"");
+ ,"请在此输入实践课程的学习须知,最大限制500个字符","/api/attachments.json",response.data.learning_notes,"");
this.Point_editMD=Point_editMD;
}
}).catch((error)=>{
@@ -189,9 +189,9 @@ class PathNew extends Component{
} else {
this.isEditPage = false
- const Des_editMD = create_editorMD("shixun_introduction","100%","490px","请在此输入实训课程的简介,最大限制5000个字符","/api/attachments.json","","");
+ const Des_editMD = create_editorMD("shixun_introduction","100%","490px","请在此输入实践课程的简介,最大限制5000个字符","/api/attachments.json","","");
this.Des_editMD=Des_editMD;
- const Point_editMD = create_editorMD("shixun_propaedeutics","100%","260px","请在此输入实训课程的学习须知,最大限制500个字符","/api/attachments.json","","");
+ const Point_editMD = create_editorMD("shixun_propaedeutics","100%","260px","请在此输入实践课程的学习须知,最大限制500个字符","/api/attachments.json","","");
this.Point_editMD=Point_editMD;
}
@@ -210,9 +210,9 @@ class PathNew extends Component{
-
创建实训课程
+
创建实践课程
-
实训课程名称
+
实践课程名称
*
@@ -233,7 +233,7 @@ class PathNew extends Component{
*
-
+
@@ -247,7 +247,7 @@ class PathNew extends Component{
*
-
+
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index c5b72946e..bf8271940 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -751,7 +751,7 @@ submittojoinclass=(value)=>{
我的课堂
{/* p 老师 l 学生 */}
我的实训
-
我的实训课程
+
我的实践课程
我的项目
账号管理
{/*
this.educoderlogin()} >登入测试接口*/}
@@ -788,7 +788,7 @@ submittojoinclass=(value)=>{
- {data&&data.homework_name}
+ {jobsettingsdata === undefined ? "" : jobsettingsdata.data.homework_name}
返回
diff --git a/public/react/src/modules/tpm/challengesnew/css/TPMchallengesnew.css b/public/react/src/modules/tpm/challengesnew/css/TPMchallengesnew.css
index 9a8af13e7..fb23ba4b8 100644
--- a/public/react/src/modules/tpm/challengesnew/css/TPMchallengesnew.css
+++ b/public/react/src/modules/tpm/challengesnew/css/TPMchallengesnew.css
@@ -60,7 +60,7 @@ a{
#exercisememoMD .CodeMirror {
margin-top: 31px !important;
- height: 700px !important;
+ height: 374px !important;
/*width: 579px !important;*/
}
@@ -125,7 +125,7 @@ a{
#neweditanswer .editormd-preview {
top: 40px !important;
height: 364px !important;
- width: 578px !important;
+ width: 551px !important;
}
#repository_url_tip {
From 1921b219ce8d74dc8408f39393ae5df756af005c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Thu, 4 Jul 2019 16:38:12 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/package.json | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/public/react/package.json b/public/react/package.json
index 5aebf0d41..ebfda1b41 100644
--- a/public/react/package.json
+++ b/public/react/package.json
@@ -88,6 +88,7 @@
"webpack": "3.8.1",
"webpack-dev-server": "2.9.4",
"webpack-manifest-plugin": "1.3.2",
+ "webpack-parallel-uglify-plugin": "^1.1.0",
"whatwg-fetch": "2.0.3",
"wrap-md-editor": "^0.2.20"
},
@@ -164,6 +165,7 @@
"concat": "^1.0.3",
"happypack": "^5.0.1",
"videojs-for-react": "^0.0.3",
- "webpack-bundle-analyzer": "^3.0.3"
+ "webpack-bundle-analyzer": "^3.0.3",
+ "webpack-parallel-uglify-plugin": "^1.1.0"
}
}