DocLoader type added to utils

This commit is contained in:
anovazzi1 2023-03-27 17:17:47 -03:00
commit 5680645ec0
3 changed files with 5 additions and 8 deletions

View file

@ -4,8 +4,6 @@ import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { BrowserRouter } from "react-router-dom";
import ContextWrapper from "./contexts";
import CrashErrorComponent from "./components/CrashErrorComponent";
import { ErrorBoundary } from "react-error-boundary";
const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement

View file

@ -17,10 +17,6 @@ import GenericNode from "../../CustomNodes/GenericNode";
import { alertContext } from "../../contexts/alertContext";
import { TabsContext } from "../../contexts/tabsContext";
import { typesContext } from "../../contexts/typesContext";
import {
ArrowDownTrayIcon,
ArrowUpTrayIcon,
} from "@heroicons/react/24/outline";
import ConnectionLineComponent from "./components/ConnectionLineComponent";
import { FlowType, NodeType } from "../../types/flow";
import { APIClassType } from "../../types/api";

View file

@ -7,6 +7,7 @@ import {
WrenchScrewdriverIcon,
ComputerDesktopIcon,
Bars3CenterLeftIcon,
PaperClipIcon,
} from "@heroicons/react/24/outline";
import { Connection, Edge, Node, ReactFlowInstance } from "reactflow";
import { FlowType } from "./types/flow";
@ -71,7 +72,8 @@ export const nodeColors: {[char: string]: string} = {
memories: "#FF9135",
advanced: "#000000",
chat: "#454173",
thought:"#272541"
thought:"#272541",
docloaders:"#10B981"
};
export const nodeNames:{[char: string]: string} = {
@ -83,7 +85,7 @@ export const nodeNames:{[char: string]: string} = {
memories: "Memories",
advanced: "Advanced",
chat: "Chat",
docloaders:"Document Loader"
};
export const nodeIcons:{[char: string]: React.ForwardRefExoticComponent<React.SVGProps<SVGSVGElement>>} = {
@ -95,6 +97,7 @@ export const nodeIcons:{[char: string]: React.ForwardRefExoticComponent<React.SV
tools: WrenchScrewdriverIcon,
advanced: ComputerDesktopIcon,
chat: Bars3CenterLeftIcon,
docloaders:PaperClipIcon
};
export const bgColors = {