diff --git a/src/AppConfig.js b/src/AppConfig.js index 406f60226..9388b124f 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -39,7 +39,7 @@ if (isDev) { } debugType = window.location.search.indexOf('debug=t') != -1 ? 'teacher' : window.location.search.indexOf('debug=s') != -1 ? 'student' : - window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || '' + window.location.search.indexOf('debug=a') != -1 ? 'admin' : parsed.debug || 'admin' } // 超管 // debugType="admin"; diff --git a/src/forge/Main/CoderRootDirectory.js b/src/forge/Main/CoderRootDirectory.js index ed1114a3f..71adf1259 100644 --- a/src/forge/Main/CoderRootDirectory.js +++ b/src/forge/Main/CoderRootDirectory.js @@ -294,9 +294,9 @@ class CoderRootDirectory extends Component{
+
新建文件 - 上传文件 + {/* 上传文件 */}
} { diff --git a/src/forge/Main/list.css b/src/forge/Main/list.css index 1fc86cb8d..60bfcd377 100644 --- a/src/forge/Main/list.css +++ b/src/forge/Main/list.css @@ -442,10 +442,10 @@ body,#root{ padding: 0px 10px; } .addFile a:first-child{ - border-radius: 4px 0px 0px 4px; + border-radius: 4px; } .addFile a:last-child{ - border-radius: 0px 4px 4px 0px; + /* border-radius: 0px 4px 4px 0px; */ border-left: 1px solid rgba(247, 247, 247, 0.3); } .addFile a:active{ diff --git a/src/forge/Newfile/UserSubmitComponent.js b/src/forge/Newfile/UserSubmitComponent.js index d4ccd2f31..fe138f3f4 100644 --- a/src/forge/Newfile/UserSubmitComponent.js +++ b/src/forge/Newfile/UserSubmitComponent.js @@ -22,13 +22,13 @@ class UserSubmitComponent extends Component{ // 提交变更 subMitFrom=()=>{ - const { current_user , filepath , content } = this.props; + const { filepath , content } = this.props; const { branch , projectsId } = this.props.match.params; const { submitType } = this.state; let path = filepath.substr(1); this.props.form.validateFieldsAndScroll((err, values) => { if(!err){ - const url = `/${current_user && current_user.login}/${projectsId}/contents.json`; + const url = `/repositories/${projectsId}/create_file.json`; axios.post(url,{ filepath:path, branch:submitType==="0" ? branch : undefined, diff --git a/src/forge/Settings/Index.js b/src/forge/Settings/Index.js index a19b296e2..7c20adeeb 100644 --- a/src/forge/Settings/Index.js +++ b/src/forge/Settings/Index.js @@ -22,7 +22,6 @@ const Collaborator = Loadable({ class Index extends Component{ render(){ const { projectsId } = this.props.match.params; - console.log(this.props); const { pathname } = this.props.history.location; const flag = (pathname === `/projects/${projectsId}/setting`); @@ -36,7 +35,7 @@ class Index extends Component{