chore(ui): lint

This commit is contained in:
psychedelicious
2025-01-26 11:11:57 +11:00
parent 0dc45ac903
commit 132e9bebd7
7 changed files with 5 additions and 267 deletions

View File

@@ -1,5 +1,5 @@
import { Box, Flex, Textarea } from '@invoke-ai/ui-library';
import type { Node,NodeProps } from '@xyflow/react';
import type { Node, NodeProps } from '@xyflow/react';
import { useAppDispatch } from 'app/store/storeHooks';
import NodeCollapseButton from 'features/nodes/components/flow/nodes/common/NodeCollapseButton';
import NodeTitle from 'features/nodes/components/flow/nodes/common/NodeTitle';

View File

@@ -1,19 +0,0 @@
import type { Node } from '@xyflow/react';
import { createMemoizedSelector } from 'app/store/createMemoizedSelector';
import { useAppSelector } from 'app/store/storeHooks';
import { selectNode, selectNodesSlice } from 'features/nodes/store/selectors';
import { useMemo } from 'react';
export const useNode = (nodeId: string): Node => {
const selector = useMemo(
() =>
createMemoizedSelector(selectNodesSlice, (nodes) => {
return selectNode(nodes, nodeId);
}),
[nodeId]
);
const node = useAppSelector(selector);
return node;
};

View File

@@ -5,12 +5,7 @@ import type {
FieldOutputTemplate,
StatefulFieldValue,
} from 'features/nodes/types/field';
import type {
AnyEdge,
AnyNode,
InvocationTemplate,
NodeExecutionState,
} from 'features/nodes/types/invocation';
import type { AnyEdge, AnyNode, InvocationTemplate, NodeExecutionState } from 'features/nodes/types/invocation';
import type { WorkflowV3 } from 'features/nodes/types/workflow';
import type { SQLiteDirection, WorkflowRecordOrderBy } from 'services/api/types';

View File

@@ -1,6 +1,6 @@
import type { Templates } from 'features/nodes/store/types';
import type { FieldType } from 'features/nodes/types/field';
import type { AnyNode, AnyEdge } from 'features/nodes/types/invocation';
import type { AnyEdge, AnyNode } from 'features/nodes/types/invocation';
/**
* Given a collect node, return the type of the items it collects. The graph is traversed to find the first node and

View File

@@ -2,7 +2,7 @@ import type { Connection } from '@xyflow/react';
import type { Templates } from 'features/nodes/store/types';
import { validateConnection } from 'features/nodes/store/util/validateConnection';
import type { FieldInputTemplate, FieldOutputTemplate } from 'features/nodes/types/field';
import type { AnyEdge,AnyNode } from 'features/nodes/types/invocation';
import type { AnyEdge, AnyNode } from 'features/nodes/types/invocation';
import { map } from 'lodash-es';
/**