diff --git a/src/forge/Branch/CloneAddress.js b/src/forge/Branch/CloneAddress.js index e183b0e0..67b899a1 100644 --- a/src/forge/Branch/CloneAddress.js +++ b/src/forge/Branch/CloneAddress.js @@ -1,49 +1,36 @@ -import React , { Component } from 'react'; -import { Dropdown , Icon , Tooltip } from 'antd'; +import React, { Component } from 'react'; +import { Dropdown, Icon, Tooltip } from 'antd'; import "./branch.css"; -class CloneAddress extends Component{ +class CloneAddress extends Component { // 点击按钮复制功能 - jsCopy=()=>{ + jsCopy = () => { var e = document.getElementById("copy_rep_content"); e.select(); document.execCommand("Copy"); - // this.props.showNotification('复制成功'); } - render(){ - const { http_url , downloadUrl } = this.props; - return( + render() { + const { http_url, downloadUrl } = this.props; + return (
- {/* onClick={()=>this.changeAddress("http")} */} { http_url && HTTP } - {/* this.changeAddress("ssh")}>SSH */} - + - this.jsCopy()}> + this.jsCopy()}> { downloadUrl && - - - - - - - + + + + + + + } - {/**/} - {/*{*/} - {/*!downloadUrl &&*/} - {/**/} - {/**/} - {/**/} - {/**/} - {/**/} - {/*}*/} - {/**/}
) } diff --git a/src/forge/Main/CoderRootDirectory.js b/src/forge/Main/CoderRootDirectory.js index b3a7f467..769a1afa 100644 --- a/src/forge/Main/CoderRootDirectory.js +++ b/src/forge/Main/CoderRootDirectory.js @@ -139,6 +139,7 @@ class CoderRootDirectory extends Component{ array.map((i,k)=>{ str += '/'+i; return list.push({ + key:k, index:k, name:i, path:str.substr(1), diff --git a/src/modules/courses/Index.js b/src/modules/courses/Index.js index c6687bd1..eb12ceae 100644 --- a/src/modules/courses/Index.js +++ b/src/modules/courses/Index.js @@ -8,21 +8,18 @@ import axios from 'axios'; import { TPMIndexHOC } from '../tpm/TPMIndexHOC'; import { CNotificationHOC } from './common/CNotificationHOC' import { ImageLayerOfCommentHOC } from '../page/layers/ImageLayerOfCommentHOC' -import "./css/Courses.css" +import "./css/Courses.css"; //引入对应跳转的组件 //里面有资源 const ListPageIndex = Loadable({ loader: () => import('./ListPageIndex'), loading: Loading, }) - //课堂首页 const CoursesHome = Loadable({ loader: () => import('./coursesHome/CoursesHome'), loading: Loading, }) - - //新建实训 const WrappedCoursesNewApp = Loadable({ loader: () => import('./new/CoursesNew'), @@ -37,38 +34,16 @@ const ShixunHomeworkPage = Loadable({ loader: () => import('./shixunHomework/ShixunHomeworkPage'), loading: Loading, }) - -//实训作业列表完成的 -const Studenthascompleted = Loadable({ - loader: () => import('./shixunHomework/Listofworksstudentone'), - loading: Loading, -}) - - //实训作业提交总结 const CommitSummary = Loadable({ loader: () => import('./shixunHomework/CommitSummary'), loading: Loading, }) -//实训作业设置 -const Workquestionandanswer = Loadable({ - loader: () => import('./shixunHomework/Workquestionandanswer'), - loading: Loading, -}) - - //实训报告 const ShixunWorkReport = Loadable({ loader: () => import('./shixunHomework/ShixunWorkReport'), loading: Loading, }) - -//实训查重 -const ShixunStudentWork = Loadable({ - loader: () => import('./shixunHomework/ShixunStudentWork'), - loading: Loading, -}) - //实训查重详情 const ShixunWorkDetails = Loadable({ loader: () => import('./shixunHomework/ShixunWorkDetails'), @@ -89,55 +64,36 @@ const GroupWork = Loadable({ loader: () => import('./busyWork/IndexGroup'), loading: Loading, }) - - //毕设任务列表新建 const GraduationTaskseditApp = Loadable({ loader: () => import('./graduation/tasks/GraduationTasksedit'), loading: Loading, }) - //毕设任务列表编辑 const GraduationTasksnewApp = Loadable({ loader: () => import('./graduation/tasks/GraduationTasksnew'), loading: Loading, }) - -//毕设任务列表设置 -const GraduationTasksquestions = Loadable({ - loader: () => import('./graduation/tasks/GraduationTaskssettingquestions'), - loading: Loading, -}) - //毕设任务列表 - const GraduationTaskssettinglist = Loadable({ loader: () => import('./graduation/tasks/GraduationTaskDetail'), loading: Loading, }) - // 评阅列表 - const GraduationTasksappraise = Loadable({ loader: () => import('./graduation/tasks/GraduationTasksappraise'), loading: Loading, }) - - //创建作品 - const GraduationTasksSubmitnewApp = Loadable({ loader: () => import('./graduation/tasks/GraduationTasksSubmitnew'), loading: Loading, }) - //修改作品 - const GraduationTasksSubmiteditApp = Loadable({ loader: () => import('./graduation/tasks/GraduationTasksSubmitedit'), loading: Loading, }) - //排序 const Ordering = Loadable({ loader: () => import('../../modules/courses/ordering/Ordering'), @@ -205,7 +161,6 @@ class CoursesIndex extends Component { dataquerys: {}, }) } - // let id=this.props.match.params.coursesId; let url = "/courses/" + id + "/left_banner.json" axios.get(url, { @@ -301,17 +256,6 @@ class CoursesIndex extends Component { (props) => () } > - {/*视频列表*/} - {/* () - } - > */} - {/* () - } - > */} {/* 资源列表页 */} - {/* 设置毕设任务 https://www.trustie.net/issues/19981 */} - - {/* () - } - > - - - () - }> */} - - () } > - {/* 修改毕设任务 https://www.trustie.net/issues/19981 */} - {/* 新建毕设任务 https://www.trustie.net/issues/19981 */} - {/* 毕设任务列表 https://www.trustie.net/issues/19981 */} - {/*/!* 毕业设计主 https://www.trustie.net/issues/19981 *!/*/} - {/* ()*/} - {/*}*/} - {/*>*/} - - {/*/!* 资源子目录 https://www.trustie.net/issues/19917 *!/*/} - {/* ()*/} - {/*}*/} - {/*>*/} {/* 教师列表*/} - - {/* 问卷答题 */} - {/* () - } - > */} - - {/* 问卷详情 */} - {/* () - } - > */} - - {/* 问卷新建 */} - {/* () - } - > */} - {/* 问卷 */} - {/* () - } - > */} - - - {/* 试卷查看/评阅 */} - {/* () - } - > */} - - {/*试卷新建 */} - {/* () - } - > */} - {/*试卷新建 */} - {/* () - } - > */} - - {/*试卷设置主页*/} - - {/* () - } - > */} - - {/*学生完成列表*/} - {/* 试卷 */} - {/* () - } - > */} - {/*实训查重详情*/}