code format
This commit is contained in:
parent
ec79cc43bd
commit
aae6223593
6 changed files with 7 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { ReactNode, createContext, useCallback, useContext, useState } from "react";
|
||||
import { createContext, useCallback, useContext, useState } from "react";
|
||||
|
||||
const initialValue = {
|
||||
updateSSEData: ({}) => {},
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import axios, { AxiosError, AxiosInstance } from "axios";
|
|||
import { useContext, useEffect, useRef } from "react";
|
||||
import { URL_EXCLUDED_FROM_ERROR_RETRIES } from "../../constants/constants";
|
||||
import { alertContext } from "../../contexts/alertContext";
|
||||
import { errorsVarType } from "../../types/tabs";
|
||||
|
||||
// Create a new Axios instance
|
||||
const api: AxiosInstance = axios.create({
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Edge, Node, Viewport } from "reactflow";
|
||||
//kind and class are just representative names to represent the actual structure of the object received by the API
|
||||
export type APIDataType = { [key: string]: APIKindType }
|
||||
export type APIDataType = { [key: string]: APIKindType };
|
||||
export type APIObjectType = { kind: APIKindType; [key: string]: APIKindType };
|
||||
export type APIKindType = { class: APIClassType; [key: string]: APIClassType };
|
||||
export type APITemplateType = {
|
||||
|
|
|
|||
|
|
@ -213,9 +213,7 @@ export type groupedObjType = {
|
|||
|
||||
type test = {
|
||||
[char: string]: string;
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
export type tweakType = Array<{
|
||||
[key: string]: {
|
||||
|
|
@ -227,13 +225,13 @@ export type uniqueTweakType = {
|
|||
[key: string]: {
|
||||
[char: string]: string;
|
||||
} & FlowStyleType;
|
||||
}
|
||||
};
|
||||
|
||||
export type apiModalTweakType = {
|
||||
current: Array<{
|
||||
[key: string]: {
|
||||
[char: string]: string | number;
|
||||
}
|
||||
};
|
||||
}>;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import { Dispatch, SetStateAction } from "react";
|
||||
import { FlowType, TweaksType } from "../flow";
|
||||
import { tweakType } from "../components";
|
||||
import { FlowType } from "../flow";
|
||||
|
||||
export type TabsContextType = {
|
||||
saveFlow: (flow: FlowType) => Promise<void>;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Edge, Node, ReactFlowInstance } from "reactflow";
|
||||
import { AlertItemType } from "../alerts";
|
||||
import { APIClassType, APIDataType, APIObjectType } from "../api";
|
||||
import { APIClassType, APIDataType } from "../api";
|
||||
|
||||
const types: { [char: string]: string } = {};
|
||||
const template: { [char: string]: APIClassType } = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue