diff --git a/public/react/src/modules/tpm/TPMRepositoryComponent.js b/public/react/src/modules/tpm/TPMRepositoryComponent.js index 793d035ed..443501d9e 100644 --- a/public/react/src/modules/tpm/TPMRepositoryComponent.js +++ b/public/react/src/modules/tpm/TPMRepositoryComponent.js @@ -114,7 +114,8 @@ class TPMRepositoryComponent extends Component { } // listItem 如果是num,则是通过面包屑点击过来的,取pathArray的子集 fetchRepo = (listItem) => { - + console.log(1) + debugger const { pathArray } = this.state; let newPathArray = pathArray.slice(0) diff --git a/public/react/src/modules/tpm/TPMRepositoryComponentdetails.js b/public/react/src/modules/tpm/TPMRepositoryComponentdetails.js index 54efac581..cd08a7b03 100644 --- a/public/react/src/modules/tpm/TPMRepositoryComponentdetails.js +++ b/public/react/src/modules/tpm/TPMRepositoryComponentdetails.js @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import axios from 'axios'; import { trace_collapse, info } from 'educoder'; import RepositoryCodeEditor from './shixunchild/Repository/RepositoryCodeEditor'; +import {debuggerCode} from "../../redux/actions/ojForUser"; class TPMRepositoryComponentdetails extends Component { constructor(props) { @@ -64,6 +65,7 @@ class TPMRepositoryComponentdetails extends Component { } fetchCode = (newPathArray) => { const path = newPathArray.join('/') + debugger // https://testeduplus2.educoder.net/shixuns/3ozvy5f8/file_content.json this.setContentWidth100(true) @@ -105,7 +107,8 @@ class TPMRepositoryComponentdetails extends Component { } // listItem 如果是num,则是通过面包屑点击过来的,取pathArray的子集 fetchRepo = (listItem) => { - + console.log(2) + debugger const { pathArray } = this.state; let newPathArray = pathArray.slice(0) @@ -190,7 +193,7 @@ class TPMRepositoryComponentdetails extends Component { }else if(matchpath==="/shixuns/:shixunId/secret_repository"){ flag =true; } - + // 需要重构 return ( diff --git a/public/react/src/modules/tpm/shixunchild/Repository/Repository.css b/public/react/src/modules/tpm/shixunchild/Repository/Repository.css index 15955a159..d08c741d7 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/Repository.css +++ b/public/react/src/modules/tpm/shixunchild/Repository/Repository.css @@ -39,7 +39,7 @@ } .color5091FF{ - color:#5091FF; + color:#5091FF !important; } .height7052pxRepositor{ @@ -61,4 +61,8 @@ .color888{ color:#888888 +} + +.padding0-12{ + padding: 12px 0px; } \ No newline at end of file diff --git a/public/react/src/modules/tpm/shixunchild/Repository/Repository.js b/public/react/src/modules/tpm/shixunchild/Repository/Repository.js index 960f88966..a2586a6d6 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/Repository.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/Repository.js @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import {getImageUrl} from "educoder"; import RepositoryDirectories from './RepositoryDirectories'; -import { Button ,Tree,Icon,Modal} from "antd"; +import { Button ,Tree,Icon,Modal,Tooltip} from "antd"; import axios from 'axios'; import {Link} from 'react-router-dom'; import RepositoryCombinePath from './RepositoryCombinePath'; @@ -202,12 +202,12 @@ class Repository extends Component {
- { - jsCopy() - }} data-tip-down="点击复制版本库地址" - className="fl ml5"> - - + + {jsCopy()}} className="fl ml5"> + + + +
+ + + { trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => { return ( :} id={`file${index}`} key={index}> diff --git a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryNoneData.js b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryNoneData.js index 2de778e62..969d6c118 100644 --- a/public/react/src/modules/tpm/shixunchild/Repository/RepositoryNoneData.js +++ b/public/react/src/modules/tpm/shixunchild/Repository/RepositoryNoneData.js @@ -32,7 +32,7 @@ class RepositoryNoneData extends Component{
此处存放本实训所需的所有代码等相关文件,你可以通过以下两种方式来使用:
-
1、Git客户端上传已有文件来开始使用。
+
1、Git客户端上传已有文件来开始使用。
2、直接在平台上创建文件目录以及相关代码文件。