From f2bde62acddeeaa8c231daa18dc7f8cf80651670 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 24 May 2019 18:03:17 +0800
Subject: [PATCH 09/18] md
---
app/views/layouts/base_ec.html.erb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/app/views/layouts/base_ec.html.erb b/app/views/layouts/base_ec.html.erb
index 0e1c6279..d8c45746 100644
--- a/app/views/layouts/base_ec.html.erb
+++ b/app/views/layouts/base_ec.html.erb
@@ -9,7 +9,9 @@
<%= favicon %>
<%= javascript_heads %>
<%= heads_for_theme %>
- <%= javascript_include_tag 'educoder/edu_application', 'educoder/edu_shixun','educoder/edu_shixunCommentsStar','educoder/jquery.raty' %>
+ <%= stylesheet_link_tag "/assets/codemirror/codemirror" %>
+ <%= stylesheet_link_tag '/editormd/css/editormd.min.css' %>
+ <%= javascript_include_tag 'educoder/edu_application', 'educoder/edu_shixun','educoder/edu_shixunCommentsStar','educoder/jquery.raty', '/editormd/editormd.min.js' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common','educoder/edu-main','educoder/edu-all', "css/edu-public", 'css/ketang', 'css/common', 'css/taskstyle', 'css/structure','scm','css/public', 'css/project','css/popup','repository','css/gantt', 'css/calendar', 'css/moduel', 'css/font-awesome', 'css/edu-tooltipster', 'educoder/magic-check','/assets/iconfont/iconfont.css' %>
<%= call_hook :view_layouts_base_html_head %>
From add56f399bec74970e10edb6b824f7ab43512572 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 24 May 2019 18:05:30 +0800
Subject: [PATCH 10/18] md
---
app/views/layouts/base_ec.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/layouts/base_ec.html.erb b/app/views/layouts/base_ec.html.erb
index d8c45746..306d3785 100644
--- a/app/views/layouts/base_ec.html.erb
+++ b/app/views/layouts/base_ec.html.erb
@@ -11,7 +11,7 @@
<%= heads_for_theme %>
<%= stylesheet_link_tag "/assets/codemirror/codemirror" %>
<%= stylesheet_link_tag '/editormd/css/editormd.min.css' %>
- <%= javascript_include_tag 'educoder/edu_application', 'educoder/edu_shixun','educoder/edu_shixunCommentsStar','educoder/jquery.raty', '/editormd/editormd.min.js' %>
+ <%= javascript_include_tag 'educoder/edu_application', 'educoder/edu_shixun','educoder/edu_shixunCommentsStar','educoder/jquery.raty', '/editormd/editormd.min.js', '/editormd/lib/marked.min.js' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common','educoder/edu-main','educoder/edu-all', "css/edu-public", 'css/ketang', 'css/common', 'css/taskstyle', 'css/structure','scm','css/public', 'css/project','css/popup','repository','css/gantt', 'css/calendar', 'css/moduel', 'css/font-awesome', 'css/edu-tooltipster', 'educoder/magic-check','/assets/iconfont/iconfont.css' %>
<%= call_hook :view_layouts_base_html_head %>
From 78a2cfb0440eb2f419c67bc113ae63db27f945f6 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 24 May 2019 18:07:31 +0800
Subject: [PATCH 11/18] md
---
app/views/layouts/base_ec.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/layouts/base_ec.html.erb b/app/views/layouts/base_ec.html.erb
index 306d3785..756d1706 100644
--- a/app/views/layouts/base_ec.html.erb
+++ b/app/views/layouts/base_ec.html.erb
@@ -11,7 +11,7 @@
<%= heads_for_theme %>
<%= stylesheet_link_tag "/assets/codemirror/codemirror" %>
<%= stylesheet_link_tag '/editormd/css/editormd.min.css' %>
- <%= javascript_include_tag 'educoder/edu_application', 'educoder/edu_shixun','educoder/edu_shixunCommentsStar','educoder/jquery.raty', '/editormd/editormd.min.js', '/editormd/lib/marked.min.js' %>
+ <%= javascript_include_tag 'educoder/edu_application', 'educoder/edu_shixun','educoder/edu_shixunCommentsStar','educoder/jquery.raty', '/editormd/editormd.min.js', '/editormd/lib/marked.min.js', '/editormd/lib/flowchart.min.js', '/editormd/lib/jquery.flowchart.min.js' %>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common','educoder/edu-main','educoder/edu-all', "css/edu-public", 'css/ketang', 'css/common', 'css/taskstyle', 'css/structure','scm','css/public', 'css/project','css/popup','repository','css/gantt', 'css/calendar', 'css/moduel', 'css/font-awesome', 'css/edu-tooltipster', 'educoder/magic-check','/assets/iconfont/iconfont.css' %>
<%= call_hook :view_layouts_base_html_head %>
From 0e2dcf12fdfd8ff9e88baea820250ec07dce8d36 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 24 May 2019 18:09:51 +0800
Subject: [PATCH 12/18] md
---
app/views/layouts/base_ec.html.erb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/app/views/layouts/base_ec.html.erb b/app/views/layouts/base_ec.html.erb
index 756d1706..10113aa8 100644
--- a/app/views/layouts/base_ec.html.erb
+++ b/app/views/layouts/base_ec.html.erb
@@ -11,7 +11,11 @@
<%= heads_for_theme %>
<%= stylesheet_link_tag "/assets/codemirror/codemirror" %>
<%= stylesheet_link_tag '/editormd/css/editormd.min.css' %>
- <%= javascript_include_tag 'educoder/edu_application', 'educoder/edu_shixun','educoder/edu_shixunCommentsStar','educoder/jquery.raty', '/editormd/editormd.min.js', '/editormd/lib/marked.min.js', '/editormd/lib/flowchart.min.js', '/editormd/lib/jquery.flowchart.min.js' %>
+
+ <%= javascript_include_tag '/editormd/lib/marked.min.js', '/editormd/lib/prettify.min.js', '/editormd/lib/raphael.min.js', '/editormd/lib/underscore.min.js', '/editormd/lib/sequence-diagram.min.js',
+ '/editormd/lib/flowchart.min.js', '/editormd/lib/jquery.flowchart.min.js', '/editormd/editormd.js' %>
+
+ <%= javascript_include_tag 'educoder/edu_application', 'educoder/edu_shixun','educoder/edu_shixunCommentsStar','educoder/jquery.raty'%>
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','css/edu-popup','css/edu-common','educoder/edu-main','educoder/edu-all', "css/edu-public", 'css/ketang', 'css/common', 'css/taskstyle', 'css/structure','scm','css/public', 'css/project','css/popup','repository','css/gantt', 'css/calendar', 'css/moduel', 'css/font-awesome', 'css/edu-tooltipster', 'educoder/magic-check','/assets/iconfont/iconfont.css' %>
<%= call_hook :view_layouts_base_html_head %>
From 95ded6f4caa62674c72ee025531886d8e366af9e Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 24 May 2019 18:11:34 +0800
Subject: [PATCH 13/18] b
---
app/views/common/index.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/common/index.html.erb b/app/views/common/index.html.erb
index 6e2b93b5..553fa3db 100644
--- a/app/views/common/index.html.erb
+++ b/app/views/common/index.html.erb
@@ -1 +1 @@
-
Educoder
\ No newline at end of file
+
Educoder
\ No newline at end of file
From a316a9cebf22c9c2716eccd29c7da5842680c283 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 24 May 2019 18:20:49 +0800
Subject: [PATCH 14/18] http
---
public/react/src/modules/page/MainContent.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/page/MainContent.js b/public/react/src/modules/page/MainContent.js
index afd0d2d9..9f4b9fd4 100644
--- a/public/react/src/modules/page/MainContent.js
+++ b/public/react/src/modules/page/MainContent.js
@@ -80,7 +80,7 @@ class MainContent extends Component {
.page--body { z-index: ${showIframeContent ? '9999': '1'} ; }
.b-label>.resize-helper { top: ${showIframeContent ? '10px': '50%'} }
`}
- { showIframeContent ?
:
+ { showIframeContent ?
:
{/* 旧版本、评测等待提示--更新提示块*/}
{/*
From af37894dbb321c595912b3931461d8145631c5e7 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 24 May 2019 18:28:17 +0800
Subject: [PATCH 15/18] 7999
---
public/react/src/modules/page/MainContent.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/page/MainContent.js b/public/react/src/modules/page/MainContent.js
index 9f4b9fd4..ee3fcdf9 100644
--- a/public/react/src/modules/page/MainContent.js
+++ b/public/react/src/modules/page/MainContent.js
@@ -77,7 +77,7 @@ class MainContent extends Component {
height: 100%;
background: #fff;
}
- .page--body { z-index: ${showIframeContent ? '9999': '1'} ; }
+ .page--body { z-index: ${showIframeContent ? '7999': '1'} ; }
.b-label>.resize-helper { top: ${showIframeContent ? '10px': '50%'} }
`}
{ showIframeContent ?
:
From 478b73bbfbb56b1033b720255b2c626023e197b9 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Fri, 24 May 2019 18:30:27 +0800
Subject: [PATCH 16/18] b
---
app/views/common/index.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/common/index.html.erb b/app/views/common/index.html.erb
index 553fa3db..5762eefe 100644
--- a/app/views/common/index.html.erb
+++ b/app/views/common/index.html.erb
@@ -1 +1 @@
-
Educoder
\ No newline at end of file
+
Educoder
\ No newline at end of file
From bef79a52c29bf231d29a1e1dc21b367902afc786 Mon Sep 17 00:00:00 2001
From: p31729568
Date: Fri, 24 May 2019 18:59:14 +0800
Subject: [PATCH 17/18] fix copy ec year
---
app/services/copy_ec_year_service.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/services/copy_ec_year_service.rb b/app/services/copy_ec_year_service.rb
index cbbcd5f1..15a95ea0 100644
--- a/app/services/copy_ec_year_service.rb
+++ b/app/services/copy_ec_year_service.rb
@@ -224,7 +224,7 @@
to_relate.attributes = relate.attributes.except('id', 'ec_course_achievement_method_id', 'ec_course_target_id',
'ec_course_evaluation_subitem_id', 'created_at', 'updated_at')
to_relate.ec_course_target_id = course_target_map[relate.ec_course_target_id]
- to_relate.ec_course_evaluation_subitem_id = course_target_map[relate.ec_course_evaluation_subitem_id]
+ to_relate.ec_course_evaluation_subitem_id = course_evaluation_subitem_map[relate.ec_course_evaluation_subitem_id]
to_relate.save!
achievement_evaluation_relates_map[relate.id] = to_relate.id
From 27acd561c0c42966b17d4d4e8d9a3b78366662bc Mon Sep 17 00:00:00 2001
From: p31729568
Date: Fri, 24 May 2019 19:11:06 +0800
Subject: [PATCH 18/18] fix copy ec year bug
---
app/services/copy_ec_year_service.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/services/copy_ec_year_service.rb b/app/services/copy_ec_year_service.rb
index 15a95ea0..31bac9f9 100644
--- a/app/services/copy_ec_year_service.rb
+++ b/app/services/copy_ec_year_service.rb
@@ -224,7 +224,8 @@
to_relate.attributes = relate.attributes.except('id', 'ec_course_achievement_method_id', 'ec_course_target_id',
'ec_course_evaluation_subitem_id', 'created_at', 'updated_at')
to_relate.ec_course_target_id = course_target_map[relate.ec_course_target_id]
- to_relate.ec_course_evaluation_subitem_id = course_evaluation_subitem_map[relate.ec_course_evaluation_subitem_id]
+ # 可能不存在,所以为 -1
+ to_relate.ec_course_evaluation_subitem_id = course_evaluation_subitem_map[relate.ec_course_evaluation_subitem_id] || -1
to_relate.save!
achievement_evaluation_relates_map[relate.id] = to_relate.id