Skip to content

Commit

Permalink
feat: delete useless dependencies, fix header style
Browse files Browse the repository at this point in the history
  • Loading branch information
curryZhaoAelf committed Mar 8, 2024
1 parent 970b12d commit 1adb329
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 110 deletions.
2 changes: 0 additions & 2 deletions .dumi/global.less
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#root {
background-color: rgb(248, 248, 250);
.dumi-default-header {
background: rgb(255, 255, 255);
box-shadow:
rgba(0, 0, 0, 0.03) 0px 1px 2px 0px,
rgba(0, 0, 0, 0.02) 0px 1px 6px -1px,
rgba(0, 0, 0, 0.02) 0px 2px 4px 0px;
border-bottom: 1px solid rgb(240, 240, 240);
}
.dumi-default-header-left {
width: 300px;
Expand Down
2 changes: 1 addition & 1 deletion .dumi/theme/builtins/IconSearch/IconSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import AntdIcon from '@ant-design/icons';
import { Affix, Empty, Grid, Input, Segmented, type SegmentedProps } from 'antd';
import { createStyles, useTheme } from 'antd-style';
import { useIntl } from 'dumi';
import debounce from 'lodash/debounce';
import { debounce } from 'lodash-es';

import Category from './Category';
import { categories, CategoriesKeys } from './fields';
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
"devDependencies": {
"@aelf-design/common": "workspace:*",
"@aelf-design/internal-icons": "workspace:*",
"aelf-design": "workspace:*",
"@ant-design/icons": "^5.2.6",
"@babel/parser": "^7.24.0",
"@biomejs/biome": "^1.4.1",
"@changesets/changelog-git": "^0.2.0",
"@changesets/cli": "^2.27.1",
"@dr.pogodin/babel-preset-svgr": "^1.8.0",
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
"@svgr/babel-plugin-transform-svg-component": "^8.0.0",
"@svgr/babel-preset": "^8.1.0",
Expand All @@ -70,12 +70,9 @@
"@typescript-eslint/parser": "^7.1.1",
"@umijs/fabric": "^4.0.1",
"@vitest/coverage-v8": "^1.1.0",
"aelf-design": "workspace:*",
"antd": "^5.13.2",
"antd-style": "^3.6.1",
"babel-plugin-add-import-extension": "^1.6.0",
"babel-plugin-inline-react-svg-v2": "^2.0.2",
"babel-plugin-react-svg": "^3.0.3",
"classnames": "^2.3.2",
"dumi": "^2.2.17",
"eslint": "^8.56.0",
Expand All @@ -84,12 +81,11 @@
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^3.0.0",
"ethers": "^6.9.1",
"father": "^4.3.8",
"husky": "^8.0.3",
"jsdom": "^23.0.1",
"lint-staged": "^15.2.0",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"prettier": "^3.1.1",
"rc-util": "^5.38.1",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"include": ["src", "global.d.ts", "../ethereum/src/wallets"]
"include": ["src"]
}
3 changes: 2 additions & 1 deletion packages/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"copy-to-clipboard": "^3.3.3",
"swiper": "^11.0.5",
"dayjs": "^1.11.10",
"ahooks": "^3.7.10"
"ahooks": "^3.7.10",
"lodash-es": "^4.17.21"
},
"devDependencies": {
"@types/react": "^18.2.45",
Expand Down
2 changes: 1 addition & 1 deletion packages/component/src/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { MouseEvent } from 'react';
import { Button as AntdButton, ButtonProps } from 'antd';
import { debounce } from 'lodash';
import { debounce } from 'lodash-es';

import useStyles from './style';

Expand Down
2 changes: 1 addition & 1 deletion packages/component/src/Pagination/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useMemo, useState } from 'react';
import { DownArrowIcon, LeftArrowIcon, RightArrowIcon } from '@aelf-design/internal-icons';
import { Select } from 'antd';
import { debounce } from 'lodash';
import { debounce } from 'lodash-es';

import Button from '../Button';
import useStyles from './style';
Expand Down
3 changes: 1 addition & 2 deletions packages/component/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"include": ["src/", "global.d.ts"],
"exclude": ["src/**/*/demos/"],
"include": ["src", "global.d.ts"],
"compilerOptions": {
"outDir": "dist"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/internal-icons/src/__tests__/iconTest.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path';
import { type ComponentType } from 'react';
import React, { type ComponentType } from 'react';
import { globSync } from 'glob';

export async function getComponents(dir: string): Promise<ComponentType[]> {
Expand Down
1 change: 1 addition & 0 deletions packages/internal-icons/src/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import { render } from '@testing-library/react';
import { describe, expect, it } from 'vitest';

Expand Down
1 change: 0 additions & 1 deletion packages/internal-icons/src/global.d.ts

This file was deleted.

98 changes: 7 additions & 91 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "./tsconfig.base.json",
"include": ["./packages/component/src/**/*", ".dumirc.ts"],
"exclude": ["./docs/**/*", "./packages/component/src/**/*/demos/"]
"include": ["/packages/**/*", ".dumirc.ts"]
}

0 comments on commit 1adb329

Please sign in to comment.