From 1eacfc49717b2e5d7979128080dd9e234406c8e0 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Thu, 29 Feb 2024 16:08:30 -0300 Subject: [PATCH] add azure icon --- src/frontend/src/icons/Azure/Azure.jsx | 61 +++++++++++++++++ src/frontend/src/icons/Azure/index.tsx | 8 +++ .../AzureOpenAiEmbeddings/AzureChatOpenAi.jsx | 67 ------------------- .../AzureOpenAiEmbeddings/AzureChatOpenAi.svg | 1 - .../src/icons/AzureOpenAiEmbeddings/index.tsx | 9 --- src/frontend/src/utils/styleUtils.ts | 9 +-- 6 files changed, 74 insertions(+), 81 deletions(-) create mode 100644 src/frontend/src/icons/Azure/Azure.jsx create mode 100644 src/frontend/src/icons/Azure/index.tsx delete mode 100644 src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.jsx delete mode 100644 src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.svg delete mode 100644 src/frontend/src/icons/AzureOpenAiEmbeddings/index.tsx diff --git a/src/frontend/src/icons/Azure/Azure.jsx b/src/frontend/src/icons/Azure/Azure.jsx new file mode 100644 index 000000000..644fdd9f8 --- /dev/null +++ b/src/frontend/src/icons/Azure/Azure.jsx @@ -0,0 +1,61 @@ +export const SvgAzure = (props) => ( + + + + + + + + + + + + + + + + + + + + + + +); +export default SvgAzure; diff --git a/src/frontend/src/icons/Azure/index.tsx b/src/frontend/src/icons/Azure/index.tsx new file mode 100644 index 000000000..346868ab4 --- /dev/null +++ b/src/frontend/src/icons/Azure/index.tsx @@ -0,0 +1,8 @@ +import React, { forwardRef } from "react"; +import SvgAzure from "./Azure"; + +export const AzureIcon = forwardRef>( + (props, ref) => { + return ; + } +); diff --git a/src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.jsx b/src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.jsx deleted file mode 100644 index 0030169f8..000000000 --- a/src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.jsx +++ /dev/null @@ -1,67 +0,0 @@ -export const SvgAzureChatOpenAi = (props) => ( - - - - - - - - - - - - - - - - - - - - - - - - - -); -export default SvgAzureChatOpenAi; diff --git a/src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.svg b/src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.svg deleted file mode 100644 index cb695fac2..000000000 --- a/src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/frontend/src/icons/AzureOpenAiEmbeddings/index.tsx b/src/frontend/src/icons/AzureOpenAiEmbeddings/index.tsx deleted file mode 100644 index 2444d32b0..000000000 --- a/src/frontend/src/icons/AzureOpenAiEmbeddings/index.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React, { forwardRef } from "react"; -import SvgAzureChatOpenAi from "./AzureChatOpenAi"; - -export const AzureOpenAiEmbeddingsIcon = forwardRef< - SVGSVGElement, - React.PropsWithChildren<{}> ->((props, ref) => { - return ; -}); diff --git a/src/frontend/src/utils/styleUtils.ts b/src/frontend/src/utils/styleUtils.ts index 2826e23c2..08b4a12c4 100644 --- a/src/frontend/src/utils/styleUtils.ts +++ b/src/frontend/src/utils/styleUtils.ts @@ -128,7 +128,7 @@ import { FaApple, FaGithub, FaRobot } from "react-icons/fa"; import { AWSIcon } from "../icons/AWS"; import { AirbyteIcon } from "../icons/Airbyte"; import { AnthropicIcon } from "../icons/Anthropic"; -import { AzureOpenAiEmbeddingsIcon } from "../icons/AzureOpenAiEmbeddings"; +import { AzureIcon } from "../icons/Azure"; import { BingIcon } from "../icons/Bing"; import { ChromaIcon } from "../icons/ChromaIcon"; import { CohereIcon } from "../icons/Cohere"; @@ -256,15 +256,16 @@ export const nodeNames: { [char: string]: string } = { }; export const nodeIconsLucide: iconsType = { - AzureChatOpenAi: AzureOpenAiEmbeddingsIcon, + AzureChatOpenAi: AzureIcon, Ollama: OllamaIcon, ChatOllama: OllamaIcon, - AzureOpenAiEmbeddings: AzureOpenAiEmbeddingsIcon, + AzureOpenAiEmbeddings: AzureIcon, + Azure: AzureIcon, OllamaEmbeddings: OllamaIcon, ChatOllamaModel: OllamaIcon, Faiss: MetaIcon, FaissSearch: MetaIcon, - AzureOpenAiModel: AzureOpenAiEmbeddingsIcon, + AzureOpenAiModel: AzureIcon, Redis: RedisIcon, RedisSearch: RedisIcon, PostgresChatMessageHistory: PostgresIcon,