针对本地版本的一些修改
This commit is contained in:
parent
3ebef52e63
commit
68a0e8d225
|
|
@ -10,15 +10,12 @@ export const TEST_HOST = "https://testforgeplus.trustie.net/"
|
|||
export function getImageUrl(path) {
|
||||
const local = 'https://testforgeplus.educoder.net';
|
||||
const normal = 'https://ali-cdn.educoder.net/images';
|
||||
const normalend = 'https://ali-cdn.educoder.net';
|
||||
if(path.substr(0, 7) !== "/system"){
|
||||
if (isDev) {
|
||||
return `${local}/${path}`
|
||||
}
|
||||
if(path.substr(0, 7) !== "/images"){
|
||||
return `${normal}${path}`;
|
||||
}else{
|
||||
return `${normalend}${path}`;
|
||||
}
|
||||
}
|
||||
return `${path}`;
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ class NewHeader extends Component {
|
|||
addMenu=(list)=>{
|
||||
return(
|
||||
list && list.length >0 &&
|
||||
<div className="dropdownFlex">
|
||||
<div className="dropdownFlex double">
|
||||
<Menu>
|
||||
{
|
||||
list.map((item,key)=>{
|
||||
|
|
|
|||
|
|
@ -1,17 +1,45 @@
|
|||
|
||||
.dropdownFlex.double{
|
||||
width: 232px;
|
||||
.ant-menu{
|
||||
height: 145px;
|
||||
.ant-menu-item:nth-child(-n+4){
|
||||
border-right: 1px solid #eee;
|
||||
}
|
||||
.ant-menu-item{
|
||||
padding:0px 5px;
|
||||
}
|
||||
.ant-menu-item:hover a{
|
||||
color: #fff!important;
|
||||
background-color: #1890ff;
|
||||
}
|
||||
}
|
||||
}
|
||||
.dropdownFlex{
|
||||
display:flex;
|
||||
background:#fff;
|
||||
border-radius: 3px;
|
||||
.ant-menu-vertical > .ant-menu-item{
|
||||
padding:5px 0px;
|
||||
box-sizing: border-box;
|
||||
.ant-menu{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 45px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.ant-menu > .ant-menu-item{
|
||||
border:none;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
margin:0px;
|
||||
width: 116px;
|
||||
&.ant-menu-item-selected{
|
||||
background-color: #fff;
|
||||
a{color: rgba(0, 0, 0, 0.65)!important;}
|
||||
}
|
||||
a{
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
&.ant-menu-item-active{
|
||||
a{color: #4cacff!important;}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -274,9 +274,9 @@ class Index extends Component {
|
|||
<Button type={"primary"} size={"large"}>
|
||||
<AddProjectModal showNotification={this.props.showNotification}/>
|
||||
</Button>
|
||||
<Button type={"primary"} size={"large"} style={{backgroundColor:"rgb(47, 163, 79)",borderColor:"rgb(47, 163, 79)"}}>
|
||||
{/* <Button type={"primary"} size={"large"} style={{backgroundColor:"rgb(47, 163, 79)",borderColor:"rgb(47, 163, 79)"}}>
|
||||
<a href={`https://data.educoder.net/api/attachments/1955244?disposition=inline`} target="_blank">新手指引</a>
|
||||
</Button>
|
||||
</Button> */}
|
||||
</div>
|
||||
</div>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ function DetailBanner({ history,list , owner , projectsId , isManager , url , pa
|
|||
<li className={(pathname==="" || urlFlag) ? "active" : ""}>
|
||||
<Link to={{ pathname: `/projects/${owner}/${projectsId}`, state }}>
|
||||
<i className={(pathname==="" || urlFlag) ? "iconfont icon-daimaku color-grey-3 mr5 font-14":"iconfont icon-daimaku color-grey-6 font-14 mr5"}></i>
|
||||
<span>代码库</span>
|
||||
<span>代码</span>
|
||||
</Link>
|
||||
</li>
|
||||
}
|
||||
|
|
@ -69,7 +69,7 @@ function DetailBanner({ history,list , owner , projectsId , isManager , url , pa
|
|||
item.menu_name === "devops" && platform ?
|
||||
<li className={pathname==="devops" ? "active" : ""}>
|
||||
<Link to={{ pathname: `/projects/${owner}/${projectsId}/devops${open_devops ? `/dispose`:""}`, state }}>
|
||||
<i className="iconfont icon-gongzuoliu font-13 mr8"></i>工作流(beta版)
|
||||
<i className="iconfont icon-gongzuoliu font-13 mr8"></i>工作流(beta)
|
||||
{projectDetail && projectDetail.ops_count ? <span>{projectDetail.ops_count}</span> : ""}
|
||||
</Link>
|
||||
</li>
|
||||
|
|
@ -109,7 +109,7 @@ function DetailBanner({ history,list , owner , projectsId , isManager , url , pa
|
|||
<li className={pathname === "setting" ? "active" : ""}>
|
||||
<Link to={`/projects/${owner}/${projectsId}/setting`}>
|
||||
<i className={url && url.indexOf("/setting") > 0 ? "iconfont icon-cangku color-grey-3 mr5 font-14":"iconfont icon-cangku color-grey-6 font-14 mr5"}></i>
|
||||
<span>仓库设置</span>
|
||||
<span>设置</span>
|
||||
</Link>
|
||||
</li>
|
||||
}
|
||||
|
|
@ -127,7 +127,7 @@ function DetailBanner({ history,list , owner , projectsId , isManager , url , pa
|
|||
<li className={pathname === "sonar" ? "active" : ""}>
|
||||
<Link to={`/projects/${owner}/${projectsId}/sonar`}>
|
||||
<i className={url && url.indexOf("/sonar") > 0 ? "iconfont icon-tijiao color-grey-3 mr5 font-18":"iconfont icon-tijiao color-grey-6 font-18 mr5"}></i>
|
||||
<span>代码质量分析</span>
|
||||
<span>质量分析</span>
|
||||
</Link>
|
||||
</li>
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue