diff --git a/space_flow/src/CustomNodes/BooleanNode/index.tsx b/space_flow/src/CustomNodes/BooleanNode/index.tsx index c579490b9..c22a9b972 100644 --- a/space_flow/src/CustomNodes/BooleanNode/index.tsx +++ b/space_flow/src/CustomNodes/BooleanNode/index.tsx @@ -1,9 +1,8 @@ -import { Bars3CenterLeftIcon, CheckCircleIcon, TrashIcon } from "@heroicons/react/24/outline"; -import { Input } from "@mui/material"; +import { CheckCircleIcon, TrashIcon } from "@heroicons/react/24/outline"; import { Handle, Position } from "reactflow"; import { isValidConnection, nodeColors } from "../../utils"; import ToggleComponent from "../../components/toggleComponent"; -import { useContext, useEffect, useState } from "react"; +import { useContext, useState } from "react"; import { typesContext } from "../../contexts/typesContext"; import { NodeDataType } from "../../types/flow"; diff --git a/space_flow/src/CustomNodes/ChatOutputNode/index.tsx b/space_flow/src/CustomNodes/ChatOutputNode/index.tsx index 1e731bd95..ef3a435ca 100644 --- a/space_flow/src/CustomNodes/ChatOutputNode/index.tsx +++ b/space_flow/src/CustomNodes/ChatOutputNode/index.tsx @@ -1,7 +1,6 @@ -import { Bars3CenterLeftIcon, ChatBubbleBottomCenterTextIcon } from "@heroicons/react/24/outline"; +import { Bars3CenterLeftIcon } from "@heroicons/react/24/outline"; import { Handle, Position } from "reactflow"; -import InputComponent from "../../components/inputComponent"; -import { isValidConnection, nodeColors, snakeToNormalCase } from "../../utils"; +import { isValidConnection, nodeColors } from "../../utils"; import Tooltip from "../../components/TooltipComponent"; import { useContext } from "react"; import { typesContext } from "../../contexts/typesContext"; diff --git a/space_flow/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/space_flow/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 5e3df64e0..1fd43647f 100644 --- a/space_flow/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/space_flow/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -2,8 +2,6 @@ import { Handle, Position, useUpdateNodeInternals } from "reactflow"; import Tooltip from "../../../../components/TooltipComponent"; import { isValidConnection, - nodeColors, - snakeToNormalCase, } from "../../../../utils"; import { useContext, useEffect, useRef, useState } from "react"; import InputComponent from "../../../../components/inputComponent"; @@ -27,7 +25,6 @@ export default function ParameterComponent({ const ref = useRef(null); const updateNodeInternals = useUpdateNodeInternals(); const [position, setPosition] = useState(0); - var _ = require('lodash'); useEffect(() => { if (ref.current && ref.current.offsetTop && ref.current.clientHeight) { setPosition(ref.current.offsetTop + ref.current.clientHeight / 2); diff --git a/space_flow/src/CustomNodes/GenericNode/index.tsx b/space_flow/src/CustomNodes/GenericNode/index.tsx index 923b17053..093a7bd6f 100644 --- a/space_flow/src/CustomNodes/GenericNode/index.tsx +++ b/space_flow/src/CustomNodes/GenericNode/index.tsx @@ -10,7 +10,6 @@ import ParameterComponent from "./components/parameterComponent"; import { typesContext } from "../../contexts/typesContext"; import { useContext } from "react"; import { NodeDataType} from "../../types/flow"; -import { APITemplateType, TemplateVariableType } from "../../types/api"; export default function GenericNode({ data}:{data:NodeDataType}) { const {types, deleteNode} = useContext(typesContext); diff --git a/space_flow/src/components/ExtraSidebarComponent/index.tsx b/space_flow/src/components/ExtraSidebarComponent/index.tsx index 65d2fe235..25d6ab89b 100644 --- a/space_flow/src/components/ExtraSidebarComponent/index.tsx +++ b/space_flow/src/components/ExtraSidebarComponent/index.tsx @@ -1,10 +1,9 @@ import { Disclosure } from "@headlessui/react"; -import { ArrowUpTrayIcon, ChevronLeftIcon } from "@heroicons/react/24/outline"; +import { ChevronLeftIcon } from "@heroicons/react/24/outline"; import { useContext } from "react"; import { Link } from "react-router-dom"; import { classNames } from "../../utils"; import { locationContext } from "../../contexts/locationContext"; -import { TabsContext } from "../../contexts/tabsContext"; export default function ExtraSidebar() { const { diff --git a/space_flow/src/components/SidebarComponent/index.tsx b/space_flow/src/components/SidebarComponent/index.tsx index 83e59a1d0..9901614a5 100644 --- a/space_flow/src/components/SidebarComponent/index.tsx +++ b/space_flow/src/components/SidebarComponent/index.tsx @@ -2,14 +2,13 @@ import SidebarButton from "./sidebarButton"; import { BsPlusSquare } from "react-icons/bs"; import { classNames } from "../../utils"; import { ChevronRightIcon } from "@heroicons/react/24/outline"; -import { useContext, useState } from "react"; +import { useContext } from "react"; import { sidebarNavigation } from "../../entities/sidebarNav"; import { locationContext } from "../../contexts/locationContext"; export default function Sidebar() { let { showSideBar, isStackedOpen, setIsStackedOpen } = useContext(locationContext); - const [newProjectOpen, setNewProjectOpen] = useState(false); let current = false; return (
{ - setNewProjectOpen(true); }} className={classNames( current diff --git a/space_flow/src/contexts/tabsContext.tsx b/space_flow/src/contexts/tabsContext.tsx index 1678a7c2c..d1aa5e7ab 100644 --- a/space_flow/src/contexts/tabsContext.tsx +++ b/space_flow/src/contexts/tabsContext.tsx @@ -20,8 +20,6 @@ export const TabsContext = createContext( TabsContextInitialValue ); -let _ = require("lodash"); - export function TabsProvider({ children }:{children:ReactNode}) { const [tabIndex, setTabIndex] = useState(0); const [flows, setFlows] = useState>([]); diff --git a/space_flow/src/entities/sidebarNav.ts b/space_flow/src/entities/sidebarNav.ts index 52ff363e3..3a502cde5 100644 --- a/space_flow/src/entities/sidebarNav.ts +++ b/space_flow/src/entities/sidebarNav.ts @@ -1,10 +1,5 @@ import { - BoltIcon, - Cog6ToothIcon, HomeIcon, - LightBulbIcon, - RocketLaunchIcon, - TableCellsIcon, } from '@heroicons/react/24/outline' diff --git a/space_flow/src/pages/FlowPage/components/ConnectionLineComponent/index.tsx b/space_flow/src/pages/FlowPage/components/ConnectionLineComponent/index.tsx index 5fc8086da..102cd4d38 100644 --- a/space_flow/src/pages/FlowPage/components/ConnectionLineComponent/index.tsx +++ b/space_flow/src/pages/FlowPage/components/ConnectionLineComponent/index.tsx @@ -1,5 +1,3 @@ -import { CSSProperties, FC } from 'react'; -import { Node } from 'reactflow'; import { ConnectionLineComponentProps } from 'reactflow'; @@ -7,12 +5,8 @@ import { ConnectionLineComponentProps } from 'reactflow'; const ConnectionLineComponent = ({ fromX, fromY, - fromPosition, toX, toY, - toPosition, - connectionLineType, - fromNode, connectionLineStyle = {} // provide a default value for connectionLineStyle }:ConnectionLineComponentProps) => { return ( diff --git a/space_flow/src/pages/FlowPage/components/tabComponent/index.tsx b/space_flow/src/pages/FlowPage/components/tabComponent/index.tsx index 2d74f650d..adb27fa93 100644 --- a/space_flow/src/pages/FlowPage/components/tabComponent/index.tsx +++ b/space_flow/src/pages/FlowPage/components/tabComponent/index.tsx @@ -1,6 +1,5 @@ -import { ArrowDownTrayIcon } from "@heroicons/react/24/outline"; import { PlusIcon, XMarkIcon } from "@heroicons/react/24/solid"; -import { useContext, useRef, useState } from "react"; +import { useContext, useState } from "react"; import { TabsContext } from "../../../../contexts/tabsContext"; import { FlowType } from "../../../../types/flow";