diff --git a/space_flow/.gitignore b/langflow/frontend/.gitignore similarity index 100% rename from space_flow/.gitignore rename to langflow/frontend/.gitignore diff --git a/space_flow/README.md b/langflow/frontend/README.md similarity index 100% rename from space_flow/README.md rename to langflow/frontend/README.md diff --git a/space_flow/package-lock.json b/langflow/frontend/package-lock.json similarity index 100% rename from space_flow/package-lock.json rename to langflow/frontend/package-lock.json diff --git a/space_flow/package.json b/langflow/frontend/package.json similarity index 100% rename from space_flow/package.json rename to langflow/frontend/package.json diff --git a/space_flow/public/index.html b/langflow/frontend/public/index.html similarity index 100% rename from space_flow/public/index.html rename to langflow/frontend/public/index.html diff --git a/space_flow/src/App.css b/langflow/frontend/src/App.css similarity index 100% rename from space_flow/src/App.css rename to langflow/frontend/src/App.css diff --git a/space_flow/src/App.tsx b/langflow/frontend/src/App.tsx similarity index 100% rename from space_flow/src/App.tsx rename to langflow/frontend/src/App.tsx diff --git a/space_flow/src/CustomNodes/BooleanNode/index.tsx b/langflow/frontend/src/CustomNodes/BooleanNode/index.tsx similarity index 100% rename from space_flow/src/CustomNodes/BooleanNode/index.tsx rename to langflow/frontend/src/CustomNodes/BooleanNode/index.tsx diff --git a/space_flow/src/CustomNodes/ChatInputNode/index.tsx b/langflow/frontend/src/CustomNodes/ChatInputNode/index.tsx similarity index 100% rename from space_flow/src/CustomNodes/ChatInputNode/index.tsx rename to langflow/frontend/src/CustomNodes/ChatInputNode/index.tsx diff --git a/space_flow/src/CustomNodes/ChatOutputNode/index.tsx b/langflow/frontend/src/CustomNodes/ChatOutputNode/index.tsx similarity index 100% rename from space_flow/src/CustomNodes/ChatOutputNode/index.tsx rename to langflow/frontend/src/CustomNodes/ChatOutputNode/index.tsx diff --git a/space_flow/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/langflow/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx similarity index 100% rename from space_flow/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx rename to langflow/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx diff --git a/space_flow/src/CustomNodes/GenericNode/index.tsx b/langflow/frontend/src/CustomNodes/GenericNode/index.tsx similarity index 100% rename from space_flow/src/CustomNodes/GenericNode/index.tsx rename to langflow/frontend/src/CustomNodes/GenericNode/index.tsx diff --git a/space_flow/src/CustomNodes/InputNode/index.tsx b/langflow/frontend/src/CustomNodes/InputNode/index.tsx similarity index 100% rename from space_flow/src/CustomNodes/InputNode/index.tsx rename to langflow/frontend/src/CustomNodes/InputNode/index.tsx diff --git a/space_flow/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx b/langflow/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx similarity index 100% rename from space_flow/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx rename to langflow/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx diff --git a/space_flow/src/alerts/alertDropDown/index.tsx b/langflow/frontend/src/alerts/alertDropDown/index.tsx similarity index 100% rename from space_flow/src/alerts/alertDropDown/index.tsx rename to langflow/frontend/src/alerts/alertDropDown/index.tsx diff --git a/space_flow/src/alerts/error/index.tsx b/langflow/frontend/src/alerts/error/index.tsx similarity index 100% rename from space_flow/src/alerts/error/index.tsx rename to langflow/frontend/src/alerts/error/index.tsx diff --git a/space_flow/src/alerts/notice/index.tsx b/langflow/frontend/src/alerts/notice/index.tsx similarity index 100% rename from space_flow/src/alerts/notice/index.tsx rename to langflow/frontend/src/alerts/notice/index.tsx diff --git a/space_flow/src/alerts/success/index.tsx b/langflow/frontend/src/alerts/success/index.tsx similarity index 100% rename from space_flow/src/alerts/success/index.tsx rename to langflow/frontend/src/alerts/success/index.tsx diff --git a/space_flow/src/components/ExtraSidebarComponent/index.tsx b/langflow/frontend/src/components/ExtraSidebarComponent/index.tsx similarity index 100% rename from space_flow/src/components/ExtraSidebarComponent/index.tsx rename to langflow/frontend/src/components/ExtraSidebarComponent/index.tsx diff --git a/space_flow/src/components/HeaderComponent/index.tsx b/langflow/frontend/src/components/HeaderComponent/index.tsx similarity index 100% rename from space_flow/src/components/HeaderComponent/index.tsx rename to langflow/frontend/src/components/HeaderComponent/index.tsx diff --git a/space_flow/src/components/LightTooltipComponent/index.tsx b/langflow/frontend/src/components/LightTooltipComponent/index.tsx similarity index 100% rename from space_flow/src/components/LightTooltipComponent/index.tsx rename to langflow/frontend/src/components/LightTooltipComponent/index.tsx diff --git a/space_flow/src/components/SidebarComponent/index.tsx b/langflow/frontend/src/components/SidebarComponent/index.tsx similarity index 100% rename from space_flow/src/components/SidebarComponent/index.tsx rename to langflow/frontend/src/components/SidebarComponent/index.tsx diff --git a/space_flow/src/components/SidebarComponent/sidebarButton/index.tsx b/langflow/frontend/src/components/SidebarComponent/sidebarButton/index.tsx similarity index 100% rename from space_flow/src/components/SidebarComponent/sidebarButton/index.tsx rename to langflow/frontend/src/components/SidebarComponent/sidebarButton/index.tsx diff --git a/space_flow/src/components/TooltipComponent/index.tsx b/langflow/frontend/src/components/TooltipComponent/index.tsx similarity index 100% rename from space_flow/src/components/TooltipComponent/index.tsx rename to langflow/frontend/src/components/TooltipComponent/index.tsx diff --git a/space_flow/src/components/breadcrumbComponent/index.tsx b/langflow/frontend/src/components/breadcrumbComponent/index.tsx similarity index 100% rename from space_flow/src/components/breadcrumbComponent/index.tsx rename to langflow/frontend/src/components/breadcrumbComponent/index.tsx diff --git a/space_flow/src/components/chatComponent/index.tsx b/langflow/frontend/src/components/chatComponent/index.tsx similarity index 100% rename from space_flow/src/components/chatComponent/index.tsx rename to langflow/frontend/src/components/chatComponent/index.tsx diff --git a/space_flow/src/components/dropdownComponent/index.tsx b/langflow/frontend/src/components/dropdownComponent/index.tsx similarity index 100% rename from space_flow/src/components/dropdownComponent/index.tsx rename to langflow/frontend/src/components/dropdownComponent/index.tsx diff --git a/space_flow/src/components/inputComponent/index.tsx b/langflow/frontend/src/components/inputComponent/index.tsx similarity index 100% rename from space_flow/src/components/inputComponent/index.tsx rename to langflow/frontend/src/components/inputComponent/index.tsx diff --git a/space_flow/src/components/inputListComponent/index.tsx b/langflow/frontend/src/components/inputListComponent/index.tsx similarity index 100% rename from space_flow/src/components/inputListComponent/index.tsx rename to langflow/frontend/src/components/inputListComponent/index.tsx diff --git a/space_flow/src/components/loadingComponent/index.tsx b/langflow/frontend/src/components/loadingComponent/index.tsx similarity index 100% rename from space_flow/src/components/loadingComponent/index.tsx rename to langflow/frontend/src/components/loadingComponent/index.tsx diff --git a/space_flow/src/components/textAreaComponent/index.tsx b/langflow/frontend/src/components/textAreaComponent/index.tsx similarity index 100% rename from space_flow/src/components/textAreaComponent/index.tsx rename to langflow/frontend/src/components/textAreaComponent/index.tsx diff --git a/space_flow/src/components/toggleComponent/index.tsx b/langflow/frontend/src/components/toggleComponent/index.tsx similarity index 100% rename from space_flow/src/components/toggleComponent/index.tsx rename to langflow/frontend/src/components/toggleComponent/index.tsx diff --git a/space_flow/src/contexts/alertContext.tsx b/langflow/frontend/src/contexts/alertContext.tsx similarity index 100% rename from space_flow/src/contexts/alertContext.tsx rename to langflow/frontend/src/contexts/alertContext.tsx diff --git a/space_flow/src/contexts/darkContext.tsx b/langflow/frontend/src/contexts/darkContext.tsx similarity index 100% rename from space_flow/src/contexts/darkContext.tsx rename to langflow/frontend/src/contexts/darkContext.tsx diff --git a/space_flow/src/contexts/index.tsx b/langflow/frontend/src/contexts/index.tsx similarity index 100% rename from space_flow/src/contexts/index.tsx rename to langflow/frontend/src/contexts/index.tsx diff --git a/space_flow/src/contexts/locationContext.tsx b/langflow/frontend/src/contexts/locationContext.tsx similarity index 100% rename from space_flow/src/contexts/locationContext.tsx rename to langflow/frontend/src/contexts/locationContext.tsx diff --git a/space_flow/src/contexts/popUpContext.tsx b/langflow/frontend/src/contexts/popUpContext.tsx similarity index 100% rename from space_flow/src/contexts/popUpContext.tsx rename to langflow/frontend/src/contexts/popUpContext.tsx diff --git a/space_flow/src/contexts/tabsContext.tsx b/langflow/frontend/src/contexts/tabsContext.tsx similarity index 100% rename from space_flow/src/contexts/tabsContext.tsx rename to langflow/frontend/src/contexts/tabsContext.tsx diff --git a/space_flow/src/contexts/typesContext.tsx b/langflow/frontend/src/contexts/typesContext.tsx similarity index 100% rename from space_flow/src/contexts/typesContext.tsx rename to langflow/frontend/src/contexts/typesContext.tsx diff --git a/space_flow/src/entities/apiEnum.ts b/langflow/frontend/src/entities/apiEnum.ts similarity index 100% rename from space_flow/src/entities/apiEnum.ts rename to langflow/frontend/src/entities/apiEnum.ts diff --git a/space_flow/src/entities/sidebarNav.ts b/langflow/frontend/src/entities/sidebarNav.ts similarity index 100% rename from space_flow/src/entities/sidebarNav.ts rename to langflow/frontend/src/entities/sidebarNav.ts diff --git a/space_flow/src/index.css b/langflow/frontend/src/index.css similarity index 100% rename from space_flow/src/index.css rename to langflow/frontend/src/index.css diff --git a/space_flow/src/index.tsx b/langflow/frontend/src/index.tsx similarity index 100% rename from space_flow/src/index.tsx rename to langflow/frontend/src/index.tsx diff --git a/space_flow/src/logo.svg b/langflow/frontend/src/logo.svg similarity index 100% rename from space_flow/src/logo.svg rename to langflow/frontend/src/logo.svg diff --git a/space_flow/src/modals/textAreaModal/index.tsx b/langflow/frontend/src/modals/textAreaModal/index.tsx similarity index 100% rename from space_flow/src/modals/textAreaModal/index.tsx rename to langflow/frontend/src/modals/textAreaModal/index.tsx diff --git a/space_flow/src/pages/FlowPage/components/ConnectionLineComponent/index.tsx b/langflow/frontend/src/pages/FlowPage/components/ConnectionLineComponent/index.tsx similarity index 100% rename from space_flow/src/pages/FlowPage/components/ConnectionLineComponent/index.tsx rename to langflow/frontend/src/pages/FlowPage/components/ConnectionLineComponent/index.tsx diff --git a/space_flow/src/pages/FlowPage/components/DisclosureComponent/index.tsx b/langflow/frontend/src/pages/FlowPage/components/DisclosureComponent/index.tsx similarity index 100% rename from space_flow/src/pages/FlowPage/components/DisclosureComponent/index.tsx rename to langflow/frontend/src/pages/FlowPage/components/DisclosureComponent/index.tsx diff --git a/space_flow/src/pages/FlowPage/components/extraSidebarComponent/index.tsx b/langflow/frontend/src/pages/FlowPage/components/extraSidebarComponent/index.tsx similarity index 100% rename from space_flow/src/pages/FlowPage/components/extraSidebarComponent/index.tsx rename to langflow/frontend/src/pages/FlowPage/components/extraSidebarComponent/index.tsx diff --git a/space_flow/src/pages/FlowPage/components/tabComponent/index.tsx b/langflow/frontend/src/pages/FlowPage/components/tabComponent/index.tsx similarity index 100% rename from space_flow/src/pages/FlowPage/components/tabComponent/index.tsx rename to langflow/frontend/src/pages/FlowPage/components/tabComponent/index.tsx diff --git a/space_flow/src/pages/FlowPage/components/tabsManagerComponent/index.tsx b/langflow/frontend/src/pages/FlowPage/components/tabsManagerComponent/index.tsx similarity index 100% rename from space_flow/src/pages/FlowPage/components/tabsManagerComponent/index.tsx rename to langflow/frontend/src/pages/FlowPage/components/tabsManagerComponent/index.tsx diff --git a/space_flow/src/pages/FlowPage/index.tsx b/langflow/frontend/src/pages/FlowPage/index.tsx similarity index 100% rename from space_flow/src/pages/FlowPage/index.tsx rename to langflow/frontend/src/pages/FlowPage/index.tsx diff --git a/space_flow/src/reportWebVitals.ts b/langflow/frontend/src/reportWebVitals.ts similarity index 100% rename from space_flow/src/reportWebVitals.ts rename to langflow/frontend/src/reportWebVitals.ts diff --git a/space_flow/src/types/alerts/index.ts b/langflow/frontend/src/types/alerts/index.ts similarity index 100% rename from space_flow/src/types/alerts/index.ts rename to langflow/frontend/src/types/alerts/index.ts diff --git a/space_flow/src/types/api/index.ts b/langflow/frontend/src/types/api/index.ts similarity index 100% rename from space_flow/src/types/api/index.ts rename to langflow/frontend/src/types/api/index.ts diff --git a/space_flow/src/types/chat/index.ts b/langflow/frontend/src/types/chat/index.ts similarity index 100% rename from space_flow/src/types/chat/index.ts rename to langflow/frontend/src/types/chat/index.ts diff --git a/space_flow/src/types/components/index.ts b/langflow/frontend/src/types/components/index.ts similarity index 92% rename from space_flow/src/types/components/index.ts rename to langflow/frontend/src/types/components/index.ts index ceb5d8fc3..63ee9de73 100644 --- a/space_flow/src/types/components/index.ts +++ b/langflow/frontend/src/types/components/index.ts @@ -1,6 +1,5 @@ -import { Disclosure } from '@headlessui/react'; import { ForwardRefExoticComponent, ReactElement, ReactNode } from 'react'; -import { NodeDataType } from "./../flow/index"; +import { NodeDataType } from "../flow/index"; export type InputComponentType = { value: string; disabled?: boolean; diff --git a/space_flow/src/types/entities/index.ts b/langflow/frontend/src/types/entities/index.ts similarity index 100% rename from space_flow/src/types/entities/index.ts rename to langflow/frontend/src/types/entities/index.ts diff --git a/space_flow/src/types/flow/index.ts b/langflow/frontend/src/types/flow/index.ts similarity index 88% rename from space_flow/src/types/flow/index.ts rename to langflow/frontend/src/types/flow/index.ts index e0e8b11ac..e8e5289f7 100644 --- a/space_flow/src/types/flow/index.ts +++ b/langflow/frontend/src/types/flow/index.ts @@ -1,4 +1,4 @@ -import { APIClassType } from './../api/index'; +import { APIClassType } from '../api/index'; import { ReactFlowJsonObject, XYPosition } from "reactflow"; export type FlowType = { diff --git a/space_flow/src/types/tabs/index.ts b/langflow/frontend/src/types/tabs/index.ts similarity index 100% rename from space_flow/src/types/tabs/index.ts rename to langflow/frontend/src/types/tabs/index.ts diff --git a/space_flow/src/types/typesContext/index.ts b/langflow/frontend/src/types/typesContext/index.ts similarity index 100% rename from space_flow/src/types/typesContext/index.ts rename to langflow/frontend/src/types/typesContext/index.ts diff --git a/space_flow/src/utils.ts b/langflow/frontend/src/utils.ts similarity index 100% rename from space_flow/src/utils.ts rename to langflow/frontend/src/utils.ts diff --git a/space_flow/tailwind.config.js b/langflow/frontend/tailwind.config.js similarity index 100% rename from space_flow/tailwind.config.js rename to langflow/frontend/tailwind.config.js diff --git a/space_flow/tsconfig.json b/langflow/frontend/tsconfig.json similarity index 100% rename from space_flow/tsconfig.json rename to langflow/frontend/tsconfig.json diff --git a/space_flow/src/controllers/NodesServices/index.ts b/space_flow/src/controllers/NodesServices/index.ts deleted file mode 100644 index 7f1d0e310..000000000 --- a/space_flow/src/controllers/NodesServices/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { APIObjectType, sendAllProps } from './../../types/api/index'; -import axios, { AxiosResponse } from "axios"; - -export async function getAll():Promise> { - return await axios.get("http://localhost:5003/"); -} - -export async function sendAll(data:sendAllProps) { - console.log(data); - return await axios.post("http://localhost:5003/predict", data); -}