code format

This commit is contained in:
anovazzi1 2023-08-15 19:43:43 -03:00
commit aae6223593
6 changed files with 7 additions and 11 deletions

View file

@ -1,4 +1,4 @@
import { ReactNode, createContext, useCallback, useContext, useState } from "react"; import { createContext, useCallback, useContext, useState } from "react";
const initialValue = { const initialValue = {
updateSSEData: ({}) => {}, updateSSEData: ({}) => {},

View file

@ -2,7 +2,6 @@ import axios, { AxiosError, AxiosInstance } from "axios";
import { useContext, useEffect, useRef } from "react"; import { useContext, useEffect, useRef } from "react";
import { URL_EXCLUDED_FROM_ERROR_RETRIES } from "../../constants/constants"; import { URL_EXCLUDED_FROM_ERROR_RETRIES } from "../../constants/constants";
import { alertContext } from "../../contexts/alertContext"; import { alertContext } from "../../contexts/alertContext";
import { errorsVarType } from "../../types/tabs";
// Create a new Axios instance // Create a new Axios instance
const api: AxiosInstance = axios.create({ const api: AxiosInstance = axios.create({

View file

@ -1,6 +1,6 @@
import { Edge, Node, Viewport } from "reactflow"; 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 //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 APIObjectType = { kind: APIKindType; [key: string]: APIKindType };
export type APIKindType = { class: APIClassType; [key: string]: APIClassType }; export type APIKindType = { class: APIClassType; [key: string]: APIClassType };
export type APITemplateType = { export type APITemplateType = {

View file

@ -213,9 +213,7 @@ export type groupedObjType = {
type test = { type test = {
[char: string]: string; [char: string]: string;
} };
export type tweakType = Array<{ export type tweakType = Array<{
[key: string]: { [key: string]: {
@ -227,13 +225,13 @@ export type uniqueTweakType = {
[key: string]: { [key: string]: {
[char: string]: string; [char: string]: string;
} & FlowStyleType; } & FlowStyleType;
} };
export type apiModalTweakType = { export type apiModalTweakType = {
current: Array<{ current: Array<{
[key: string]: { [key: string]: {
[char: string]: string | number; [char: string]: string | number;
} };
}>; }>;
}; };

View file

@ -1,6 +1,5 @@
import { Dispatch, SetStateAction } from "react";
import { FlowType, TweaksType } from "../flow";
import { tweakType } from "../components"; import { tweakType } from "../components";
import { FlowType } from "../flow";
export type TabsContextType = { export type TabsContextType = {
saveFlow: (flow: FlowType) => Promise<void>; saveFlow: (flow: FlowType) => Promise<void>;

View file

@ -1,6 +1,6 @@
import { Edge, Node, ReactFlowInstance } from "reactflow"; import { Edge, Node, ReactFlowInstance } from "reactflow";
import { AlertItemType } from "../alerts"; import { AlertItemType } from "../alerts";
import { APIClassType, APIDataType, APIObjectType } from "../api"; import { APIClassType, APIDataType } from "../api";
const types: { [char: string]: string } = {}; const types: { [char: string]: string } = {};
const template: { [char: string]: APIClassType } = {}; const template: { [char: string]: APIClassType } = {};