Skip to content

Commit

Permalink
iconpark-transfer (#2208)
Browse files Browse the repository at this point in the history
* feat(common): iconpark transfer

* feat(common): iconpark-transfer

* feat(common): iconpark transfer

* feat(common): feat(common): iconpark transfer

* feat(common): update pnpm-lock.yaml

Co-authored-by: 随风 <daskyrk@users.noreply.github.com>
  • Loading branch information
wuhuiluo and daskyrk authored Dec 13, 2021
1 parent f7f13ef commit 30fc6d8
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 59 deletions.
13 changes: 0 additions & 13 deletions pnpm-lock.yaml

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

10 changes: 1 addition & 9 deletions shell/app/App-vite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import orgStore, { isAdminRoute } from 'app/org-home/stores/org';
// import modules from './mf-modules'; // ambiguous modules may conflict with modules folder, then rename to mf-modules
import './styles/antd-extension.scss';
import './styles/app.scss';
import '@icon-park/react/styles/index.css';
import '@erda-ui/dashboard-configurator/dist/index.css';
import 'tailwindcss/tailwind.css';

Expand Down Expand Up @@ -69,11 +68,6 @@ Pagination.defaultProps = {
const start = (userData: ILoginUser, orgs: ORG.IOrg[]) => {
setLS('diceLoginState', true);

const IconConfig = {
...DEFAULT_ICON_CONFIGS,
prefix: 'erda',
};

const locale = window.localStorage.getItem('locale') || 'zh';
moment.locale(momentLangMap[locale]);
orgStore.reducers.updateJoinedOrg(orgs);
Expand Down Expand Up @@ -104,9 +98,7 @@ const start = (userData: ILoginUser, orgs: ORG.IOrg[]) => {
const Wrap = () => {
return (
<ConfigProvider renderEmpty={EmptyListHolder} locale={isZh() ? antd_zhCN : antd_enUS}>
<IconProvider value={IconConfig}>
<App />
</IconProvider>
<App />
</ConfigProvider>
);
};
Expand Down
10 changes: 1 addition & 9 deletions shell/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import orgStore, { isAdminRoute } from 'app/org-home/stores/org';
import modules from './mf-modules'; // ambiguous modules may conflict with modules folder, then rename to mf-modules
import './styles/antd-extension.scss';
import './styles/app.scss';
import '@icon-park/react/styles/index.css';
import '@erda-ui/dashboard-configurator/dist/index.css';
import 'tailwindcss/tailwind.css';

Expand All @@ -66,11 +65,6 @@ Pagination.defaultProps = {
const start = (userData: ILoginUser, orgs: ORG.IOrg[]) => {
setLS('diceLoginState', true);

const IconConfig = {
...DEFAULT_ICON_CONFIGS,
prefix: 'erda',
};

const locale = window.localStorage.getItem('locale') || 'zh';
moment.locale(momentLangMap[locale]);
orgStore.reducers.updateJoinedOrg(orgs);
Expand Down Expand Up @@ -102,9 +96,7 @@ const start = (userData: ILoginUser, orgs: ORG.IOrg[]) => {
const Wrap = () => {
return (
<ConfigProvider renderEmpty={EmptyListHolder} locale={isZh() ? antd_zhCN : antd_enUS}>
<IconProvider value={IconConfig}>
<App />
</IconProvider>
<App />
</ConfigProvider>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ const SideNavigation = ({
<div className="h-12 relative">
<Button type="primary" onClick={handleOnFold} className="absolute right-0 p-1">
{isFold ? (
<ErdaIcon type="menu-unfold" size="18" />
<ErdaIcon className="mt-0.5 mr-1" type="menu-unfold" size="18" />
) : (
<ErdaIcon type="menu-fold" size="18" />
<ErdaIcon className="mt-0.5 mr-1" type="menu-fold" size="18" />
)}
</Button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import i18n from 'i18n';
import React from 'react';
import { Icon as CustomIcon, ErdaIcon } from 'common';
import { List as IconTask, Bug as IconBug } from '@icon-park/react';
import './issue-config.scss';

export enum ISSUE_TYPE {
Expand All @@ -30,10 +29,10 @@ export const ISSUE_ICON = {
iteration: <CustomIcon type="bb1" className="issue-icon iteration" />,
priority: {
// 优先级icon
URGENT: <ErdaIcon type="jinji" size="20px"/>,
HIGH: <ErdaIcon type="gao" size="20px"/>,
URGENT: <ErdaIcon type="jinji" size="20px" />,
HIGH: <ErdaIcon type="gao" size="20px" />,
NORMAL: <ErdaIcon type="zhong" size="20px" />,
LOW: <ErdaIcon type="di" size="20px"/>,
LOW: <ErdaIcon type="di" size="20px" />,
},
issue: {
// 时间类型icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ import { Icon as CustomIcon, MemberSelector, ErdaIcon } from 'common';
import userStore from 'app/user/stores';
import { useUserMap } from 'core/stores/userMap';
import issueStore from 'project/stores/issues';
import {
PreviewOpen as IconPreviewOpen,
PreviewCloseOne as IconPreviewCloseOne,
Plus as IconPlus,
Right as IconRight,
} from '@icon-park/react';
import { getAvatarChars } from 'app/common/utils';

interface IProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import projectLabel from 'project/stores/label';
import React from 'react';
import { useEffectOnce } from 'react-use';
import './project-label.scss';
import { Close as IconClose, Plus as IconPlus } from '@icon-park/react';
import { auxiliaryColorMap } from 'common/constants';

const colors = Object.keys(auxiliaryColorMap);
Expand Down Expand Up @@ -145,8 +144,9 @@ const ProjectLabel = () => {
onClick={() => onClickLabel(label)}
>
{label.name}
<IconClose
className="ml-1"
<ErdaIcon
type="close"
className="ml-1 align-middle"
onClick={(e) => {
e.stopPropagation();
handleDelete(label);
Expand Down
9 changes: 0 additions & 9 deletions shell/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,6 @@ module.exports = {
},
'lodash',
],
[
'import',
{
libraryName: '@icon-park/react',
libraryDirectory: 'es/icons',
camel2DashComponentName: false,
},
'iconpark',
],
[
'import',
{
Expand Down
3 changes: 0 additions & 3 deletions shell/mf.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ module.exports = [
singleton: true,
requiredVersion: packageJson.dependencies['react-dom'],
},
'@icon-park/react': {
requiredVersion: packageJson.dependencies['@icon-park/react'],
},
},
},
];
1 change: 0 additions & 1 deletion shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"dependencies": {
"@erda-ui/dashboard-configurator": "2.0.5",
"@erda-ui/react-markdown-editor-lite": "^1.4.7",
"@icon-park/react": "^1.3.3",
"ace-builds": "^1.4.7",
"ansi_up": "^5.0.1",
"antd": "^4.16.13",
Expand Down

0 comments on commit 30fc6d8

Please sign in to comment.