Skip to content

Commit

Permalink
Revert "[Refactor] Extract RerouteNode as a separate file" (#2678)
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei authored Feb 22, 2025
1 parent f43eac7 commit 064e982
Show file tree
Hide file tree
Showing 4 changed files with 737 additions and 753 deletions.
11 changes: 6 additions & 5 deletions src/extensions/core/groupNode.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// @ts-strict-ignore
import { LGraphCanvas, LiteGraph } from '@comfyorg/litegraph'
import { type LGraph, LGraphCanvas, LiteGraph } from '@comfyorg/litegraph'
import { LGraphNode, type NodeId } from '@comfyorg/litegraph/dist/LGraphNode'

import { ManageGroupDialog } from '@/extensions/core/groupNodeManage'
import { t } from '@/i18n'
import { mergeIfValid } from '@/nodes/PrimitiveNode'
import { api } from '@/scripts/api'
import { app } from '@/scripts/app'
import { useDialogService } from '@/services/dialogService'
import { useNodeDefStore } from '@/stores/nodeDefStore'
import { useToastStore } from '@/stores/toastStore'
Expand All @@ -15,6 +11,11 @@ import { ComfyExtension } from '@/types/comfy'
import { ComfyLink, ComfyNode, ComfyWorkflowJSON } from '@/types/comfyWorkflow'
import { deserialiseAndCreate, serialise } from '@/utils/vintageClipboard'

import { api } from '../../scripts/api'
import { app } from '../../scripts/app'
import { ManageGroupDialog } from './groupNodeManage'
import { mergeIfValid } from './widgetInputs'

type GroupNodeWorkflowData = {
external: ComfyLink[]
links: ComfyLink[]
Expand Down
8 changes: 2 additions & 6 deletions src/extensions/core/rerouteNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
import type { IContextMenuValue } from '@comfyorg/litegraph'
import { LGraphCanvas, LGraphNode, LiteGraph } from '@comfyorg/litegraph'

import {
getWidgetConfig,
mergeIfValid,
setWidgetConfig
} from '@/nodes/PrimitiveNode'
import { app } from '@/scripts/app'
import { app } from '../../scripts/app'
import { getWidgetConfig, mergeIfValid, setWidgetConfig } from './widgetInputs'

// Node that allows you to redirect connections for cleaner graphs

Expand Down
Loading

0 comments on commit 064e982

Please sign in to comment.