From e889bb38bca073ee14e57428b53aac602aa1159d Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Wed, 28 Feb 2024 19:30:26 -0300 Subject: [PATCH] added new icons --- .../AzureOpenAiEmbeddings/AzureChatOpenAi.jsx | 67 +++++++++++++++++++ .../AzureOpenAiEmbeddings/AzureChatOpenAi.svg | 1 + .../src/icons/AzureOpenAiEmbeddings/index.tsx | 9 +++ src/frontend/src/icons/Ollama/Ollama.jsx | 64 ++++++++++++++++++ src/frontend/src/icons/Ollama/Ollama.svg | 1 + src/frontend/src/icons/Ollama/index.tsx | 9 +++ src/frontend/src/icons/Postgres/Redis.jsx | 67 +++++++++++++++++++ src/frontend/src/icons/Postgres/Redis.svg | 1 + src/frontend/src/icons/Postgres/index.tsx | 9 +++ src/frontend/src/icons/Redis/Redis.jsx | 67 +++++++++++++++++++ src/frontend/src/icons/Redis/Redis.svg | 1 + src/frontend/src/icons/Redis/index.tsx | 8 +++ src/frontend/src/utils/styleUtils.ts | 18 ++++- 13 files changed, 321 insertions(+), 1 deletion(-) create mode 100644 src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.jsx create mode 100644 src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.svg create mode 100644 src/frontend/src/icons/AzureOpenAiEmbeddings/index.tsx create mode 100644 src/frontend/src/icons/Ollama/Ollama.jsx create mode 100644 src/frontend/src/icons/Ollama/Ollama.svg create mode 100644 src/frontend/src/icons/Ollama/index.tsx create mode 100644 src/frontend/src/icons/Postgres/Redis.jsx create mode 100644 src/frontend/src/icons/Postgres/Redis.svg create mode 100644 src/frontend/src/icons/Postgres/index.tsx create mode 100644 src/frontend/src/icons/Redis/Redis.jsx create mode 100644 src/frontend/src/icons/Redis/Redis.svg create mode 100644 src/frontend/src/icons/Redis/index.tsx diff --git a/src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.jsx b/src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.jsx new file mode 100644 index 000000000..0030169f8 --- /dev/null +++ b/src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.jsx @@ -0,0 +1,67 @@ +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 new file mode 100644 index 000000000..cb695fac2 --- /dev/null +++ b/src/frontend/src/icons/AzureOpenAiEmbeddings/AzureChatOpenAi.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/frontend/src/icons/AzureOpenAiEmbeddings/index.tsx b/src/frontend/src/icons/AzureOpenAiEmbeddings/index.tsx new file mode 100644 index 000000000..2444d32b0 --- /dev/null +++ b/src/frontend/src/icons/AzureOpenAiEmbeddings/index.tsx @@ -0,0 +1,9 @@ +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/icons/Ollama/Ollama.jsx b/src/frontend/src/icons/Ollama/Ollama.jsx new file mode 100644 index 000000000..70086a373 --- /dev/null +++ b/src/frontend/src/icons/Ollama/Ollama.jsx @@ -0,0 +1,64 @@ +export const SvgOllama = (props) => ( + + + + + + + + + + + + + + + + + + + + + + +); +export default SvgOllama; diff --git a/src/frontend/src/icons/Ollama/Ollama.svg b/src/frontend/src/icons/Ollama/Ollama.svg new file mode 100644 index 000000000..f189d6efb --- /dev/null +++ b/src/frontend/src/icons/Ollama/Ollama.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/frontend/src/icons/Ollama/index.tsx b/src/frontend/src/icons/Ollama/index.tsx new file mode 100644 index 000000000..4d49fa198 --- /dev/null +++ b/src/frontend/src/icons/Ollama/index.tsx @@ -0,0 +1,9 @@ +import React, { forwardRef } from "react"; +import SvgOllama from "./Ollama"; + +export const OllamaIcon = forwardRef< + SVGSVGElement, + React.PropsWithChildren<{}> +>((props, ref) => { + return ; +}); diff --git a/src/frontend/src/icons/Postgres/Redis.jsx b/src/frontend/src/icons/Postgres/Redis.jsx new file mode 100644 index 000000000..f1063f52b --- /dev/null +++ b/src/frontend/src/icons/Postgres/Redis.jsx @@ -0,0 +1,67 @@ +export const SvgPostgres = (props) => ( + + + + + + + + + + + + + + + + + + + + + + + + + +); +export default SvgPostgres; diff --git a/src/frontend/src/icons/Postgres/Redis.svg b/src/frontend/src/icons/Postgres/Redis.svg new file mode 100644 index 000000000..6075a2b7f --- /dev/null +++ b/src/frontend/src/icons/Postgres/Redis.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/frontend/src/icons/Postgres/index.tsx b/src/frontend/src/icons/Postgres/index.tsx new file mode 100644 index 000000000..b7da5264c --- /dev/null +++ b/src/frontend/src/icons/Postgres/index.tsx @@ -0,0 +1,9 @@ +import React, { forwardRef } from "react"; +import SvgPostgres from "./Redis"; + +export const PostgresIcon = forwardRef< + SVGSVGElement, + React.PropsWithChildren<{}> +>((props, ref) => { + return ; +}); diff --git a/src/frontend/src/icons/Redis/Redis.jsx b/src/frontend/src/icons/Redis/Redis.jsx new file mode 100644 index 000000000..1ad7558e2 --- /dev/null +++ b/src/frontend/src/icons/Redis/Redis.jsx @@ -0,0 +1,67 @@ +export const SvgRedis = (props) => ( + + + + + + + + + + + + + + + + + + + + + + + + + +); +export default SvgRedis; diff --git a/src/frontend/src/icons/Redis/Redis.svg b/src/frontend/src/icons/Redis/Redis.svg new file mode 100644 index 000000000..6075a2b7f --- /dev/null +++ b/src/frontend/src/icons/Redis/Redis.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/frontend/src/icons/Redis/index.tsx b/src/frontend/src/icons/Redis/index.tsx new file mode 100644 index 000000000..b1624e4a5 --- /dev/null +++ b/src/frontend/src/icons/Redis/index.tsx @@ -0,0 +1,8 @@ +import React, { forwardRef } from "react"; +import { SvgRedis } from "./Redis"; + +export const RedisIcon = forwardRef>( + (props, ref) => { + return ; + } +); diff --git a/src/frontend/src/utils/styleUtils.ts b/src/frontend/src/utils/styleUtils.ts index 2cd74d6d1..1ae649269 100644 --- a/src/frontend/src/utils/styleUtils.ts +++ b/src/frontend/src/utils/styleUtils.ts @@ -128,6 +128,7 @@ import { FaApple, FaGithub } 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 { BingIcon } from "../icons/Bing"; import { ChromaIcon } from "../icons/ChromaIcon"; import { CohereIcon } from "../icons/Cohere"; @@ -147,9 +148,12 @@ import { MetaIcon } from "../icons/Meta"; import { MidjourneyIcon } from "../icons/Midjorney"; import { MongoDBIcon } from "../icons/MongoDB"; import { NotionIcon } from "../icons/Notion"; +import { OllamaIcon } from "../icons/Ollama"; import { OpenAiIcon } from "../icons/OpenAi"; import { PineconeIcon } from "../icons/Pinecone"; +import { PostgresIcon } from "../icons/Postgres"; import { QDrantIcon } from "../icons/QDrant"; +import { RedisIcon } from "../icons/Redis"; import { SearxIcon } from "../icons/Searx"; import { ShareIcon } from "../icons/Share"; import { Share2Icon } from "../icons/Share2"; @@ -252,6 +256,18 @@ export const nodeNames: { [char: string]: string } = { }; export const nodeIconsLucide: iconsType = { + AzureChatOpenAi: AzureOpenAiEmbeddingsIcon, + Ollama: OllamaIcon, + ChatOllama: OllamaIcon, + AzureOpenAiEmbeddings: AzureOpenAiEmbeddingsIcon, + OllamaEmbeddings: OllamaIcon, + ChatOllamaModel: OllamaIcon, + Faiss: MetaIcon, + FaissSearch: MetaIcon, + AzureOpenAiModel: AzureOpenAiEmbeddingsIcon, + Redis: RedisIcon, + RedisSearch: RedisIcon, + PostgresChatMessageHistory: PostgresIcon, Play, Vectara: VectaraIcon, ArrowUpToLine: ArrowUpToLine, @@ -280,7 +296,7 @@ export const nodeIconsLucide: iconsType = { Meta: MetaIcon, Midjorney: MidjourneyIcon, MongoDBAtlasVectorSearch: MongoDBIcon, - MongoDB:MongoDBIcon, + MongoDB: MongoDBIcon, MongoDBChatMessageHistory: MongoDBIcon, NotionDirectoryLoader: NotionIcon, ChatOpenAI: OpenAiIcon,