diff --git a/public/react/config/webpack.config.dev.js b/public/react/config/webpack.config.dev.js index f126bc363..1adf3aef9 100644 --- a/public/react/config/webpack.config.dev.js +++ b/public/react/config/webpack.config.dev.js @@ -26,12 +26,13 @@ const env = getClientEnvironment(publicUrl); // This is the development configuration. // It is focused on developer experience and fast rebuilds. // The production configuration is different and lives in a separate file. +// 测试用的 module.exports = { // You may want 'eval' instead if you prefer to see the compiled output in DevTools. // See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.s // devtool: "cheap-module-eval-source-map", // 开启调试 - devtool: "source-map", // 开启调试 + // devtool: "source-map", // 开启调试 // These are the "entry points" to our application. // This means they will be the "root" imports that are included in JS bundle. // The first two entry points enable "hot" CSS and auto-refreshes for JS. diff --git a/public/react/config/webpack.config.prod.js b/public/react/config/webpack.config.prod.js index 7b9795e80..8cab0465f 100644 --- a/public/react/config/webpack.config.prod.js +++ b/public/react/config/webpack.config.prod.js @@ -51,9 +51,12 @@ const extractTextPluginOptions = shouldUseRelativeAssetPaths // This is the production configuration. // It compiles slowly and is focused on producing a fast and minimal bundle. // The development configuration is different and lives in a separate file. - +// 上线用的 // console.log('publicPath ', publicPath) module.exports = { + // externals: { + // 'react': 'window.React' + // }, // Don't attempt to continue if there are any errors. bail: true, // We generate sourcemaps in production. This is slow but gives good results. diff --git a/public/react/public/css/edu-all.css b/public/react/public/css/edu-all.css index 1daa2d5b1..425255048 100644 --- a/public/react/public/css/edu-all.css +++ b/public/react/public/css/edu-all.css @@ -3453,4 +3453,4 @@ a.singlepublishtwo{ /*.ant-notification{*/ /*width: auto !important;*/ /*max-width: 600px !important;*/ -/*}*/ \ No newline at end of file +/*}*/ diff --git a/public/react/src/common/components/attachment/AttachmentList.js b/public/react/src/common/components/attachment/AttachmentList.js index aee5eb68c..32c632aa1 100644 --- a/public/react/src/common/components/attachment/AttachmentList.js +++ b/public/react/src/common/components/attachment/AttachmentList.js @@ -15,17 +15,10 @@ class AttachmentsList extends Component{
-
- {
- item.is_pdf && item.is_pdf == true ?
-
+ { item.author && {item.author} } {item.commit_count===undefined?"":{item.commit_count} 已交} {item.uncommit_count===undefined?"":{item.uncommit_count} 未交} { diff --git a/public/react/src/modules/courses/completetaskdetails/Completetaskdetails.js b/public/react/src/modules/courses/completetaskdetails/Completetaskdetails.js new file mode 100644 index 000000000..850ed2b89 --- /dev/null +++ b/public/react/src/modules/courses/completetaskdetails/Completetaskdetails.js @@ -0,0 +1,84 @@ +import React, {Component} from "react"; +import { WordsBtn,on, off, trigger,markdownToHTML,getImageUrl} from 'educoder'; +import { + Button, + Checkbox, + message, + InputNumber, + DatePicker, + Radio, + Tooltip, + notification, +} from "antd"; +import './completetaskdetails.css'; +import GroupPackage from "../groupjobbank/GroupPackage"; +import GroupPackage2 from "../groupjobbank/GroupPackage2"; + + +class Groupjobbandetails extends Component { + + constructor(props) { + super(props); + + this.state = { + + } + } + + componentDidMount() { + console.log("Groupjobbandetails"); + console.log("componentDidMount"); + // let query = this.props.location.pathname; + // const type = query.split('/'); + // this.setState({ + // shixuntypes:type[3] + // }) + // this.props.triggerRef(this); + + + + + } + // 获取数据地方 + getTrainingjobsetting = () => { + var homeworkid = this.props.match.params.homeworkid; + } + + //跳转道描点的地方 + scrollToAnchor = (anchorName) => { + if (anchorName) { + // 找到锚点 + let anchorElement = document.getElementById(anchorName); + // 如果对应id的锚点存在,就跳转到锚点 + if(anchorElement) { anchorElement.scrollIntoView(); } + } + }; + + + + render() { + + return ( +
+ 课题类型: + 设计 +
++ 课题来源: + 生产/社会实践 +
++ 课题性质1: + 设计 +
++ 课题性质2: + 设计 +
++ 课题重复情况: + 新需求 +
++ 调研或实习地点: + 长沙 +
++ 课题单位来源: + 湖南省据C++创始人Stroustrup有限公司 +
++ { item.author && {item.author} } {item.exercise_status===1?"":{item.exercise_answer} 已答} {item.exercise_status===1?"":{item.exercise_unanswer} 未答} {item.unreview_count===null||item.exercise_status===1?"":{item.unreview_count} 未评数 } diff --git a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js index f38ad7435..1fc1905d1 100644 --- a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js +++ b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js @@ -553,6 +553,9 @@ class ExerciseReviewAndAnswer extends Component{ height:16px; margin-top:2px; } + .standardAnswer.editormd-html-preview,.answerStyle.editormd-html-preview{ + width:100%!important + } `} {/*
*/}+ 分组要求: + 2~ 5(学生提交作品时需要关联同组成员,组内成员作品共享) +
++ 基于项目实施 + (学生必须在本平台创建项目,项目管理员可以提交作品) +
++ MySQL数据库编程开发实训(基础篇) +
+- 学生列表 - 邀请码:CKPYL -
+
+ { item.author && {item.author} }
{
item.polls_status !=1 &&
diff --git a/public/react/src/modules/courses/poll/PollNew.js b/public/react/src/modules/courses/poll/PollNew.js
index 27194e5e0..ea84586d8 100644
--- a/public/react/src/modules/courses/poll/PollNew.js
+++ b/public/react/src/modules/courses/poll/PollNew.js
@@ -77,7 +77,7 @@ class PollNew extends Component {
}
changeTopicName = (e) => {
- console.log("调用了changeTopicName");
+ // console.log("调用了changeTopicName");
let num = parseInt(e.target.value.length);
if(num>60){
return;
diff --git a/public/react/src/modules/courses/questionbank/Generaljobanswer.js b/public/react/src/modules/courses/questionbank/Generaljobanswer.js
new file mode 100644
index 000000000..3bfc6cd36
--- /dev/null
+++ b/public/react/src/modules/courses/questionbank/Generaljobanswer.js
@@ -0,0 +1,79 @@
+import React, {Component} from "react";
+import { WordsBtn,on, off, trigger,markdownToHTML,getImageUrl} from 'educoder';
+import {
+ Button,
+ Checkbox,
+ message,
+ InputNumber,
+ DatePicker,
+ Radio,
+ Tooltip,
+ notification,
+} from "antd";
+import GroupPackage from '../groupjobbank/GroupPackage'
+import './questionbank.css';
+
+class Generaljobanswer extends Component {
+
+ constructor(props) {
+ super(props);
+
+ this.state = {
+
+ }
+ }
+
+ componentDidMount() {
+ console.log("Generaljobanswer");
+ console.log("componentDidMount");
+ // let query = this.props.location.pathname;
+ // const type = query.split('/');
+ // this.setState({
+ // shixuntypes:type[3]
+ // })
+ // this.props.triggerRef(this);
+
+
+
+
+ }
+ // 获取数据地方
+ getTrainingjobsetting = () => {
+ var homeworkid = this.props.match.params.homeworkid;
+ }
+
+ //跳转道描点的地方
+ scrollToAnchor = (anchorName) => {
+ if (anchorName) {
+ // 找到锚点
+ let anchorElement = document.getElementById(anchorName);
+ // 如果对应id的锚点存在,就跳转到锚点
+ if(anchorElement) { anchorElement.scrollIntoView(); }
+ }
+ };
+
+
+
+ render() {
+
+ return (
+
+ MySQL数据库编程开发实训(基础篇)
+
{/* {discussMessage.author.name} */}
-
+ { discussMessage.author && {discussMessage.author} }
{discussMessage.commit_count===undefined?"":{discussMessage.commit_count} 已交}
{discussMessage.uncommit_count===undefined?"":{discussMessage.uncommit_count} 未交}
{/*{discussMessage.replies_count} 3 未评*/}