Skip to content

Commit fe91b49

Browse files
✨ feat: Add 01.AI
1 parent c78c266 commit fe91b49

File tree

18 files changed

+281
-76
lines changed

18 files changed

+281
-76
lines changed

.dumirc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const themeConfig = {
1313
text: 'Github',
1414
},
1515
{
16-
link: '/components/anthropic',
16+
link: '/components/zero-one',
1717
text: 'View all icons',
1818
type: 'primary',
1919
},
@@ -28,7 +28,7 @@ const themeConfig = {
2828
footer: 'Made with 🤯 by LobeHub',
2929
name: 'Icons',
3030
nav: [
31-
{ link: '/components/anthropic', title: 'Icons' },
31+
{ link: '/components/zero-one', title: 'Icons' },
3232
{ link: '/changelog', title: 'Changelog' },
3333
],
3434
socialLinks: {

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4+
npm run sync:md
5+
git add .
46
npm run type-check
57
npx --no-install lint-staged

.i18nrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module.exports = {
22
markdown: {
33
entry: ['./README.md'],
44
entryLocale: 'en-US',
5-
outputLocales: ['zh-CN']
5+
outputLocales: ['zh-CN'],
66
},
77
};

README.md

Lines changed: 43 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -57,54 +57,55 @@ Contributions, corrections & requests can be made on GitHub.
5757

5858
**Supported brands:**
5959

60-
<!-- ICON LIST -->
60+
<!-- ICON LIST -->
6161

62-
- [x] [Zhipu (智谱)](https://icons.lobehub.com/components/zhipu)
63-
- [x] [Yi (零一万物)](https://icons.lobehub.com/components/yi)
62+
- [x] [01.AI (零一万物)](https://icons.lobehub.com/components/zero-one)
63+
- [x] [Anthropic](https://icons.lobehub.com/components/anthropic)
64+
- [x] [Anthropic (Claude)](https://icons.lobehub.com/components/claude)
65+
- [x] [Automatic1111 (SD Webui)](https://icons.lobehub.com/components/automatic)
66+
- [x] [AWS](https://icons.lobehub.com/components/aws)
67+
- [x] [AWS (Bedrock)](https://icons.lobehub.com/components/bedrock)
68+
- [x] [Baichuan (百川)](https://icons.lobehub.com/components/baichuan)
69+
- [x] [Cloudflare](https://icons.lobehub.com/components/cloudflare)
6470
- [x] [Cloudflare (WorkersAI)](https://icons.lobehub.com/components/workers-ai)
65-
- [x] [Wenxin (文心)](https://icons.lobehub.com/components/wenxin)
66-
- [x] [Tongyi (通义)](https://icons.lobehub.com/components/tongyi)
67-
- [x] [Stability (StableDiffusion)](https://icons.lobehub.com/components/stability)
68-
- [x] [Spark (讯飞星火)](https://icons.lobehub.com/components/spark)
69-
- [x] [Replicate](https://icons.lobehub.com/components/replicate)
70-
- [x] [Zhipu (智谱清言)](https://icons.lobehub.com/components/qingyan)
71-
- [x] [Pollinations](https://icons.lobehub.com/components/pollinations)
72-
- [x] [Perplexity](https://icons.lobehub.com/components/perplexity)
73-
- [x] [OpenRouter](https://icons.lobehub.com/components/open-router)
74-
- [x] [OpenAI (ChatGPT)](https://icons.lobehub.com/components/open-ai)
75-
- [x] [Ollama](https://icons.lobehub.com/components/ollama)
76-
- [x] [Nvidia (ChatWithRTX)](https://icons.lobehub.com/components/nvidia)
77-
- [x] [Moonshot (月之暗面)](https://icons.lobehub.com/components/moonshot)
78-
- [x] [Mistral](https://icons.lobehub.com/components/mistral)
79-
- [x] [Minimax](https://icons.lobehub.com/components/minimax)
80-
- [x] [Midjourney](https://icons.lobehub.com/components/midjourney)
81-
- [x] [Meta (Llama)](https://icons.lobehub.com/components/meta)
82-
- [x] [LLaVA](https://icons.lobehub.com/components/l-la-va)
83-
- [x] [Hunyuan (腾讯混元)](https://icons.lobehub.com/components/hunyuan)
84-
- [x] [HuggingFace](https://icons.lobehub.com/components/hugging-face)
85-
- [x] [Groq](https://icons.lobehub.com/components/groq)
86-
- [x] [Grok](https://icons.lobehub.com/components/grok)
87-
- [x] [Google](https://icons.lobehub.com/components/google)
88-
- [x] [Github (Copilot)](https://icons.lobehub.com/components/github-copilot)
89-
- [x] [Github](https://icons.lobehub.com/components/github)
90-
- [x] [Google (Gemma)](https://icons.lobehub.com/components/gemma)
91-
- [x] [Google (Gemini)](https://icons.lobehub.com/components/gemini)
71+
- [x] [Cohere (Command)](https://icons.lobehub.com/components/cohere)
9272
- [x] [Fireworks](https://icons.lobehub.com/components/fireworks)
73+
- [x] [Github](https://icons.lobehub.com/components/github)
74+
- [x] [Github (Copilot)](https://icons.lobehub.com/components/github-copilot)
75+
- [x] [Google](https://icons.lobehub.com/components/google)
76+
- [x] [Google (Colab)](https://icons.lobehub.com/components/colab)
9377
- [x] [Google (DeepMind)](https://icons.lobehub.com/components/deep-mind)
94-
- [x] [OpenAI (DALL·E)](https://icons.lobehub.com/components/dalle)
78+
- [x] [Google (Gemini)](https://icons.lobehub.com/components/gemini)
79+
- [x] [Google (Gemma)](https://icons.lobehub.com/components/gemma)
80+
- [x] [Grok](https://icons.lobehub.com/components/grok)
81+
- [x] [Groq](https://icons.lobehub.com/components/groq)
82+
- [x] [HuggingFace](https://icons.lobehub.com/components/hugging-face)
83+
- [x] [Hunyuan (腾讯混元)](https://icons.lobehub.com/components/hunyuan)
84+
- [x] [LLaVA](https://icons.lobehub.com/components/l-la-va)
85+
- [x] [Meta (Llama)](https://icons.lobehub.com/components/meta)
86+
- [x] [Microsoft (Azure)](https://icons.lobehub.com/components/azure)
87+
- [x] [Microsoft (Bing)](https://icons.lobehub.com/components/bing)
9588
- [x] [Microsoft (Copilot)](https://icons.lobehub.com/components/copilot)
96-
- [x] [Google (Colab)](https://icons.lobehub.com/components/colab)
97-
- [x] [Cohere (Command)](https://icons.lobehub.com/components/cohere)
98-
- [x] [Cloudflare](https://icons.lobehub.com/components/cloudflare)
99-
- [x] [Anthropic (Claude)](https://icons.lobehub.com/components/claude)
89+
- [x] [Midjourney](https://icons.lobehub.com/components/midjourney)
90+
- [x] [Minimax](https://icons.lobehub.com/components/minimax)
91+
- [x] [Mistral](https://icons.lobehub.com/components/mistral)
92+
- [x] [Moonshot (月之暗面)](https://icons.lobehub.com/components/moonshot)
93+
- [x] [Nvidia (ChatWithRTX)](https://icons.lobehub.com/components/nvidia)
94+
- [x] [Ollama](https://icons.lobehub.com/components/ollama)
95+
- [x] [OpenAI (ChatGPT)](https://icons.lobehub.com/components/open-ai)
96+
- [x] [OpenAI (DALL·E)](https://icons.lobehub.com/components/dalle)
97+
- [x] [OpenRouter](https://icons.lobehub.com/components/open-router)
98+
- [x] [Perplexity](https://icons.lobehub.com/components/perplexity)
99+
- [x] [Pollinations](https://icons.lobehub.com/components/pollinations)
100+
- [x] [Replicate](https://icons.lobehub.com/components/replicate)
101+
- [x] [Spark (讯飞星火)](https://icons.lobehub.com/components/spark)
102+
- [x] [Stability (StableDiffusion)](https://icons.lobehub.com/components/stability)
103+
- [x] [Tongyi (通义)](https://icons.lobehub.com/components/tongyi)
104+
- [x] [Wenxin (文心)](https://icons.lobehub.com/components/wenxin)
105+
- [x] [Yi (零一万物)](https://icons.lobehub.com/components/yi)
100106
- [x] [Zhipu (ChatGLM)](https://icons.lobehub.com/components/chat-glm)
101-
- [x] [Microsoft (Bing)](https://icons.lobehub.com/components/bing)
102-
- [x] [AWS (Bedrock)](https://icons.lobehub.com/components/bedrock)
103-
- [x] [Baichuan (百川)](https://icons.lobehub.com/components/baichuan)
104-
- [x] [Microsoft (Azure)](https://icons.lobehub.com/components/azure)
105-
- [x] [AWS](https://icons.lobehub.com/components/aws)
106-
- [x] [Automatic1111 (SD Webui)](https://icons.lobehub.com/components/automatic)
107-
- [x] [Anthropic](https://icons.lobehub.com/components/anthropic)
107+
- [x] [Zhipu (智谱)](https://icons.lobehub.com/components/zhipu)
108+
- [x] [Zhipu (智谱清言)](https://icons.lobehub.com/components/qingyan)
108109

109110
<!-- ICON LIST -->
110111

scripts/genMdList.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ const run = () => {
2727
})
2828
.filter(Boolean);
2929

30-
const contents = metas.map((meta) => `- [x] [${meta.title}](${BASE_URL}${kebabCase(meta.path)})`);
30+
const contents = metas
31+
.sort((a, b) => a.title.localeCompare(b.title))
32+
.map((meta) => `- [x] [${meta.title}](${BASE_URL}${kebabCase(meta.path)})`);
3133

3234
const readmePath = resolve(ROOT_PATH, 'README.md');
3335

src/Yi/components/Avatar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const Avatar = memo<AvatarProps>(({ background, ...rest }) => {
1414
aria-label={TITLE}
1515
background={background || COLOR_PRIMARY}
1616
color={'#fff'}
17-
iconMultiple={0.6}
1817
{...rest}
1918
/>
2019
);

src/Yi/components/Text.tsx

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1 @@
1-
import { forwardRef } from 'react';
2-
3-
import type { IconType } from '@/types';
4-
5-
import { TITLE } from '../style';
6-
7-
const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => {
8-
return (
9-
<svg
10-
fill="currentColor"
11-
fillRule="evenodd"
12-
height={size}
13-
ref={ref}
14-
style={{ flex: 'none', lineHeight: 1, width: 'fit-content', ...style }}
15-
viewBox="0 0 89 24"
16-
xmlns="http://www.w3.org/2000/svg"
17-
{...rest}
18-
>
19-
<title>{TITLE}</title>
20-
<path d="M72.852 2.024v4.958h2.449v1.359h-2.384v3.834l1.578-.687.79-.344.708 1.424c-.888.536-1.725 1.067-2.591 1.551-.403.227-.547.499-.541.963.025 2.041.01 4.08.01 6.122V22h-2.345v-6.022l-2.265 1.627-1.432-1.943c1.097-.645 2.124-1.272 3.177-1.856.379-.21.54-.447.533-.89-.026-1.489-.01-2.978-.01-4.448l-.245-.05c-.93-.183-.947-.108-1.15.827-.184.85-.379 1.7-.582 2.605l-1.427-.246-.142-.024.767-7.998h2.136l-.374 3.356h.997V2.024h2.343zm3.682.022h2.113l-.267 2.776h8.618v.288c.002.202.003.378 0 .553-.074 3.867-.137 7.733-.236 11.6a6.761 6.761 0 01-.32 1.947c-.54 1.608-1.696 2.405-3.385 2.404-.639 0-1.276-.09-1.914-.113l-.213-.005c-.46-.004-.671-.18-.728-.615l-.004-.036c-.043-.393-.144-.78-.237-1.26.472.045.884.07 1.287.124l.11.015c1.664.244 2.767-.571 2.823-2.246.118-3.555.17-7.113.22-10.671.003-.19-.259-.383-.397-.575-.145.188-.4.366-.419.565l-.027.29c-.365 3.71-1.16 7.29-3.127 10.528-.817 1.346-1.797 2.553-3.168 3.498l-.696-.73-.081-.085c.017-.085.01-.147.037-.174 2.953-2.897 4.195-6.579 4.82-10.538.128-.81.21-1.629.302-2.445l.038-.334.016-.125c.027-.227.02-.437-.36-.459-.408-.023-.442.21-.482.528-.386 3.076-1.082 6.064-2.584 8.811-.894 1.637-1.981 3.118-3.625 4.269l-.803-.9c3.522-3.461 4.63-7.902 5.183-12.61l-.092-.026c-.524-.141-.844-.11-.94.526l-.006.037c-.1.744-.336 1.467-.533 2.28l-1.552-.284.536-5.799.093-1.01zM46.061 3.948V2.725h18.464v1.222c-.267.013-.539.036-.812.036-2.782.002-5.564.013-8.347-.003l-1.193-.009c-.603-.005-.833.145-.806.756l.001.038c.055.917.015 1.84.015 2.842h9.928c.02.277.051.48.046.683l-.064 2.94c-.044 1.962-.09 3.922-.144 5.882a7.615 7.615 0 01-.208 1.616c-.43 1.727-1.566 2.672-3.336 2.76-.922.045-1.85-.03-2.772-.016-.543.007-.809-.21-.866-.74l-.003-.038c-.033-.373-.148-.74-.245-1.2.772.048 1.495.112 2.22.135l.11.002c1.632.023 2.425-.62 2.516-2.26.144-2.604.162-5.214.208-7.824.003-.16-.222-.463-.345-.464-2.414-.027-4.83-.02-7.28-.02-.764 4.935-2.051 9.559-6.147 12.887l-1.353-1.366c3.733-3.777 4.849-8.533 5.206-13.573.05-.689.064-1.38.098-2.07l.02-.346c.027-.457-.167-.614-.597-.615h-.033c-1.163.02-2.325.008-3.489.004-.253 0-.507-.021-.792-.036zM21.163 2v1.275h-7.488v.819h8.46c.168 1.7-.034 3.257-.541 4.777-.047.14-.3.313-.443.302-.442-.033-.878-.15-1.287-.227V5.518h-6.21v3.538h-2.358c0-.85-.03-1.702.002-2.553l.011-.256c.032-.606-.136-.818-.75-.807l-.036.001a81.202 81.202 0 01-4.486.003c-.514-.011-.708.171-.867.635l-.012.036c-.299.912-.693 1.794-1.071 2.72l-.081.198-1.654-.646L3.358 4.11h7.784l.023-.071c.214-.678.16-.753-.507-.758h-.034c-1.01-.003-2.018-.004-3.027-.004l-3.845.001V2h17.411zM5.788 8.281h4.568l.04.803H5.832l-.044-.803zM19 8.258v.81h-4.567v-.81H19zm-.005-1.687v.863h-4.574V6.57h4.574zm-8.643.011v.837H5.825v-.837h4.527zm2.887 6.05l.023.061c.04.103.067.156.075.213.125.907.657 1.36 1.597 1.36h2.614c.171.896.12 1.655-.476 2.276-1.044 1.093-2.104 2.168-3.216 3.313l.885.928.058.062-.943.894-4.785-3.114-1.213-.791v-.001l1.012-1.616c.889.62 1.764 1.197 2.604 1.817l.251.187c.404.307.685.378 1.046-.01l.025-.028c.705-.79 1.447-1.545 2.175-2.316l-.1-.207H7.016v-1.385h4.631l-.514-1.356-.039-.101 1.957-.17.187-.016zm3.196-1.497l.083.05c1.933 1.194 4.168 1.497 6.446 1.207l.04.201c.198 1.017.07 1.145-1.027 1.264-2.996.327-5.78-.343-8.322-1.916l-.098-.06c-.738-.465-1.307-.456-2.026-.017l-.045.028c-2.495 1.563-5.225 2.252-8.164 1.993l-.241-.023c-1.1-.11-1.155-.212-1.038-1.385l.009-.087.105.013c2.912.323 5.496-.472 7.897-2.021.278-.18.648-.225.983-.298.18-.04.379.007.568-.008 1.724-.143 3.285.13 4.83 1.059zm27.371 1.017H25.374V10.88h18.432v1.273z"></path>
21-
</svg>
22-
);
23-
});
24-
25-
export default Icon;
1+
export { default } from '@/ZeroOne/components/Text';

src/Yi/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ nav: Components
33
group: Model
44
title: Yi (零一万物)
55
atomId: Yi
6-
description: https://www.lingyiwanwu.com/
6+
description: https://github.com/01-ai/Yi
77
---
88

99
## Icons

src/ZeroOne/components/Avatar.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { memo } from 'react';
2+
3+
import IconAvatar, { type IconAvatarProps } from '@/IconAvatar';
4+
5+
import { COLOR_PRIMARY, TITLE } from '../style';
6+
import Mono from './Mono';
7+
8+
export type AvatarProps = Omit<IconAvatarProps, 'Icon'>;
9+
10+
const Avatar = memo<AvatarProps>(({ background, ...rest }) => {
11+
return (
12+
<IconAvatar
13+
Icon={Mono}
14+
aria-label={TITLE}
15+
background={background || COLOR_PRIMARY}
16+
color={'#fff'}
17+
{...rest}
18+
/>
19+
);
20+
});
21+
22+
export default Avatar;

src/ZeroOne/components/Color.tsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { forwardRef } from 'react';
2+
3+
import type { IconType } from '@/types';
4+
5+
import { TITLE } from '../style';
6+
7+
const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => {
8+
return (
9+
<svg
10+
fill="currentColor"
11+
fillRule="evenodd"
12+
height={size}
13+
ref={ref}
14+
style={{ flex: 'none', lineHeight: 1, ...style }}
15+
viewBox="0 0 24 24"
16+
width={size}
17+
xmlns="http://www.w3.org/2000/svg"
18+
{...rest}
19+
>
20+
<title>{TITLE}</title>
21+
<g>
22+
<path d="M18.62 13.927c.611 0 1.107.505 1.107 1.128v5.817c0 .623-.496 1.128-1.108 1.128a1.118 1.118 0 01-1.108-1.128v-5.817c0-.623.496-1.128 1.108-1.128zM16.59 3.052a1.094 1.094 0 011.562-.129c.466.404.522 1.116.126 1.59l-5.938 7.111v9.147c0 .624-.496 1.129-1.108 1.129a1.118 1.118 0 01-1.108-1.129v-9.477l.003-.088.01-.087c.015-.232.102-.462.261-.654l6.192-7.413zM2.906 2.256a1.094 1.094 0 011.559.157l4.387 5.45a1.142 1.142 0 01-.155 1.587 1.094 1.094 0 01-1.559-.157l-4.387-5.45a1.144 1.144 0 01.06-1.498l.095-.09z"></path>
23+
<ellipse cx="20.146" cy="10.692" fill="#00FF25" rx="1.354" ry="1.379"></ellipse>
24+
</g>
25+
</svg>
26+
);
27+
});
28+
29+
export default Icon;

0 commit comments

Comments
 (0)