Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Jun 2, 2024
1 parent 19d8ef4 commit d2d1eb9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class GetProjectRecordsService {
functions: coverage.summary['functions']['pct'] || 100,
branches: coverage.summary['branches']['pct'] || 100,
lines: coverage.summary['lines']['pct'] || 100,
lastReportTime: cs[0]?.updatedAt || new Date(),
lastReportTime: cs[0]?.updatedAt || coverage.createdAt, //没有agg类型的时候就用all的创建时间
times: cs.length,
logs: [],
};
Expand Down
18 changes: 11 additions & 7 deletions packages/canyon-platform/src/pages/index/projects/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const ProjectPage = () => {
dataIndex: 'id',
key: 'slug',
render(text) {
return <span className={'w-[80px] block'}>{text.split('-')[2]}</span>;
return <span className={'max-w-[80px] block'}>{text.split('-')[2]}</span>;
},
},
{
Expand All @@ -87,11 +87,15 @@ const ProjectPage = () => {
key: 'pathWithNamespace',
render: (text, record) => {
return (
<div className={'flex flex-col'}>
<div className={'flex gap-1 items-center'}>
<div className={'flex gap-1'}>
<div>
<img src={`/langs/${record.language}.svg`} alt='' className={'w-[16px]'} />
<Divider type={'vertical'} style={{ marginLeft: '2px', marginRight: '2px' }} />
<span style={{ width: '4px', display: 'inline-block' }}></span>
<img src='/gitproviders/gitlab.svg' alt='' className={'w-[16px]'} />
</div>

<span style={{ width: '4px', display: 'inline-block' }}></span>
<div className={'flex gap-1 flex-col'}>
<a
className={'max-w-[240px]'}
style={{ color: 'unset' }}
Expand All @@ -101,10 +105,10 @@ const ProjectPage = () => {
>
{text}
</a>
<Text type={'secondary'} style={{ fontSize: '12px', width: '240px' }}>
{record.description}
</Text>
</div>
<Text type={'secondary'} style={{ fontSize: '12px', width: '240px' }}>
{record.description}
</Text>
</div>
);
},
Expand Down

0 comments on commit d2d1eb9

Please sign in to comment.