diff --git a/src/AppConfig.js b/src/AppConfig.js index decab74c7..e07996277 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -30,7 +30,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' } function clearAllCookie() { cookie.remove('_educoder_session', { path: '/' }); diff --git a/src/forge/Component/Title.jsx b/src/forge/Component/Title.jsx new file mode 100644 index 000000000..a9d1ad37a --- /dev/null +++ b/src/forge/Component/Title.jsx @@ -0,0 +1,16 @@ +import React from 'react'; +import styled from 'styled-components'; + +const Nav = styled.div`{ + background-color:#fff; + padding:20px 30px; + border-bottom:1px solid #eee; + font-size:16px; + color:#333; +}` + +export default (({children})=>{ + return( + + ) +}) \ No newline at end of file diff --git a/src/forge/Component/layout.jsx b/src/forge/Component/layout.jsx index 821071fcb..71824e8fc 100644 --- a/src/forge/Component/layout.jsx +++ b/src/forge/Component/layout.jsx @@ -15,6 +15,11 @@ export const AlignCenterBetween = styled.div`{ justify-content: space-between; border-bottom:1px solid #eee; }` +export const FlexAJ = styled.div`{ + display:flex; + align-items: center; + justify-content: space-between; +}` export const AlignCenter = styled.div`{ display:flex; align-items: center; @@ -42,3 +47,33 @@ export const WhiteBack = styled.div`{ background-color:#fff; border-radius:5px; }` +export const Blueline = styled.a`{ + height:30px; + line-height:30px; + border-radius:5px; + border:1px solid rgba(80,145,255,1); + color:rgba(80,145,255,1); + padding:0px 12px; +}` +export const NumUl = styled.ul`{ + padding-left: 20px; + & > li{ + list-style-type: decimal; + color:#888; + height:24px; + line-height:24px; + } +}` +export const GreenUnder = styled.a`{ + color:#28BD6C!important; + position:relative; + &:after{ + position:absolute; + bottom:-2px; + left:0px; + width:100%; + height:1px; + content:''; + background:#28BD6C; + } +}` diff --git a/src/forge/Main/list.css b/src/forge/Main/list.css index a022bb31c..be8a4db29 100644 --- a/src/forge/Main/list.css +++ b/src/forge/Main/list.css @@ -99,7 +99,7 @@ .list-l-Menu li.active::before{ position: absolute; left: 0px; - top: 10px; + top: 15px; width: 6px; content: ''; height: 33px; diff --git a/src/forge/Settings/Branch.js b/src/forge/Settings/Branch.js index 1ab6c313a..b3b4b0891 100644 --- a/src/forge/Settings/Branch.js +++ b/src/forge/Settings/Branch.js @@ -1,42 +1,51 @@ -import React , { useEffect , useState } from 'react'; -import { Input , Select } from 'antd'; -import { getBranch } from '../GetData/getData'; +import React , { useState } from 'react'; +import SelectBranch from '../Branch/Select'; +import Title from '../Component/Title'; +import styled from 'styled-components'; +import { Blueline , FlexAJ , NumUl , GreenUnder , AlignCenter , WhiteBack } from '../Component/layout'; +const Div = styled.div`{ + padding:20px 30px; + min-height:500px; +}` -const { Option } = Select; export default ((props)=>{ - const [ branchList , setBranchList] = useState(undefined); + const [ branch , setBranch ] = useState("master"); const { projectsId } = props.match.params; + const projectDetail = props.projectDetail; - useEffect(()=>{ - getBranchs(projectsId); - },[projectsId]) + function resetSetting(){ - async function getBranchs(id){ - let result = await getBranch(id); - setBranchList(result); } - - - const branchListRender = ( - branchList && branchList.map((item,key)=>{ - return( - - ) - }) - ) return( -
+@@ -63,7 +64,6 @@ class Index extends Component { 分支设置 -
镜像设置
+ +