refactor: Use NodeConnectionType consistently across the code base (no-changelog) (#10595)

This commit is contained in:
Ricardo Espinoza
2024-08-29 09:55:53 -04:00
committed by GitHub
parent 1491cbd228
commit c4eb3746d7
521 changed files with 2259 additions and 1999 deletions

View File

@@ -5,7 +5,6 @@ import { mapStores } from 'pinia';
import { useStorage } from '@/composables/useStorage';
import { saveAs } from 'file-saver';
import type {
ConnectionTypes,
IBinaryData,
IBinaryKeyData,
IDataObject,
@@ -181,7 +180,7 @@ export default defineComponent({
},
data() {
return {
connectionType: NodeConnectionType.Main as ConnectionTypes,
connectionType: NodeConnectionType.Main as NodeConnectionType,
binaryDataPreviewActive: false,
dataSize: 0,
showData: false,
@@ -929,7 +928,7 @@ export default defineComponent({
getRawInputData(
runIndex: number,
outputIndex: number,
connectionType: ConnectionTypes = NodeConnectionType.Main,
connectionType: NodeConnectionType = NodeConnectionType.Main,
): INodeExecutionData[] {
let inputData: INodeExecutionData[] = [];
@@ -974,7 +973,7 @@ export default defineComponent({
getDataCount(
runIndex: number,
outputIndex: number,
connectionType: ConnectionTypes = NodeConnectionType.Main,
connectionType: NodeConnectionType = NodeConnectionType.Main,
) {
if (!this.node) {
return 0;
@@ -993,7 +992,7 @@ export default defineComponent({
this.outputIndex = 0;
this.refreshDataSize();
this.closeBinaryDataDisplay();
let outputTypes: ConnectionTypes[] = [];
let outputTypes: NodeConnectionType[] = [];
if (this.nodeType !== null && this.node !== null) {
const outputs = this.getResolvedNodeOutputs();
outputTypes = NodeHelpers.getConnectionTypes(outputs);