木兰社区-和forge统一,不包含通知系统、资源库等、第三方登录改为木兰

This commit is contained in:
caishi 2021-09-29 15:38:07 +08:00
parent f34b8f8756
commit efda2132ae
5 changed files with 7 additions and 6 deletions

View File

@ -439,7 +439,7 @@ class NewHeader extends Component {
</Dropdown>:""
}
{current_user && current_user.login ?
{/* {current_user && current_user.login ?
<Popover
overlayClassName="notice-popover"
placement={`bottomRight`}
@ -455,7 +455,7 @@ class NewHeader extends Component {
</Link>
</Popover>
: ""
}
} */}
</div>
{!user || (user && !user.login) ?
<span className="font-15 ml30">

View File

@ -86,7 +86,7 @@ function DetailBanner({ history,list , owner , projectsId , isManager , url , pa
</li>
:""
}
{
{/* {
item.menu_name === "resources" &&
<li className={pathname==="source" ? "active" : ""}>
<Link to={{ pathname: `/${owner}/${projectsId}/source`, state }}>
@ -95,7 +95,7 @@ function DetailBanner({ history,list , owner , projectsId , isManager , url , pa
{projectDetail && projectDetail.source_count ? <span className="num">{projectDetail.source_count}</span> :""}
</Link>
</li>
}
} */}
{
item.menu_name === "versions" &&
<li className={pathname==="milestones" ? "active" : ""}>

View File

@ -16,7 +16,7 @@ const menu = [
{name:"合并请求",index:"pulls"},
{name:"Wiki",index:"wiki"},
{name:"工作流(beta版)",index:"devops"},
{name:"资源库",index:"resources"},
// {name:"资源库",index:"resources"},
{name:"里程碑",index:"versions"},
{name:"动态",index:"activity"},
]

View File

@ -5,6 +5,7 @@ import { notification } from 'antd';
import axios from 'axios';
import educoderLogo from './educoder.png';
import mulanLogo from './img/mulan.png';
import './LoginDialog.css';
import { broadcastChannelPostMessage } from 'educoder'
@ -573,7 +574,7 @@ class LoginDialog extends Component {
{settings.third_party.map((item,key)=>{
return(
<a href={`${item.url}`}>
<img src={item.name === "educoder" ? educoderLogo : ""} width="46px" alt={`${item.name}登录`} />
<img src={item.name === "mulan" ? mulanLogo : ""} width="46px" alt={`${item.name}登录`} />
</a>
)
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB