Skip to content

Commit 2fdd538

Browse files
💄 style: Update config
1 parent 53242ec commit 2fdd538

File tree

7 files changed

+47
-11
lines changed

7 files changed

+47
-11
lines changed

docs/features/icon-avatar.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ group:
44
title: Components
55
order: 10
66
title: IconAvatar
7+
apiHeader:
8+
docUrl: 'https://github.com/lobehub/lobe-icons/tree/master/docs/features/icon-avatar.md'
9+
sourceUrl: 'https://github.com/lobehub/lobe-icons/tree/master/src/features/IconAvatar/index.tsx'
710
---
811

912
## Default

docs/features/icon-combine.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ group:
44
title: Components
55
order: 10
66
title: IconCombine
7+
apiHeader:
8+
docUrl: 'https://github.com/lobehub/lobe-icons/tree/master/docs/features/icon-combine.md'
9+
sourceUrl: 'https://github.com/lobehub/lobe-ui/tree/master/src/features/IconCombine/index.tsx'
710
---
811

912
## Default

docs/features/model-icon.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
nav: Components
33
group: Features
44
title: ModelIcon
5+
apiHeader:
6+
docUrl: 'https://github.com/lobehub/lobe-icons/tree/master/docs/features/model-icon.md'
7+
sourceUrl: 'https://github.com/lobehub/lobe-icons/tree/master/src/features/ModelIcon/index.tsx'
58
---
69

710
## Default
@@ -23,3 +26,7 @@ title: ModelIcon
2326
## Combine Color
2427

2528
<code src="./demos/model-icon/CombineColor.tsx" center></code>
29+
30+
## Config
31+
32+
- **Config:** <https://github.com/lobehub/lobe-icons/blob/master/src/features/modelConfig.ts>

docs/features/model-tag.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22
nav: Components
33
group: Features
44
title: ModelTag
5+
apiHeader:
6+
docUrl: 'https://github.com/lobehub/lobe-icons/tree/master/docs/features/model-tag.md'
7+
sourceUrl: 'https://github.com/lobehub/lobe-icons/tree/master/src/features/ModelTag/index.tsx'
58
---
69

710
## Default
811

912
<code src="./demos/model-tag/index.tsx" center></code>
13+
14+
## Config
15+
16+
- **Config:** <https://github.com/lobehub/lobe-icons/blob/master/src/features/modelConfig.ts>

docs/features/provder-icon.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
nav: Components
33
group: Features
44
title: ProviderIcon
5+
apiHeader:
6+
docUrl: 'https://github.com/lobehub/lobe-icons/tree/master/docs/features/provider-icon.md'
7+
sourceUrl: 'https://github.com/lobehub/lobe-icons/tree/master/src/features/ProviderIcon/index.tsx'
58
---
69

710
## Default
@@ -23,3 +26,8 @@ title: ProviderIcon
2326
## Avatar
2427

2528
<code src="./demos/provider-icon/Avatar.tsx" center></code>
29+
30+
## Config
31+
32+
- **Enum:** <https://github.com/lobehub/lobe-icons/blob/master/src/features/providerEnum.ts>
33+
- **Config:** <https://github.com/lobehub/lobe-icons/blob/master/src/features/providerConfig.tsx>

docs/features/provider-combine.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
nav: Components
33
group: Features
44
title: ProviderCombine
5+
apiHeader:
6+
docUrl: 'https://github.com/lobehub/lobe-icons/tree/master/docs/features/provider-combine.md'
7+
sourceUrl: 'https://github.com/lobehub/lobe-icons/tree/master/src/features/ProviderCombine/index.tsx'
58
---
69

710
## Default
@@ -11,3 +14,8 @@ title: ProviderCombine
1114
## Mono
1215

1316
<code src="./demos/provider-combine/Mono.tsx" center></code>
17+
18+
## Config
19+
20+
- **Enum:** <https://github.com/lobehub/lobe-icons/blob/master/src/features/providerEnum.ts>
21+
- **Config:** <https://github.com/lobehub/lobe-icons/blob/master/src/features/providerConfig.tsx>

