Merge pull request '优化ProjectCompass组件判断、专区部分优化' (#785) from gitlink_management into pre_gitlink_ssr

1
This commit is contained in:
Eeeros 2024-11-08 13:44:06 +08:00
commit 866b91b19e
3 changed files with 9 additions and 8 deletions

View File

@ -152,12 +152,13 @@ function SpecialProjects({data, subTitle}) {
{ awards && <p className='font-15 pb5'>奖项<span className='color-blue'>{awards}</span></p> }
{ introductionImageIdentifier &&<p className='font-15 pb5 intro imageLayerParent'>简介<img className="intro-img pointer" src={ getImage(introductionImageIdentifier) } alt="" /></p>}
</div>
<div style={{padding: '22px 33px'}}>
{list("论文", "论文标题", "作者", "单位", PAPER)}
{list("专利", "专利标题", "作者", "单位", PATENT)}
{list2("开源项目", "项目名称", "参与者", PROJECT)}
{!PAPER.length && !PATENT.length && !PROJECT.length && <Nodata _html="暂无数据" small/>}
</div>
{
PAPER.length + PATENT.length + PROJECT.length > 0 && <div style={{padding: '22px 33px'}}>
{list("论文", "论文标题", "作者", "单位", PAPER)}
{list("专利", "专利标题", "作者", "单位", PATENT)}
{list2("开源项目", "项目名称", "参与者", PROJECT)}
</div>
}
</div>
</div>
);

View File

@ -71,7 +71,7 @@ function SourceDetail(props){
{detail.auditStatus === '0' && <Badge color={temp === "zone" ? "#466aff" : "#089f7f"} text="待审核" className='pass'/> }
{detail.auditStatus === '2' && <Badge color="#eb1212" text="未通过" className='failed'/> }
</div>
<div className='pb20'>{detail.summary}</div>
<div className='pb20' dangerouslySetInnerHTML={{ __html: detail.summary }} ></div>
{
detail.fileList && detail.fileList.length > 0 &&
<ul className="files_box">

View File

@ -699,7 +699,7 @@ function CoderDepot(props){
/>
</React.Fragment>
}
{__CLIENT__ && projectDetail && !projectDetail.private && <ProjectCompass owner={owner} projectsId={projectsId} />}
{__CLIENT__ && projectDetail && projectDetail.project_id && !projectDetail.private && <ProjectCompass owner={owner} projectsId={projectsId} />}
{/* 贡献者 */}
{mirror_status ===0 && <Contributors owner={owner} projectsId={projectsId} /> }
{/* 项目画像: 导入/fork项目不展示, open_portrait后台配置是否开启仓库 */}