Skip to content

Commit

Permalink
feat: update jacoco
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Jun 4, 2024
1 parent 57372dc commit 74cdd72
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const ReportPage = () => {
// path: path,
// });

nav(`/jacoco/projects/${projectID}/commits/${sha}?path=${path}`);
nav(`/projects/${projectID}/commits/${sha}?path=${path}`);
// console.log(path);

console.log(path, 'path');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useRequest } from 'ahooks';
import { useLocation, useNavigate, useParams, useSearchParams } from 'react-router-dom';

import CanyonReport from '../../../../../components/CanyonReport';
import ReportPage from '../../../../../components/JacocoReport';
import { GetProjectByIdDocument } from '../../../../../helpers/backend/gen/graphql.ts';
import { getCoverageSummaryMapService, handleSelectFile } from './helper';
const { useToken } = theme;
Expand Down Expand Up @@ -84,17 +85,23 @@ const Sha = () => {
>
{/*{pathWithNamespace}111*/}
{/*{pathWithNamespace}*/}
<CanyonReport
theme={localStorage.getItem('theme') || 'light'}
mainData={mainData}
pathWithNamespace={pathWithNamespace}
activatedPath={activatedPath}
coverageSummaryMapData={coverageSummaryMapData || []}
loading={loading}
onSelect={(v) => {
setActivatedPath(v.path);
}}
/>

<>{getProjectByIdDocumentData?.getProjectByID.language === 'Java' && <ReportPage />}</>
<>
{getProjectByIdDocumentData?.getProjectByID.language === 'JavaScript' && (
<CanyonReport
theme={localStorage.getItem('theme') || 'light'}
mainData={mainData}
pathWithNamespace={pathWithNamespace}
activatedPath={activatedPath}
coverageSummaryMapData={coverageSummaryMapData || []}
loading={loading}
onSelect={(v) => {
setActivatedPath(v.path);
}}
/>
)}
</>
</div>
);
};
Expand Down

0 comments on commit 74cdd72

Please sign in to comment.