this.opentitle()} className={"pointer Breadcrumbfont color-grey-9 "}>
收起全文
diff --git a/public/react/src/modules/tpm/shixuns/ShixunCard.js b/public/react/src/modules/tpm/shixuns/ShixunCard.js
index 5086dd14d..a292f4d87 100644
--- a/public/react/src/modules/tpm/shixuns/ShixunCard.js
+++ b/public/react/src/modules/tpm/shixuns/ShixunCard.js
@@ -193,11 +193,11 @@ class ShixunCard extends Component {
-
+ {item.is_jupyter===false?
{item.challenges_count}
-
+ :""}
{/**/}
{/**/}
From 6f5ea589f48f8fc889ca2132568ec2fdc49b9511 Mon Sep 17 00:00:00 2001
From: tangjiang <465264938@qq.com>
Date: Fri, 10 Jan 2020 15:06:43 +0800
Subject: [PATCH 3/9] update quill autofocus
---
.../react/src/common/quillForEditor/index.js | 24 +++++++++----------
.../newOrEditTask/leftpane/editorTab/index.js | 3 ++-
2 files changed, 13 insertions(+), 14 deletions(-)
diff --git a/public/react/src/common/quillForEditor/index.js b/public/react/src/common/quillForEditor/index.js
index 599bffa1f..525feba09 100644
--- a/public/react/src/common/quillForEditor/index.js
+++ b/public/react/src/common/quillForEditor/index.js
@@ -4,7 +4,7 @@
* @Github:
* @Date: 2019-12-18 08:49:30
* @LastEditors : tangjiang
- * @LastEditTime : 2020-01-09 14:52:58
+ * @LastEditTime : 2020-01-10 15:05:27
*/
import './index.scss';
import 'quill/dist/quill.core.css'; // 核心样式
@@ -40,7 +40,7 @@ Quill.register({
function QuillForEditor ({
placeholder,
readOnly,
- autoFocus,
+ autoFocus = false,
options,
value,
imgAttrs = {}, // 指定图片的宽高
@@ -196,7 +196,7 @@ function QuillForEditor ({
});
_quill.getModule('toolbar').addHandler('fill', (e) => {
- console.log('点击了填空=====>>>>>>', e);
+ // console.log('点击了填空=====>>>>>>', e);
setFillCount(fillCount + 1);
const range = _quill.getSelection(true);
// _quill.insertText(range.index, '▁', { 'data_index': fillCount });
@@ -232,16 +232,21 @@ function QuillForEditor ({
}
const current = value
- // console.log('+++++', current);
if (!deepEqual(previous, current)) {
setSelection(quill.getSelection())
if (typeof value === 'string') {
- quill.clipboard.dangerouslyPasteHTML(value, 'api')
+ quill.clipboard.dangerouslyPasteHTML(value, 'api');
+ if (autoFocus) {
+ quill.focus();
+ } else {
+ quill.blur();
+ }
} else {
quill.setContents(value)
+ if (autoFocus) quill.focus();
}
}
- }, [quill, value, setQuill]);
+ }, [quill, value, setQuill, autoFocus]);
// 清除选择区域
useEffect(() => {
@@ -275,13 +280,6 @@ function QuillForEditor ({
}
}, [quill, handleOnChange]);
- useEffect(() => {
- if (!quill) return;
- if (autoFocus) {
- quill.focus();
- }
- }, [quill, autoFocus]);
-
// 返回结果
return (
diff --git a/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js b/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js
index b388156c8..6fc264663 100644
--- a/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js
+++ b/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js
@@ -4,7 +4,7 @@
* @Github:
* @Date: 2019-11-20 10:35:40
* @LastEditors : tangjiang
- * @LastEditTime : 2020-01-09 16:54:45
+ * @LastEditTime : 2020-01-10 15:06:23
*/
import './index.scss';
// import 'katex/dist/katex.css';
@@ -453,6 +453,7 @@ class EditTab extends React.Component {
colon={ false }
>
Date: Fri, 10 Jan 2020 15:34:22 +0800
Subject: [PATCH 4/9] =?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/images/educoder/xcx/SMIDCard.png | Bin 0 -> 7361 bytes
public/images/educoder/xcx/ZYIDCard.png | Bin 0 -> 5539 bytes
2 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 public/images/educoder/xcx/SMIDCard.png
create mode 100644 public/images/educoder/xcx/ZYIDCard.png
diff --git a/public/images/educoder/xcx/SMIDCard.png b/public/images/educoder/xcx/SMIDCard.png
new file mode 100644
index 0000000000000000000000000000000000000000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9}PQn+gZ`~$cX_d)6sn&COfoOp<4W+Am(C=_Wy$iXQ_yG3
zW)n9W+=@~Bzi9qvG1otuDRfZj>IZP{Np5&uq$Zz
zx`Ck5&osOA8Zu7v3)z6x(Sa-`^+^%Iwf*f
z@GFr(-(7aCE~5>4mojtWSMh?9E|v$E9DXbI-0z3^X5eIX|Hrul!Q%K!#B6bii|eaw
z*CzzcO=2K#QSbuCxp1!Z-kYKMGT^`1WxY(hrkMF970VBK#Z!3D6NsVc`_a)$p<^ix
z=*xwHA{v&Pzxzboqp1lIjr$CuLnnL)>&)l1j=|I*~>xW&PFGzj?VJiuQQ*uTj3G&CKTf;EGjv`7q=
zeor%fNkHWr&27lxcS+)t(Mzbhu|wZ#(kDG>o=IG+7b=Lfb`n|}eq}3xTYRDKUCRs3
zgdN~URQljtt@#Bbn|_e)Vzx|e)~c)0HApyA#q
zY}~yirSN~v6l-M1bDeGq*y6&i`=e)l12hehsgHUheV`BV>^YXTMO>3I=sX;LyeCMs%w*wkcsUZbUC}<9nsk9qxmDPgmvr3>o?CN|KBgs
zAjPebB}t<9m>>qUD2v;DB6}W7>?o-9oIe9Mpiaa}PeJkJR{R-s9WFHdr_qZ<3VSp*
zthj`@`2Px@{m@f)7()!=OYqr_&`>>1lIUMMKthO_w<+W7(IA>61bYfalSciQO<3;w
z*c2Mqv&_|;Ekm@WE?9~%V*3c3!39u`dilCQy7AO^{x_AHoX^MVs_1{qF9bbVdz^>9zXuKG?a^S?7gKr+lf4XTa$pUmVsuOy8XTX10?eSDF6Tf
literal 0
HcmV?d00001
diff --git a/public/images/educoder/xcx/ZYIDCard.png b/public/images/educoder/xcx/ZYIDCard.png
new file mode 100644
index 0000000000000000000000000000000000000000..7f2085fce564fdcc67cd6392fd7e8063321db867
GIT binary patch
literal 5539
zcmbVQc{G&o+ka-7G*fn25?KdjYqDe=lVxmWDI~H)ma%7PWF4s}J4M!HsZ=8(WJ?i6
zwh3d2k!*t*vNmMAkKgya%Q?UIocEmfpXc1?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
.../src/modules/courses/boards/TopicDetail.js | 1 +
.../courses/common/comments/CommonReply.js | 1 +
.../tasks/GraduationTaskssettingReply.js | 46 +++++++++----------
.../graduation/topics/GraduateTopicReply.js | 2 +-
public/react/src/modules/forums/MemoDetail.js | 4 +-
5 files changed, 28 insertions(+), 26 deletions(-)
diff --git a/public/react/src/modules/courses/boards/TopicDetail.js b/public/react/src/modules/courses/boards/TopicDetail.js
index e8767fb87..f4df177c7 100644
--- a/public/react/src/modules/courses/boards/TopicDetail.js
+++ b/public/react/src/modules/courses/boards/TopicDetail.js
@@ -682,6 +682,7 @@ class TopicDetail extends Component {
{!isCourseEnd && }
{/* onClick={ this.createNewComment }
diff --git a/public/react/src/modules/courses/common/comments/CommonReply.js b/public/react/src/modules/courses/common/comments/CommonReply.js
index 42ec3d65a..50f2b60cb 100644
--- a/public/react/src/modules/courses/common/comments/CommonReply.js
+++ b/public/react/src/modules/courses/common/comments/CommonReply.js
@@ -252,6 +252,7 @@ class CommonReply extends Component{
{/* bor-bottom-greyE */}
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingReply.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingReply.js
index 4281d0ec6..ce0554488 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingReply.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingReply.js
@@ -18,7 +18,7 @@ import { generateComments, generateChildComments, _findById, handleContentBefore
const REPLY_PAGE_COUNT = 10
const $ = window.$;
-/*
+/*
相比较GraduateTopicReply 改动的地方
列表接口名 /graduation_tasks/${graduation_topic_id}/show_comment.json?parent_id=${parent.id}&limit=500
回复类型名 jour_type: 'GraduationTask',
@@ -34,7 +34,7 @@ class GraduationTaskssettingReply extends Component{
componentDidMount(){
this.fetchReplies()
-
+
}
_getUser() {
const { current_user } = this.props;
@@ -58,7 +58,7 @@ class GraduationTaskssettingReply extends Component{
// m_parent_id
reply_id: memo.user_id
}
- }
+ }
).then((response) => {
if (response.data.status === -1) {
console.error('服务端异常')
@@ -66,18 +66,18 @@ class GraduationTaskssettingReply extends Component{
}
// this.props.showNotification('帖子发表成功')
- if (response.data && response.data.id) {
+ if (response.data && response.data.id) {
const _id = response.data.id;
// md
editor.setValue && editor.setValue('')
-
+
const user = this._getUser();
this.setState({
comments: addNewComment(this.state.comments, _id, content, user, this.props.isSuperAdmin(), this),
total_count: this.state.total_count + 1
})
this.refs.editor.showEditor();
-
+
}
}).catch((error) => {
console.log(error)
@@ -95,13 +95,13 @@ class GraduationTaskssettingReply extends Component{
return;
}
const url = `/users/reply_message.json`;
-
+
const { comments } = this.state;
const user = this._getUser();
const graduation_topic_id = this.props.memo.id
const commentIndex = this._findById(id, comments);
let comment = comments[commentIndex];
-
+
commentContent = handleContentBeforeCreateSecondLevelComment(commentContent)
axios.post(url, {
journals_for_message: {
@@ -113,9 +113,9 @@ class GraduationTaskssettingReply extends Component{
}
},
{
- }
+ }
).then((response) => {
- if (response.data.id) {
+ if (response.data.id) {
let newId = response.data.id;
this.setState({
@@ -128,7 +128,7 @@ class GraduationTaskssettingReply extends Component{
memo: newMemo2
})
}
-
+
}).catch((error) => {
console.log(error)
})
@@ -142,7 +142,7 @@ class GraduationTaskssettingReply extends Component{
})
.then((response) => {
const { comments } = response.data
-
+
// const memo = Object.assign({}, this.state.memo)
// memo.sum_replies_count = sum_replies_count;
@@ -160,7 +160,7 @@ class GraduationTaskssettingReply extends Component{
this.fetchReplies()
})
}
-
+
fetchReplies = () => {
const graduation_topic_id = this.props.memo.id
const course_id = this.props.course_id
@@ -170,7 +170,7 @@ class GraduationTaskssettingReply extends Component{
})
.then((response) => {
const { comments, messages_count } = response.data
-
+
this.setState({
comments: generateComments(comments, this.transformReply),
// : this.state.comments.concat(comments),
@@ -180,7 +180,7 @@ class GraduationTaskssettingReply extends Component{
console.log(error)
})
}
-
+
transformReply = (reply, children = []) => {
const isAdmin = this.props.isAdmin()
const isSuperAdmin = this.props.isSuperAdmin()
@@ -189,7 +189,7 @@ class GraduationTaskssettingReply extends Component{
isSuperAdmin: isSuperAdmin,
permission: true, //
children: children,
- hidden: reply.hidden,
+ hidden: reply.hidden,
id: reply.id,
image_url: reply.author.image_url,
reward: null, //
@@ -235,7 +235,7 @@ class GraduationTaskssettingReply extends Component{
-
-
-
- {/* { true ? :
+
+
+ {/* { true ? :
} */}
-
- { total_count > REPLY_PAGE_COUNT &&
+
+ { total_count > REPLY_PAGE_COUNT &&
写评论
diff --git a/public/react/src/modules/courses/graduation/topics/GraduateTopicReply.js b/public/react/src/modules/courses/graduation/topics/GraduateTopicReply.js
index df6152c04..f08938b4e 100644
--- a/public/react/src/modules/courses/graduation/topics/GraduateTopicReply.js
+++ b/public/react/src/modules/courses/graduation/topics/GraduateTopicReply.js
@@ -226,7 +226,7 @@ class GraduateTopicReply extends Component{
return(
-
{ window.__useKindEditor === true ?
-
+
:
-
+
}
{/* onClick={ this.createNewComment } */}
From 9417970f62fca11e382a1aef4ff1ebea65eb8465 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Fri, 10 Jan 2020 16:32:14 +0800
Subject: [PATCH 6/9] =?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/src/common/educoder.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/common/educoder.js b/public/react/src/common/educoder.js
index 9a19c6ee2..b0ef6d692 100644
--- a/public/react/src/common/educoder.js
+++ b/public/react/src/common/educoder.js
@@ -4,7 +4,7 @@
export { getImageUrl as getImageUrl, getRandomNumber as getRandomNumber,getUrl as getUrl, publicSearchs as publicSearchs,getRandomcode as getRandomcode,getUrlmys as getUrlmys, getUrl2 as getUrl2, setImagesUrl as setImagesUrl
, getUploadActionUrl as getUploadActionUrl,getUploadActionUrltwo as getUploadActionUrltwo ,getUploadActionUrlthree as getUploadActionUrlthree, getUploadActionUrlOfAuth as getUploadActionUrlOfAuth
- , getTaskUrlById as getTaskUrlById, TEST_HOST ,htmlEncode as htmlEncode } from './UrlTool';
+ , getTaskUrlById as getTaskUrlById, TEST_HOST ,htmlEncode as htmlEncode ,getupload_git_file as getupload_git_file} from './UrlTool';
export {setmiyah as setmiyah} from './Component';
export { default as queryString } from './UrlTool2';
From 4d9c4e42927f0b5ee1ba938eff4695d90ae14256 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Fri, 10 Jan 2020 16:54:29 +0800
Subject: [PATCH 7/9] =?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/src/modules/forums/MemoDetailMDEditor.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/public/react/src/modules/forums/MemoDetailMDEditor.js b/public/react/src/modules/forums/MemoDetailMDEditor.js
index 8076c5e6a..b8bcc47fb 100644
--- a/public/react/src/modules/forums/MemoDetailMDEditor.js
+++ b/public/react/src/modules/forums/MemoDetailMDEditor.js
@@ -75,7 +75,10 @@ class MemoDetailMDEditor extends Component {
}
onCommit = () => {
-
+ if(this.props.checkIfLogin()===false){
+ this.props.showLoginDialog()
+ return
+ }
if(this.props.checkIfProfileCompleted()===false){
this.props.showhideAccountPhoneemailDialog()
return
From 59ed6bd1f669fbf45bbca158a8c22208e98db451 Mon Sep 17 00:00:00 2001
From: daiao <358551898@qq.com>
Date: Fri, 10 Jan 2020 17:03:17 +0800
Subject: [PATCH 8/9] =?UTF-8?q?HTML=E5=AE=9E=E8=AE=AD=E8=B7=B3=E8=BF=87?=
=?UTF-8?q?=E9=AA=8C=E8=AF=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/controllers/myshixuns_controller.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/controllers/myshixuns_controller.rb b/app/controllers/myshixuns_controller.rb
index 7847d58ed..350ee581f 100644
--- a/app/controllers/myshixuns_controller.rb
+++ b/app/controllers/myshixuns_controller.rb
@@ -3,7 +3,7 @@ class MyshixunsController < ApplicationController
before_action :find_myshixun, :except => [:training_task_status, :code_runinng_message]
before_action :find_repo_name, :except => [:training_task_status, :code_runinng_message]
skip_before_action :verify_authenticity_token, :only => [:html_content]
- skip_before_action :check_sign, only: [:training_task_status, :code_runinng_message]
+ skip_before_action :check_sign, only: [:training_task_status, :code_runinng_message, :html_content]
## TPI关卡列表
def challenges
From 9c4bd37ea2da0c67e8fb94495e32d25dc815fe09 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Fri, 10 Jan 2020 17:38:02 +0800
Subject: [PATCH 9/9] =?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/src/modules/tpm/shixuns/ShixunCardList.js | 9 +++++----
public/react/src/modules/tpm/shixuns/ShixunsIndex.js | 8 +++++---
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/public/react/src/modules/tpm/shixuns/ShixunCardList.js b/public/react/src/modules/tpm/shixuns/ShixunCardList.js
index 948bbed48..46abc5bf0 100644
--- a/public/react/src/modules/tpm/shixuns/ShixunCardList.js
+++ b/public/react/src/modules/tpm/shixuns/ShixunCardList.js
@@ -75,17 +75,18 @@ class ShixunCardList extends Component {
type="new";
}
+
if(typekeyid===key){
if(upcircle===true){
this.setState({
upcircle:false,
})
- this.props.Shixunsupcircles("desc")
+ // this.props.Shixunsupcircles("desc")
}else if(upcircle===false){
this.setState({
upcircle:true,
})
- this.props.Shixunsupcircles("asc")
+ // this.props.Shixunsupcircles("desc")
}
}else{
this.setState({
@@ -93,8 +94,8 @@ class ShixunCardList extends Component {
})
}
- //allevent
- this.props.ShixunsState(false,type);
+
+ this.props.ShixunsState(false,type,"desc");
}
diff --git a/public/react/src/modules/tpm/shixuns/ShixunsIndex.js b/public/react/src/modules/tpm/shixuns/ShixunsIndex.js
index f14afb0ac..82fa6a3f9 100644
--- a/public/react/src/modules/tpm/shixuns/ShixunsIndex.js
+++ b/public/react/src/modules/tpm/shixuns/ShixunsIndex.js
@@ -296,21 +296,23 @@ class ShixunsIndex extends Component {
console.log(error)
});
}
- ShixunsState=(val,type)=>{
+ ShixunsState=(val,type,sorts)=>{
// sort,
let {tag_level, tag_id, page, limit, keyword, status, diff,sort} = this.state;
- let newsort=sort;
+ let newsort=sorts?sorts:sort;
this.setState({
order_by:type,
typepvisible:true,
pages:1,
- // sort:sort
+ sort:sorts?sorts:sort
})
let params
// let vals=false
if(newsort===undefined){
newsort="desc"
+ }else{
+ newsort=sorts?sorts:sort
}
params= {
order_by:type,