Skip to content

Commit

Permalink
♻️ refactor: Refacotr file tree
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Sep 30, 2024
1 parent 0508d91 commit fe00131
Show file tree
Hide file tree
Showing 202 changed files with 492 additions and 578 deletions.
2 changes: 2 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const themeConfig = {
name: 'Icons',
nav: [
{ link: '/components/ai21', title: 'Icons' },
{ link: '/features/model-icon', title: 'Components' },
{ link: '/editor', title: 'Editor' },
{ link: '/changelog', title: 'Changelog' },
],
socialLinks: {
Expand Down
9 changes: 9 additions & 0 deletions docs/editor/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Icon Editor
description: Icon Editor for @lobehub/icons
nav:
title: Editor
order: 888
---

<code src="../../src/components/Editor/index.tsx" inline></code>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 1 addition & 5 deletions src/IconAvatar/index.md → docs/features/icon-avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@ title: IconAvatar

## Default

<code src="./demos/index.tsx" center></code>

## APIs

<API></API>
<code src="./demos/IconAvatar.tsx" center></code>
6 changes: 1 addition & 5 deletions src/IconCombine/index.md → docs/features/icon-combine.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@ title: IconCombine

## Default

<code src="./demos/index.tsx" center></code>

## APIs

<API></API>
<code src="./demos/IconCombine.tsx" center></code>
25 changes: 25 additions & 0 deletions docs/features/model-icon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
nav: Components
group: Features
title: ModelIcon
---

## Default

<code src="./demos/model-icon/index.tsx" center></code>

## Mono

<code src="./demos/model-icon/Mono.tsx" center></code>

## Color

<code src="./demos/model-icon/Color.tsx" center></code>

## Combine

<code src="./demos/model-icon/Combine.tsx" center></code>

## Combine Color

<code src="./demos/model-icon/CombineColor.tsx" center></code>
9 changes: 9 additions & 0 deletions docs/features/model-tag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
nav: Components
group: Features
title: ModelTag
---

## Default

<code src="./demos/model-tag/index.tsx" center></code>
25 changes: 25 additions & 0 deletions docs/features/provder-icon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
nav: Components
group: Features
title: ProviderIcon
---

## Default

<code src="./demos/provider-icon/index.tsx" center></code>

## Color

<code src="./demos/provider-icon/Color.tsx" center></code>

## Combine

<code src="./demos/provider-icon/Combine.tsx" center></code>

## Combine Color

<code src="./demos/provider-icon/CombineColor.tsx" center></code>

## Avatar

<code src="./demos/provider-icon/Avatar.tsx" center></code>
13 changes: 13 additions & 0 deletions docs/features/provider-combine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
nav: Components
group: Features
title: ProviderCombine
---

## Default

<code src="./demos/provider-combine/index.tsx" center></code>

## Mono

<code src="./demos/provider-combine/Mono.tsx" center></code>
2 changes: 1 addition & 1 deletion src/Adobe/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Adobe/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/AdobeFirefly/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/AdobeFirefly/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Avatar from './Avatar';
Expand Down
2 changes: 1 addition & 1 deletion src/Ai21/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_GRADIENT, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Ai21/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useTheme } from 'antd-style';
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Avatar from './Avatar';
Expand Down
2 changes: 1 addition & 1 deletion src/Ai360/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_GRADIENT, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Ai360/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/AiMass/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/AiMass/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/Alibaba/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/AntGroup/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Anthropic/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Automatic/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Automatic/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/Aws/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/Aws/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/Aya/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Aya/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/Azure/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Azure/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/Baichuan/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Baichuan/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/Baidu/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/BaiduCloud/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/BaiduCloud/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/Bedrock/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_GRADIENT, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Bedrock/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/Bing/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_GRADIENT, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Bing/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/ByteDance/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/ChatGLM/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_GRADIENT, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/ChatGLM/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
2 changes: 1 addition & 1 deletion src/Claude/components/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar';

import { COLOR_PRIMARY, TITLE } from '../style';
import Mono from './Mono';
Expand Down
2 changes: 1 addition & 1 deletion src/Claude/components/Combine.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { memo } from 'react';

import IconCombine, { type IconCombineProps } from '@/IconCombine';
import IconCombine, { type IconCombineProps } from '@/features/IconCombine';

import { SPACE_MULTIPLE, TEXT_MULTIPLE, TITLE } from '../style';
import Color from './Color';
Expand Down
Loading

0 comments on commit fe00131

Please sign in to comment.