src/features/providerConfig.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DivProps } from '@lobehub/ui';
2-
import { FC } from 'react';
2+
import { FC, memo } from 'react';
33

44
import Ai21 from '@/Ai21';
55
import Ai360 from '@/Ai360';
@@ -67,21 +67,21 @@ export const providerMappings: ProviderMapping[] = [
6767
{ Icon: LobeHub, keywords: [ModelProvider.LobeHub] },
6868
{ Icon: Zhipu, combineMultiple: 1.25, keywords: [ModelProvider.ZhiPu] },
6969
{
70-
Combine: ({ size = 24, type = 'color', ...props }) => (
70+
Combine: memo(({ size = 24, type = 'color', ...props }) => (
7171
<Combine
7272
left={type === 'color' ? <Aws.Color size={size * 1.2} /> : <Aws size={size * 1.2} />}
7373
right={<Bedrock.Combine size={size} type={type} />}
7474
size={size}
7575
{...props}
7676
/>
77-
),
77+
)),
7878
Icon: Bedrock,
7979
combineMultiple: 1.1,
8080
keywords: [ModelProvider.Bedrock],
8181
},
8282
{ Icon: DeepSeek, combineMultiple: 1.16, keywords: [ModelProvider.DeepSeek] },
8383
{
84-
Combine: ({ size = 24, type = 'color', ...props }) => (
84+
Combine: memo(({ size = 24, type = 'color', ...props }) => (
8585
<Combine
8686
left={
8787
type === 'color' ? (
@@ -94,20 +94,20 @@ export const providerMappings: ProviderMapping[] = [
9494
size={size}
9595
{...props}
9696
/>
97-
),
97+
)),
9898
Icon: Google,
9999
combineMultiple: 0.92,
100100
keywords: [ModelProvider.Google],
101101
},
102102
{
103-
Combine: ({ size = 24, type = 'color', ...props }) => (
103+
Combine: memo(({ size = 24, type = 'color', ...props }) => (
104104
<Combine
105105
left={<Azure.Combine size={size * 0.92} type={type} />}
106106
right={<OpenAI.Combine size={size} />}
107107
size={size}
108108
{...props}
109109
/>
110-
),
110+
)),
111111
Icon: Azure,
112112
keywords: [ModelProvider.Azure],
113113
},
@@ -119,14 +119,14 @@ export const providerMappings: ProviderMapping[] = [
119119
{ Icon: Minimax, combineMultiple: 1.3, keywords: [ModelProvider.Minimax] },
120120
{ Icon: Mistral, combineMultiple: 1.08, keywords: [ModelProvider.Mistral] },
121121
{
122-
Combine: ({ size = 24, type = 'color', ...props }) => (
122+
Combine: memo(({ size = 24, type = 'color', ...props }) => (
123123
<Combine
124124
left={<Anthropic.Text size={size * 0.75} />}
125125
right={<Claude.Combine size={size} type={type} />}
126126
size={size}
127127
{...props}
128128
/>
129-
),
129+
)),
130130
Icon: Anthropic,
131131
combineMultiple: 0.83,
132132
keywords: [ModelProvider.Anthropic],
@@ -149,14 +149,14 @@ export const providerMappings: ProviderMapping[] = [
149149
{ Icon: Doubao, keywords: [ModelProvider.Doubao] },
150150
{ Icon: Hunyuan, keywords: [ModelProvider.Hunyuan] },
151151
{
152-
Combine: ({ size = 24, type = 'color', ...props }) => (
152+
Combine: memo(({ size = 24, type = 'color', ...props }) => (
153153
<Combine
154154
left={<BaiduCloud.Combine size={size * 0.9} type={type} />}
155155
right={<Wenxin.Combine extra={'千帆'} size={size} type={type} {...props} />}
156156
size={size}
157157
{...props}
158158
/>
159-
),
159+
)),
160160
Icon: Wenxin,
161161
keywords: [ModelProvider.Wenxin],
162162
},

0 commit comments

Comments
 (0)