From 8cc13f77e13745b5425a129a8ef02768799e1223 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 23 Nov 2020 15:23:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81-=E6=97=A0=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppConfig.js | 2 +- src/forge/DevOps/About.jsx | 10 ++++++++-- src/forge/DevOps/ops.scss | 7 +++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index d387eb1d8..c81b05530 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -27,7 +27,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 || 'admin' + window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'student' } function clearAllCookie() { cookie.remove('_educoder_session', { path: '/' }); diff --git a/src/forge/DevOps/About.jsx b/src/forge/DevOps/About.jsx index 107b351f3..d3e5c1847 100644 --- a/src/forge/DevOps/About.jsx +++ b/src/forge/DevOps/About.jsx @@ -8,7 +8,7 @@ import axios from "axios"; const P = styled.p` { - width: 200px; + width: 230px; line-height: 30px; font-size: 16px; color: #333; @@ -33,7 +33,6 @@ function About(props, ref) { const AuthorLogin = props.author && props.author.login; const CurrentLogin = props.current_user && props.current_user.login; - useEffect(()=>{ if(CurrentLogin === AuthorLogin){ auth('get'); @@ -127,9 +126,16 @@ function About(props, ref) {

定义DevOps工作流,帮助您检测bug、发布代码…

+ { + CurrentLogin !== AuthorLogin && (step === undefined || (step && step < 1)) && +
DevOps开启功能暂未对项目创建者以外的角色开放,可以联系项目创建者进行开启,开启后便可查看构建信息。
+ } 了解什么是DevOps? + + 如何使用DevOps? + { AuthorLogin === CurrentLogin ? diff --git a/src/forge/DevOps/ops.scss b/src/forge/DevOps/ops.scss index 6e0c4fa11..7a98d240a 100644 --- a/src/forge/DevOps/ops.scss +++ b/src/forge/DevOps/ops.scss @@ -307,3 +307,10 @@ margin-bottom: 0px; } } +.noOperation{ + margin-bottom:20px; + width:380px; + text-align:center; + line-height:22px; + color:#666; +} \ No newline at end of file