Skip to content

Commit

Permalink
fix: remove the broken ECMA version badge (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Nov 15, 2024
1 parent 7b806d0 commit 44e9032
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 95 deletions.
14 changes: 2 additions & 12 deletions packages/components/src/components/Loader/Analysis/files.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback, useMemo, useRef, useState } from 'react';
import { endsWith, get, sumBy } from 'lodash-es';
import { get, sumBy } from 'lodash-es';
import {
Card,
Col,
Expand All @@ -13,7 +13,7 @@ import {
Typography,
} from 'antd';
import { CloseCircleOutlined } from '@ant-design/icons';
import { Constants, SDK } from '@rsdoctor/types';
import { SDK } from '@rsdoctor/types';
import { ServerAPIProvider } from '../../Manifest';
import { drawerWidth, Size } from '../../../constants';
import {
Expand All @@ -27,7 +27,6 @@ import {
import { LoaderExecutions } from '../executions';
import { FileTree } from '../../FileTree';
import { Keyword } from '../../Keyword';
import { ECMAVersionDetectTag } from '../../worker/ecmaversion/client';

export const LoaderFiles: React.FC<{
filetree: SDK.ServerAPI.InferResponseType<SDK.ServerAPI.API.GetLoaderFileTree>;
Expand Down Expand Up @@ -78,15 +77,6 @@ export const LoaderFiles: React.FC<{
}}
>
<Keyword text={basename} keyword={props.filename} />
{endsWith(file, Constants.JSExtension) ? (
<ServerAPIProvider
api={SDK.ServerAPI.API.GetLoaderFileFirstInput}
body={{ file }}
fallbackComponent={() => null}
>
{(res) => <ECMAVersionDetectTag code={res} />}
</ServerAPIProvider>
) : null}
{loaders.map((e, i) => {
const isError = e.errors && e.errors.length;
const key = `${file}_${e.loader}_${i}`;
Expand Down
66 changes: 0 additions & 66 deletions packages/components/src/components/worker/ecmaversion/client.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions packages/components/src/components/worker/ecmaversion/worker.js

This file was deleted.

0 comments on commit 44e9032

Please sign in to comment.