Removed unused imports
This commit is contained in:
parent
8972c0e3ec
commit
fc0fe8f5b8
10 changed files with 7 additions and 30 deletions
|
|
@ -1,9 +1,8 @@
|
||||||
import { Bars3CenterLeftIcon, CheckCircleIcon, TrashIcon } from "@heroicons/react/24/outline";
|
import { CheckCircleIcon, TrashIcon } from "@heroicons/react/24/outline";
|
||||||
import { Input } from "@mui/material";
|
|
||||||
import { Handle, Position } from "reactflow";
|
import { Handle, Position } from "reactflow";
|
||||||
import { isValidConnection, nodeColors } from "../../utils";
|
import { isValidConnection, nodeColors } from "../../utils";
|
||||||
import ToggleComponent from "../../components/toggleComponent";
|
import ToggleComponent from "../../components/toggleComponent";
|
||||||
import { useContext, useEffect, useState } from "react";
|
import { useContext, useState } from "react";
|
||||||
import { typesContext } from "../../contexts/typesContext";
|
import { typesContext } from "../../contexts/typesContext";
|
||||||
import { NodeDataType } from "../../types/flow";
|
import { NodeDataType } from "../../types/flow";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 { Handle, Position } from "reactflow";
|
||||||
import InputComponent from "../../components/inputComponent";
|
import { isValidConnection, nodeColors } from "../../utils";
|
||||||
import { isValidConnection, nodeColors, snakeToNormalCase } from "../../utils";
|
|
||||||
import Tooltip from "../../components/TooltipComponent";
|
import Tooltip from "../../components/TooltipComponent";
|
||||||
import { useContext } from "react";
|
import { useContext } from "react";
|
||||||
import { typesContext } from "../../contexts/typesContext";
|
import { typesContext } from "../../contexts/typesContext";
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,6 @@ import { Handle, Position, useUpdateNodeInternals } from "reactflow";
|
||||||
import Tooltip from "../../../../components/TooltipComponent";
|
import Tooltip from "../../../../components/TooltipComponent";
|
||||||
import {
|
import {
|
||||||
isValidConnection,
|
isValidConnection,
|
||||||
nodeColors,
|
|
||||||
snakeToNormalCase,
|
|
||||||
} from "../../../../utils";
|
} from "../../../../utils";
|
||||||
import { useContext, useEffect, useRef, useState } from "react";
|
import { useContext, useEffect, useRef, useState } from "react";
|
||||||
import InputComponent from "../../../../components/inputComponent";
|
import InputComponent from "../../../../components/inputComponent";
|
||||||
|
|
@ -27,7 +25,6 @@ export default function ParameterComponent({
|
||||||
const ref = useRef(null);
|
const ref = useRef(null);
|
||||||
const updateNodeInternals = useUpdateNodeInternals();
|
const updateNodeInternals = useUpdateNodeInternals();
|
||||||
const [position, setPosition] = useState(0);
|
const [position, setPosition] = useState(0);
|
||||||
var _ = require('lodash');
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (ref.current && ref.current.offsetTop && ref.current.clientHeight) {
|
if (ref.current && ref.current.offsetTop && ref.current.clientHeight) {
|
||||||
setPosition(ref.current.offsetTop + ref.current.clientHeight / 2);
|
setPosition(ref.current.offsetTop + ref.current.clientHeight / 2);
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ import ParameterComponent from "./components/parameterComponent";
|
||||||
import { typesContext } from "../../contexts/typesContext";
|
import { typesContext } from "../../contexts/typesContext";
|
||||||
import { useContext } from "react";
|
import { useContext } from "react";
|
||||||
import { NodeDataType} from "../../types/flow";
|
import { NodeDataType} from "../../types/flow";
|
||||||
import { APITemplateType, TemplateVariableType } from "../../types/api";
|
|
||||||
|
|
||||||
export default function GenericNode({ data}:{data:NodeDataType}) {
|
export default function GenericNode({ data}:{data:NodeDataType}) {
|
||||||
const {types, deleteNode} = useContext(typesContext);
|
const {types, deleteNode} = useContext(typesContext);
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
import { Disclosure } from "@headlessui/react";
|
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 { useContext } from "react";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { classNames } from "../../utils";
|
import { classNames } from "../../utils";
|
||||||
import { locationContext } from "../../contexts/locationContext";
|
import { locationContext } from "../../contexts/locationContext";
|
||||||
import { TabsContext } from "../../contexts/tabsContext";
|
|
||||||
|
|
||||||
export default function ExtraSidebar() {
|
export default function ExtraSidebar() {
|
||||||
const {
|
const {
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,13 @@ import SidebarButton from "./sidebarButton";
|
||||||
import { BsPlusSquare } from "react-icons/bs";
|
import { BsPlusSquare } from "react-icons/bs";
|
||||||
import { classNames } from "../../utils";
|
import { classNames } from "../../utils";
|
||||||
import { ChevronRightIcon } from "@heroicons/react/24/outline";
|
import { ChevronRightIcon } from "@heroicons/react/24/outline";
|
||||||
import { useContext, useState } from "react";
|
import { useContext } from "react";
|
||||||
import { sidebarNavigation } from "../../entities/sidebarNav";
|
import { sidebarNavigation } from "../../entities/sidebarNav";
|
||||||
import { locationContext } from "../../contexts/locationContext";
|
import { locationContext } from "../../contexts/locationContext";
|
||||||
|
|
||||||
export default function Sidebar() {
|
export default function Sidebar() {
|
||||||
let { showSideBar, isStackedOpen, setIsStackedOpen } =
|
let { showSideBar, isStackedOpen, setIsStackedOpen } =
|
||||||
useContext(locationContext);
|
useContext(locationContext);
|
||||||
const [newProjectOpen, setNewProjectOpen] = useState(false);
|
|
||||||
let current = false;
|
let current = false;
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
@ -33,7 +32,6 @@ export default function Sidebar() {
|
||||||
<button
|
<button
|
||||||
key="New Project"
|
key="New Project"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setNewProjectOpen(true);
|
|
||||||
}}
|
}}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
current
|
current
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,6 @@ export const TabsContext = createContext<TabsContextType>(
|
||||||
TabsContextInitialValue
|
TabsContextInitialValue
|
||||||
);
|
);
|
||||||
|
|
||||||
let _ = require("lodash");
|
|
||||||
|
|
||||||
export function TabsProvider({ children }:{children:ReactNode}) {
|
export function TabsProvider({ children }:{children:ReactNode}) {
|
||||||
const [tabIndex, setTabIndex] = useState(0);
|
const [tabIndex, setTabIndex] = useState(0);
|
||||||
const [flows, setFlows] = useState<Array<FlowType>>([]);
|
const [flows, setFlows] = useState<Array<FlowType>>([]);
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,5 @@
|
||||||
import {
|
import {
|
||||||
BoltIcon,
|
|
||||||
Cog6ToothIcon,
|
|
||||||
HomeIcon,
|
HomeIcon,
|
||||||
LightBulbIcon,
|
|
||||||
RocketLaunchIcon,
|
|
||||||
TableCellsIcon,
|
|
||||||
} from '@heroicons/react/24/outline'
|
} from '@heroicons/react/24/outline'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
import { CSSProperties, FC } from 'react';
|
|
||||||
import { Node } from 'reactflow';
|
|
||||||
import { ConnectionLineComponentProps } from 'reactflow';
|
import { ConnectionLineComponentProps } from 'reactflow';
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -7,12 +5,8 @@ import { ConnectionLineComponentProps } from 'reactflow';
|
||||||
const ConnectionLineComponent = ({
|
const ConnectionLineComponent = ({
|
||||||
fromX,
|
fromX,
|
||||||
fromY,
|
fromY,
|
||||||
fromPosition,
|
|
||||||
toX,
|
toX,
|
||||||
toY,
|
toY,
|
||||||
toPosition,
|
|
||||||
connectionLineType,
|
|
||||||
fromNode,
|
|
||||||
connectionLineStyle = {} // provide a default value for connectionLineStyle
|
connectionLineStyle = {} // provide a default value for connectionLineStyle
|
||||||
}:ConnectionLineComponentProps) => {
|
}:ConnectionLineComponentProps) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
import { ArrowDownTrayIcon } from "@heroicons/react/24/outline";
|
|
||||||
import { PlusIcon, XMarkIcon } from "@heroicons/react/24/solid";
|
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 { TabsContext } from "../../../../contexts/tabsContext";
|
||||||
import { FlowType } from "../../../../types/flow";
|
import { FlowType } from "../../../../types/flow";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue