Skip to content

Commit

Permalink
fix: clean old api
Browse files Browse the repository at this point in the history
Signed-off-by: laixingyou <[email protected]>
  • Loading branch information
coder-sett committed Nov 24, 2023
1 parent 823ef52 commit 38f2e40
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/common/transform/transMetricToAxis.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import parseISO from 'date-fns/parseISO';
import getUnixTime from 'date-fns/getUnixTime';
import { Level } from '@modules/analyze/constant';
import { MetricQuery, LabMetricQuery } from '@oss-compass/graphql';
import { MetricQuery } from '@oss-compass/graphql';
import { toFixed } from '@common/utils';
import { TransOpt, TransResult } from '@modules/analyze/type';
import { CommunityRepoType } from '../constant';

interface DataItem {
label: string;
level: Level;
result: MetricQuery | LabMetricQuery | undefined;
result: MetricQuery | undefined;
}

function getDateMap(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import useMetricQueryData from '@modules//analyze/hooks/useMetricQueryData';
import { withErrorBoundary } from 'react-error-boundary';
import ErrorFallback from '@common/components/ErrorFallback';
import { Level } from '@modules/analyze/constant';
import MetricDashboard from '@modules/analyze/components/MetricDetail/MetricDashboard';

const Overview: React.FC<{
data: DeepReadonly<
Expand Down
21 changes: 0 additions & 21 deletions apps/web/src/modules/analyze/MetricDetailPage.tsx

This file was deleted.

0 comments on commit 38f2e40

Please sign in to comment.