From 90acee22736b5d8fcfb9f83311008e52ededd700 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Wed, 5 Jul 2023 16:41:35 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(constants.tsx):=20fix=20typo?= =?UTF-8?q?=20in=20flow=20name=20from=20LangFlow=20to=20Langflow=20?= =?UTF-8?q?=F0=9F=90=9B=20fix(tabsContext.tsx):=20fix=20typo=20in=20variab?= =?UTF-8?q?le=20name=20from=20LangFlowState=20to=20LangflowState=20?= =?UTF-8?q?=F0=9F=90=9B=20fix(flow=5Fconstants.tsx):=20fix=20typo=20in=20d?= =?UTF-8?q?escription=20from=20LangFlow=20to=20Langflow=20=F0=9F=90=9B=20f?= =?UTF-8?q?ix(chatModal/index.tsx):=20fix=20typo=20in=20chat=20modal=20tit?= =?UTF-8?q?le=20from=20LangFlow=20Chat=20to=20Langflow=20Chat=20?= =?UTF-8?q?=F0=9F=90=9B=20fix(importModal/index.tsx):=20fix=20typo=20in=20?= =?UTF-8?q?import=20modal=20title=20from=20LangFlow=20Examples=20to=20Lang?= =?UTF-8?q?flow=20Examples=20=F0=9F=90=9B=20fix(CommunityPage/index.tsx):?= =?UTF-8?q?=20fix=20typo=20in=20community=20page=20text=20from=20LangFlow?= =?UTF-8?q?=20to=20Langflow=20=F0=9F=90=9B=20fix(FlowPage/index.tsx):=20fi?= =?UTF-8?q?x=20typo=20in=20flow=20page=20text=20from=20LangFlow=20to=20Lan?= =?UTF-8?q?gflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The changes were made to fix typos in various parts of the codebase where the name "LangFlow" was misspelled as "Langflow". This improves consistency and ensures that the correct name is used throughout the application. --- src/frontend/src/constants.tsx | 2 +- src/frontend/src/contexts/tabsContext.tsx | 2 +- src/frontend/src/flow_constants.tsx | 6 +++--- src/frontend/src/modals/chatModal/index.tsx | 2 +- src/frontend/src/modals/importModal/index.tsx | 11 +++-------- src/frontend/src/pages/CommunityPage/index.tsx | 2 +- src/frontend/src/pages/FlowPage/index.tsx | 2 +- 7 files changed, 11 insertions(+), 16 deletions(-) diff --git a/src/frontend/src/constants.tsx b/src/frontend/src/constants.tsx index bcca38087..b609bce80 100644 --- a/src/frontend/src/constants.tsx +++ b/src/frontend/src/constants.tsx @@ -134,7 +134,7 @@ TWEAKS = ${ } flow = load_flow_from_json("${flowName}.json", tweaks=TWEAKS) # Now you can use it like any chain -flow("Hey, have you heard of LangFlow?")`; +flow("Hey, have you heard of Langflow?")`; }; function buildTweakObject(tweak) { diff --git a/src/frontend/src/contexts/tabsContext.tsx b/src/frontend/src/contexts/tabsContext.tsx index 3b20ded95..e3e1303f9 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -111,7 +111,7 @@ export function TabsProvider({ children }: { children: ReactNode }) { // function loadCookie(cookie: string) { // if (cookie && Object.keys(templates).length > 0) { - // let cookieObject: LangFlowState = JSON.parse(cookie); + // let cookieObject: LangflowState = JSON.parse(cookie); // try { // cookieObject.flows.forEach((flow) => { // if (!flow.data) { diff --git a/src/frontend/src/flow_constants.tsx b/src/frontend/src/flow_constants.tsx index e9cf0478b..1e2280ab9 100644 --- a/src/frontend/src/flow_constants.tsx +++ b/src/frontend/src/flow_constants.tsx @@ -20,7 +20,7 @@ export const DESCRIPTIONS: string[] = [ "Generate, Innovate, Communicate.", "Conversation Catalyst Engine.", "Language Chainlink Master.", - "Design Dialogues with LangFlow.", + "Design Dialogues with Langflow.", "Nurture NLP Nodes Here.", "Conversational Cartography Unlocked.", "Design, Develop, Dialogize.", @@ -31,7 +31,7 @@ export const DESCRIPTIONS: string[] = [ "Where Language Meets Logic.", "Building Intelligent Interactions.", "Your Passport to Linguistic Landscapes.", - "Create, Curate, Communicate with LangFlow.", + "Create, Curate, Communicate with Langflow.", "Flow into the Future of Language.", "Mapping Meaningful Conversations.", "Unravel the Art of Articulation.", @@ -41,7 +41,7 @@ export const DESCRIPTIONS: string[] = [ "The Pinnacle of Prompt Generation.", "Language Models, Mapped and Mastered.", "Powerful Prompts, Perfectly Positioned.", - "Innovation in Interaction with LangFlow.", + "Innovation in Interaction with Langflow.", "Your Toolkit for Text Generation.", "Unfolding Linguistic Possibilities.", "Building Powerful Solutions with Language Models.", diff --git a/src/frontend/src/modals/chatModal/index.tsx b/src/frontend/src/modals/chatModal/index.tsx index bb6efbb70..a9f6d34b1 100644 --- a/src/frontend/src/modals/chatModal/index.tsx +++ b/src/frontend/src/modals/chatModal/index.tsx @@ -380,7 +380,7 @@ export default function ChatModal({ 👋{" "} - LangFlow Chat + Langflow Chat
diff --git a/src/frontend/src/modals/importModal/index.tsx b/src/frontend/src/modals/importModal/index.tsx index 00f17c959..a2fd29db7 100644 --- a/src/frontend/src/modals/importModal/index.tsx +++ b/src/frontend/src/modals/importModal/index.tsx @@ -1,22 +1,18 @@ import { - XMarkIcon, - ArrowDownTrayIcon, DocumentDuplicateIcon, ComputerDesktopIcon, ArrowUpTrayIcon, ArrowLeftIcon, - CommandLineIcon, } from "@heroicons/react/24/outline"; -import { Fragment, useContext, useRef, useState } from "react"; +import { useContext, useRef, useState } from "react"; import { PopUpContext } from "../../contexts/popUpContext"; import { TabsContext } from "../../contexts/tabsContext"; import ButtonBox from "./buttonBox"; import { getExamples } from "../../controllers/API"; -import { error } from "console"; import { alertContext } from "../../contexts/alertContext"; import LoadingComponent from "../../components/loadingComponent"; import { FlowType } from "../../types/flow"; -import { classNames, snakeToSpaces, toNormalCase } from "../../utils"; +import { classNames } from "../../utils"; import { Dialog, DialogContent, @@ -26,7 +22,6 @@ import { DialogTitle, DialogTrigger, } from "../../components/ui/dialog"; -import { Button } from "../../components/ui/button"; import { IMPORT_DIALOG_SUBTITLE } from "../../constants"; export default function ImportModal() { @@ -194,7 +189,7 @@ export default function ImportModal() { fill="currentColor" /> - LangFlow Examples + Langflow Examples diff --git a/src/frontend/src/pages/CommunityPage/index.tsx b/src/frontend/src/pages/CommunityPage/index.tsx index d0bdc3536..871b27d5e 100644 --- a/src/frontend/src/pages/CommunityPage/index.tsx +++ b/src/frontend/src/pages/CommunityPage/index.tsx @@ -57,7 +57,7 @@ export default function CommunityPage() { - Discover and learn from shared examples by the LangFlow community. We + Discover and learn from shared examples by the Langflow community. We welcome new example contributions that can help our community explore new and powerful features. diff --git a/src/frontend/src/pages/FlowPage/index.tsx b/src/frontend/src/pages/FlowPage/index.tsx index c2a7d53bb..57c00393b 100644 --- a/src/frontend/src/pages/FlowPage/index.tsx +++ b/src/frontend/src/pages/FlowPage/index.tsx @@ -31,7 +31,7 @@ export default function FlowPage() { href="https://logspace.ai/" className="absolute left-7 bottom-2 flex h-6 cursor-pointer flex-col items-center justify-start overflow-hidden rounded-lg bg-foreground px-2 text-center font-sans text-xs tracking-wide text-secondary transition-all duration-500 ease-in-out hover:h-12" > - {version &&
⛓️ LangFlow v{version}
} + {version &&
⛓️ Langflow v{version}
}
Created by Logspace