diff --git a/README.md b/README.md index 4518adf..7484957 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,9 @@ Contributions, corrections & requests can be made on GitHub. -| Model | Provider | Application | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ✅ [Ai21Labs (Jamba)](https://icons.lobehub.com/components/ai-21)
✅ [Aya (Cohere)](https://icons.lobehub.com/components/aya)
✅ [Baichuan (百川)](https://icons.lobehub.com/components/baichuan)
✅ [ChatGLM (智谱)](https://icons.lobehub.com/components/chat-glm)
✅ [Claude](https://icons.lobehub.com/components/claude)
✅ [CodeGeeX](https://icons.lobehub.com/components/code-gee-x)
✅ [DALL·E (OpenAI)](https://icons.lobehub.com/components/dalle)
✅ [DBRX (Databricks)](https://icons.lobehub.com/components/dbrx)
✅ [DeepSeek](https://icons.lobehub.com/components/deep-seek)
✅ [Doubao (豆包)](https://icons.lobehub.com/components/doubao)
✅ [FishAudio (Bert)](https://icons.lobehub.com/components/fish-audio)
✅ [Flux (black forest labs)](https://icons.lobehub.com/components/flux)
✅ [Gemini (Google)](https://icons.lobehub.com/components/gemini)
✅ [Gemma (Google)](https://icons.lobehub.com/components/gemma)
✅ [Grok (xAI)](https://icons.lobehub.com/components/grok)
✅ [Hunyuan (腾讯混元)](https://icons.lobehub.com/components/hunyuan)
✅ [LLaVA](https://icons.lobehub.com/components/l-la-va)
✅ [Magic](https://icons.lobehub.com/components/magic)
✅ [Minimax](https://icons.lobehub.com/components/minimax)
✅ [Mistral](https://icons.lobehub.com/components/mistral)
✅ [OpenChat](https://icons.lobehub.com/components/open-chat)
✅ [PaLM (Google)](https://icons.lobehub.com/components/pa-lm)
✅ [Qwen (千问)](https://icons.lobehub.com/components/qwen)
✅ [RWKV](https://icons.lobehub.com/components/rwkv)
✅ [Spark (讯飞星火)](https://icons.lobehub.com/components/spark)
✅ [Stepfun (阶跃星辰)](https://icons.lobehub.com/components/stepfun)
✅ [Wenxin (文心)](https://icons.lobehub.com/components/wenxin)
✅ [Yi (零一万物)](https://icons.lobehub.com/components/yi) | ✅ [01.AI (零一万物)](https://icons.lobehub.com/components/zero-one)
✅ [Ai360 (360 智脑)](https://icons.lobehub.com/components/ai-360)
✅ [AiMass (紫东太初)](https://icons.lobehub.com/components/ai-mass)
✅ [Alibaba](https://icons.lobehub.com/components/alibaba)
✅ [AntGroup](https://icons.lobehub.com/components/ant-group)
✅ [Anthropic](https://icons.lobehub.com/components/anthropic)
✅ [AWS](https://icons.lobehub.com/components/aws)
✅ [Baidu](https://icons.lobehub.com/components/baidu)
✅ [BaiduCloud (百度智能云)](https://icons.lobehub.com/components/baidu-cloud)
✅ [Bedrock (AWS)](https://icons.lobehub.com/components/bedrock)
✅ [ByteDance](https://icons.lobehub.com/components/byte-dance)
✅ [Cloudflare](https://icons.lobehub.com/components/cloudflare)
✅ [Cohere (Command)](https://icons.lobehub.com/components/cohere)
✅ [DeepMind (Google)](https://icons.lobehub.com/components/deep-mind)
✅ [Fireworks](https://icons.lobehub.com/components/fireworks)
✅ [Github](https://icons.lobehub.com/components/github)
✅ [Google](https://icons.lobehub.com/components/google)
✅ [Groq](https://icons.lobehub.com/components/groq)
✅ [HuggingFace](https://icons.lobehub.com/components/hugging-face)
✅ [InternLM](https://icons.lobehub.com/components/intern-lm)
✅ [LM Studio](https://icons.lobehub.com/components/lm-studio)
✅ [LobeHub](https://icons.lobehub.com/components/lobe-hub)
✅ [Meta](https://icons.lobehub.com/components/meta)
✅ [Microsoft (Azure)](https://icons.lobehub.com/components/azure)
✅ [Moonshot (月之暗面)](https://icons.lobehub.com/components/moonshot)
✅ [Novita](https://icons.lobehub.com/components/novita)
✅ [Ollama](https://icons.lobehub.com/components/ollama)
✅ [OpenAI (ChatGPT)](https://icons.lobehub.com/components/open-ai)
✅ [OpenRouter](https://icons.lobehub.com/components/open-router)
✅ [Perplexity](https://icons.lobehub.com/components/perplexity)
✅ [Replicate](https://icons.lobehub.com/components/replicate)
✅ [SenseNova](https://icons.lobehub.com/components/sense-nova)
✅ [SiliconCloud (SiliconFlow)](https://icons.lobehub.com/components/silicon-cloud)
✅ [Stability (StableDiffusion)](https://icons.lobehub.com/components/stability)
✅ [Tencent](https://icons.lobehub.com/components/tencent)
✅ [together.ai](https://icons.lobehub.com/components/together)
✅ [Upstage](https://icons.lobehub.com/components/upstage)
✅ [VertexAI (Google)](https://icons.lobehub.com/components/vertex-ai)
✅ [vLLM](https://icons.lobehub.com/components/vllm)
✅ [WorkersAI (Cloudflare)](https://icons.lobehub.com/components/workers-ai)
✅ [xAI](https://icons.lobehub.com/components/xai)
✅ [Zhipu (智谱)](https://icons.lobehub.com/components/zhipu) | ✅ [Adobe](https://icons.lobehub.com/components/adobe)
✅ [Automatic1111 (SD Webui)](https://icons.lobehub.com/components/automatic)
✅ [Firefly (Adobe)](https://icons.lobehub.com/components/adobe-firefly)
✅ [Github Copilot](https://icons.lobehub.com/components/github-copilot)
✅ [Google (Colab)](https://icons.lobehub.com/components/colab)
✅ [Langfuse](https://icons.lobehub.com/components/langfuse)
✅ [Microsoft Copilot](https://icons.lobehub.com/components/copilot)
✅ [Midjourney](https://icons.lobehub.com/components/midjourney)
✅ [Nvidia (ChatWithRTX)](https://icons.lobehub.com/components/nvidia)
✅ [Pollinations](https://icons.lobehub.com/components/pollinations)
✅ [Qingyan (智谱清言)](https://icons.lobehub.com/components/qingyan)
✅ [Suno](https://icons.lobehub.com/components/suno)
✅ [Zeabur](https://icons.lobehub.com/components/zeabur) | +| Model | Provider | Application | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ✅ [Ai21Labs (Jamba)](https://icons.lobehub.com/components/ai-21)
✅ [Aya (Cohere)](https://icons.lobehub.com/components/aya)
✅ [Baichuan (百川)](https://icons.lobehub.com/components/baichuan)
✅ [ChatGLM (智谱)](https://icons.lobehub.com/components/chat-glm)
✅ [Claude](https://icons.lobehub.com/components/claude)
✅ [CodeGeeX](https://icons.lobehub.com/components/code-gee-x)
✅ [DALL·E (OpenAI)](https://icons.lobehub.com/components/dalle)
✅ [DBRX (Databricks)](https://icons.lobehub.com/components/dbrx)
✅ [DeepSeek](https://icons.lobehub.com/components/deep-seek)
✅ [Doubao (豆包)](https://icons.lobehub.com/components/doubao)
✅ [FishAudio (Bert)](https://icons.lobehub.com/components/fish-audio)
✅ [Flux (black forest labs)](https://icons.lobehub.com/components/flux)
✅ [Gemini (Google)](https://icons.lobehub.com/components/gemini)
✅ [Gemma (Google)](https://icons.lobehub.com/components/gemma)
✅ [Grok (xAI)](https://icons.lobehub.com/components/grok)
✅ [Hunyuan (腾讯混元)](https://icons.lobehub.com/components/hunyuan)
✅ [LLaVA](https://icons.lobehub.com/components/l-la-va)
✅ [Magic](https://icons.lobehub.com/components/magic)
✅ [Minimax](https://icons.lobehub.com/components/minimax)
✅ [Mistral](https://icons.lobehub.com/components/mistral)
✅ [OpenChat](https://icons.lobehub.com/components/open-chat)
✅ [PaLM (Google)](https://icons.lobehub.com/components/pa-lm)
✅ [Qwen (千问)](https://icons.lobehub.com/components/qwen)
✅ [RWKV](https://icons.lobehub.com/components/rwkv)
✅ [Spark (讯飞星火)](https://icons.lobehub.com/components/spark)
✅ [Stepfun (阶跃星辰)](https://icons.lobehub.com/components/stepfun)
✅ [Wenxin (文心)](https://icons.lobehub.com/components/wenxin)
✅ [Yi (零一万物)](https://icons.lobehub.com/components/yi) | ✅ [01.AI (零一万物)](https://icons.lobehub.com/components/zero-one)
✅ [Ai360 (360 智脑)](https://icons.lobehub.com/components/ai-360)
✅ [AiMass (紫东太初)](https://icons.lobehub.com/components/ai-mass)
✅ [Alibaba](https://icons.lobehub.com/components/alibaba)
✅ [AntGroup](https://icons.lobehub.com/components/ant-group)
✅ [Anthropic](https://icons.lobehub.com/components/anthropic)
✅ [AWS](https://icons.lobehub.com/components/aws)
✅ [Baidu](https://icons.lobehub.com/components/baidu)
✅ [BaiduCloud (百度智能云)](https://icons.lobehub.com/components/baidu-cloud)
✅ [Bedrock (AWS)](https://icons.lobehub.com/components/bedrock)
✅ [ByteDance](https://icons.lobehub.com/components/byte-dance)
✅ [Cloudflare](https://icons.lobehub.com/components/cloudflare)
✅ [Cohere (Command)](https://icons.lobehub.com/components/cohere)
✅ [DeepMind (Google)](https://icons.lobehub.com/components/deep-mind)
✅ [Fireworks](https://icons.lobehub.com/components/fireworks)
✅ [Github](https://icons.lobehub.com/components/github)
✅ [Google](https://icons.lobehub.com/components/google)
✅ [Groq](https://icons.lobehub.com/components/groq)
✅ [Higress](https://icons.lobehub.com/components/higress)
✅ [HuggingFace](https://icons.lobehub.com/components/hugging-face)
✅ [InternLM](https://icons.lobehub.com/components/intern-lm)
✅ [LM Studio](https://icons.lobehub.com/components/lm-studio)
✅ [LobeHub](https://icons.lobehub.com/components/lobe-hub)
✅ [Meta](https://icons.lobehub.com/components/meta)
✅ [Microsoft (Azure)](https://icons.lobehub.com/components/azure)
✅ [Moonshot (月之暗面)](https://icons.lobehub.com/components/moonshot)
✅ [Novita](https://icons.lobehub.com/components/novita)
✅ [Ollama](https://icons.lobehub.com/components/ollama)
✅ [OpenAI (ChatGPT)](https://icons.lobehub.com/components/open-ai)
✅ [OpenRouter](https://icons.lobehub.com/components/open-router)
✅ [Perplexity](https://icons.lobehub.com/components/perplexity)
✅ [Replicate](https://icons.lobehub.com/components/replicate)
✅ [SenseNova](https://icons.lobehub.com/components/sense-nova)
✅ [SiliconCloud (SiliconFlow)](https://icons.lobehub.com/components/silicon-cloud)
✅ [Stability (StableDiffusion)](https://icons.lobehub.com/components/stability)
✅ [Tencent](https://icons.lobehub.com/components/tencent)
✅ [together.ai](https://icons.lobehub.com/components/together)
✅ [Upstage](https://icons.lobehub.com/components/upstage)
✅ [VertexAI (Google)](https://icons.lobehub.com/components/vertex-ai)
✅ [vLLM](https://icons.lobehub.com/components/vllm)
✅ [WorkersAI (Cloudflare)](https://icons.lobehub.com/components/workers-ai)
✅ [xAI](https://icons.lobehub.com/components/xai)
✅ [Zhipu (智谱)](https://icons.lobehub.com/components/zhipu) | ✅ [Adobe](https://icons.lobehub.com/components/adobe)
✅ [Automatic1111 (SD Webui)](https://icons.lobehub.com/components/automatic)
✅ [Firefly (Adobe)](https://icons.lobehub.com/components/adobe-firefly)
✅ [Github Copilot](https://icons.lobehub.com/components/github-copilot)
✅ [Google (Colab)](https://icons.lobehub.com/components/colab)
✅ [Langfuse](https://icons.lobehub.com/components/langfuse)
✅ [Microsoft Copilot](https://icons.lobehub.com/components/copilot)
✅ [Midjourney](https://icons.lobehub.com/components/midjourney)
✅ [Nvidia (ChatWithRTX)](https://icons.lobehub.com/components/nvidia)
✅ [Pollinations](https://icons.lobehub.com/components/pollinations)
✅ [Qingyan (智谱清言)](https://icons.lobehub.com/components/qingyan)
✅ [Suno](https://icons.lobehub.com/components/suno)
✅ [Zeabur](https://icons.lobehub.com/components/zeabur) | diff --git a/package.json b/package.json index 9ab5275..616bb1d 100644 --- a/package.json +++ b/package.json @@ -71,15 +71,15 @@ ] }, "devDependencies": { - "@babel/runtime": "^7.25.4", + "@babel/runtime": "^7.26.0", "@commitlint/cli": "^18.6.1", "@lobehub/lint": "^1.24.4", "@testing-library/react": "^14.3.1", "@types/lodash-es": "^4.17.12", "@types/pangu": "^4.0.2", "@types/query-string": "^6.3.0", - "@types/react": "^18.3.4", - "@types/react-dom": "^18.3.0", + "@types/react": "^18.3.12", + "@types/react-dom": "^18.3.1", "@vitest/coverage-v8": "~1.2.2", "babel-plugin-antd-style": "^1.0.4", "commitlint": "^18.6.1", @@ -87,15 +87,15 @@ "cross-env": "^7.0.3", "dumi": "2.2.17", "dumi-theme-lobehub": "^1.8.1", - "eslint": "^8.57.0", - "father": "^4.5.0", + "eslint": "^8.57.1", + "father": "^4.5.1", "glob": "^11.0.0", "gray-matter": "^4.0.3", "husky": "^8.0.3", "jsdom": "^23.2.0", - "lint-staged": "^15.2.9", + "lint-staged": "^15.2.10", "lodash-es": "^4.17.21", - "markdown-table": "^3.0.3", + "markdown-table": "^3.0.4", "prettier": "^3.3.3", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -104,8 +104,8 @@ "semantic-release": "^21.1.2", "stylelint": "^15.11.0", "svgo-browser": "^1.3.8", - "tsx": "^4.18.0", - "typescript": "^5.5.4", + "tsx": "^4.19.2", + "typescript": "^5.6.3", "vitest": "~1.2.2" }, "peerDependencies": { diff --git a/src/Ai360/index.md b/src/Ai360/index.md index 50e0133..f937b9e 100644 --- a/src/Ai360/index.md +++ b/src/Ai360/index.md @@ -68,6 +68,7 @@ import ColorPreview from '../components/ColorPreview'; export default () => ( + ); ``` diff --git a/src/Higress/components/Avatar.tsx b/src/Higress/components/Avatar.tsx new file mode 100644 index 0000000..0840ff9 --- /dev/null +++ b/src/Higress/components/Avatar.tsx @@ -0,0 +1,23 @@ +import { memo } from 'react'; + +import IconAvatar, { type IconAvatarProps } from '@/features/IconAvatar'; + +import { COLOR_GRADIENT, TITLE } from '../style'; +import Mono from './Mono'; + +export type AvatarProps = Omit; + +const Avatar = memo(({ background, ...rest }) => { + return ( + + ); +}); + +export default Avatar; diff --git a/src/Higress/components/Color.tsx b/src/Higress/components/Color.tsx new file mode 100644 index 0000000..f90f27f --- /dev/null +++ b/src/Higress/components/Color.tsx @@ -0,0 +1,69 @@ +import { forwardRef } from 'react'; + +import { useFillIds } from '@/hooks/useFillId'; +import type { IconType } from '@/types'; + +import { TITLE } from '../style'; + +const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => { + const [a, b] = useFillIds(TITLE, 2); + return ( + + {TITLE} + + + + + + + + + + + + + + + + + ); +}); + +export default Icon; diff --git a/src/Higress/components/Combine.tsx b/src/Higress/components/Combine.tsx new file mode 100644 index 0000000..d7e6dc2 --- /dev/null +++ b/src/Higress/components/Combine.tsx @@ -0,0 +1,15 @@ +import { memo } from 'react'; + +import { type IconCombineProps } from '@/features/IconCombine'; + +import Mono from './Text'; +import Color from './TextColor'; + +export interface CombineProps extends Omit { + type?: 'color' | 'mono'; +} +const Combine = memo(({ type = 'mono', ...rest }) => { + return type === 'color' ? : ; +}); + +export default Combine; diff --git a/src/Higress/components/Mono.tsx b/src/Higress/components/Mono.tsx new file mode 100644 index 0000000..d5a8d8e --- /dev/null +++ b/src/Higress/components/Mono.tsx @@ -0,0 +1,30 @@ +import { forwardRef } from 'react'; + +import type { IconType } from '@/types'; + +import { TITLE } from '../style'; + +const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => { + return ( + + {TITLE} + + + + + + + ); +}); + +export default Icon; diff --git a/src/Higress/components/Text.tsx b/src/Higress/components/Text.tsx new file mode 100644 index 0000000..e641107 --- /dev/null +++ b/src/Higress/components/Text.tsx @@ -0,0 +1,31 @@ +import { forwardRef } from 'react'; + +import type { IconType } from '@/types'; + +import { TITLE } from '../style'; + +const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => { + return ( + + {TITLE} + + + + + + + + + ); +}); + +export default Icon; diff --git a/src/Higress/components/TextColor.tsx b/src/Higress/components/TextColor.tsx new file mode 100644 index 0000000..c032c50 --- /dev/null +++ b/src/Higress/components/TextColor.tsx @@ -0,0 +1,72 @@ +import { forwardRef } from 'react'; + +import { useFillIds } from '@/hooks/useFillId'; +import type { IconType } from '@/types'; + +import { TITLE } from '../style'; + +const Icon: IconType = forwardRef(({ size = '1em', style, ...rest }, ref) => { + const [a, b] = useFillIds(TITLE, 2); + return ( + + {TITLE} + + + + + + + + + + + + + + + + + + + ); +}); + +export default Icon; diff --git a/src/Higress/index.md b/src/Higress/index.md new file mode 100644 index 0000000..a2f9857 --- /dev/null +++ b/src/Higress/index.md @@ -0,0 +1,74 @@ +--- +nav: Components +group: Provider +title: Higress +atomId: Higress +description: https://higress.cn/ +--- + +## Icons + +```tsx +import { Higress } from '@lobehub/icons'; +import { Flexbox } from 'react-layout-kit'; + +export default () => ( + + + + +); +``` + +## Text + +```tsx +import { Higress } from '@lobehub/icons'; + +export default () => ; +``` + +## Combine + +```tsx +import { Higress } from '@lobehub/icons'; +import { Flexbox } from 'react-layout-kit'; + +export default () => ( + + + + +); +``` + +## Avatars + +```tsx +import { Higress } from '@lobehub/icons'; +import { Flexbox } from 'react-layout-kit'; + +export default () => ( + + + + + +); +``` + +## Colors + +```tsx +import { Higress } from '@lobehub/icons'; +import { Flexbox } from 'react-layout-kit'; + +import ColorPreview from '../components/ColorPreview'; + +export default () => ( + + + + +); +``` diff --git a/src/Higress/index.ts b/src/Higress/index.ts new file mode 100644 index 0000000..096b692 --- /dev/null +++ b/src/Higress/index.ts @@ -0,0 +1,27 @@ +import Avatar from './components/Avatar'; +import Color from './components/Color'; +import Combine from './components/Combine'; +import Mono from './components/Mono'; +import Text from './components/Text'; +import { COLOR_GRADIENT, COLOR_PRIMARY, TITLE } from './style'; + +export type CompoundedIcon = typeof Mono & { + Avatar: typeof Avatar; + Color: typeof Color; + Combine: typeof Combine; + Text: typeof Text; + colorGradient: string; + colorPrimary: string; + title: string; +}; + +const Icons = Mono as CompoundedIcon; +Icons.Color = Color; +Icons.Text = Text; +Icons.Combine = Combine; +Icons.Avatar = Avatar; +Icons.colorPrimary = COLOR_PRIMARY; +Icons.colorGradient = COLOR_GRADIENT; +Icons.title = TITLE; + +export default Icons; diff --git a/src/Higress/style.ts b/src/Higress/style.ts new file mode 100644 index 0000000..a48729a --- /dev/null +++ b/src/Higress/style.ts @@ -0,0 +1,5 @@ +export const TITLE = 'Higress'; +export const TEXT_MULTIPLE = 0.7; +export const SPACE_MULTIPLE = 0.2; +export const COLOR_PRIMARY = '#3E5CF4'; +export const COLOR_GRADIENT = 'linear-gradient(to bottom, #0418FF, #1E8CFE)'; diff --git a/src/features/providerConfig.tsx b/src/features/providerConfig.tsx index 5737323..6a6ee59 100644 --- a/src/features/providerConfig.tsx +++ b/src/features/providerConfig.tsx @@ -19,6 +19,7 @@ import Gemini from '@/Gemini'; import Github from '@/Github'; import Google from '@/Google'; import Groq from '@/Groq'; +import Higress from '@/Higress'; import HuggingFace from '@/HuggingFace'; import Hunyuan from '@/Hunyuan'; import InternLM from '@/InternLM'; @@ -172,8 +173,8 @@ export const providerMappings: ProviderMapping[] = [ { Combine: memo(({ size = 24, type = 'color', ...props }) => ( } - right={} + left={} + right={} size={size} {...props} /> @@ -183,4 +184,5 @@ export const providerMappings: ProviderMapping[] = [ keywords: [ModelProvider.Cloudflare], }, { Icon: InternLM, combineMultiple: 0.95, keywords: [ModelProvider.InternLM] }, + { Icon: Higress, keywords: [ModelProvider.Higress] }, ]; diff --git a/src/features/providerEnum.ts b/src/features/providerEnum.ts index e601715..96979e9 100644 --- a/src/features/providerEnum.ts +++ b/src/features/providerEnum.ts @@ -12,6 +12,7 @@ export enum ModelProvider { Github = 'github', Google = 'google', Groq = 'groq', + Higress = 'higress', HuggingFace = 'huggingface', Hunyuan = 'hunyuan', InternLM = 'internlm', diff --git a/src/index.ts b/src/index.ts index 2f3442c..dc6f211 100644 --- a/src/index.ts +++ b/src/index.ts @@ -50,6 +50,7 @@ export { export { default as Google, type CompoundedIcon as GoogleProps } from './Google'; export { default as Grok, type CompoundedIcon as GrokProps } from './Grok'; export { default as Groq, type CompoundedIcon as GroqProps } from './Groq'; +export { default as Higress, type CompoundedIcon as HigressProps } from './Higress'; export { default as HuggingFace, type CompoundedIcon as HuggingFaceProps } from './HuggingFace'; export { default as Hunyuan, type CompoundedIcon as HunyuanProps } from './Hunyuan'; export { default as InternLM, type CompoundedIcon as InternLMProps } from './InternLM';