Skip to content

Commit

Permalink
feat(ui): bundle size page
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 committed Jan 10, 2025
1 parent 774324f commit 1948051
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions packages/components/src/components/CodeViewer/viewer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/* eslint-disable financial/no-float-calculation */
import React from 'react';
import { SDK } from '@rsdoctor/types';
import Editor, { OnMount } from '@monaco-editor/react';
import { isNumber } from 'lodash-es';
// import { CodeOutlined } from '@ant-design/icons';
import type { editor } from 'monaco-editor';
import { getOriginalLanguage, getSelectionRange } from '../../utils';
import { DefaultEditorConfig } from './config';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ export const AssetDetail: React.FC<{
height,
root,
}) => {
// const navigate = useNavigate();
const [moduleKeyword, setModuleKeyword] = useState('');
const [defaultExpandAll, setDefaultExpandAll] = useState(false);
const [moduleJumpList, setModuleJumpList] = useState([] as number[]);
Expand Down Expand Up @@ -468,7 +467,6 @@ export const AssetDetail: React.FC<{
}

const p = relative(dirname(mod.path), path);

if (p.startsWith('javascript;charset=utf-8;base64,')) {
return (
<Typography.Text
Expand Down Expand Up @@ -513,6 +511,7 @@ export const AssetDetail: React.FC<{
dirTitle(dir, defaultTitle) {
const paths = getChildrenModule(dir);
if (paths.length) {
// TODO: this counts need to fixed.
// const mods = paths.map(
// (e) => includeModules.find((m) => m.path === e)!,
// );
Expand Down

0 comments on commit 1948051

Please sign in to comment.