Skip to content

Commit

Permalink
[Refactor] Move node composables to subfolder (#2712)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-byrne authored Feb 24, 2025
1 parent 9cb993c commit d340e63
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { LGraphNode } from '@comfyorg/litegraph'

import { useChainCallback } from './functional/useChainCallback'
import { useChainCallback } from '@/composables/functional/useChainCallback'

interface FileInputOptions {
accept?: string
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { LGraphNode } from '@comfyorg/litegraph'

import { useNodeDragAndDrop } from '@/composables/useNodeDragAndDrop'
import { useNodeFileInput } from '@/composables/useNodeFileInput'
import { useNodePaste } from '@/composables/useNodePaste'
import { useNodeDragAndDrop } from '@/composables/node/useNodeDragAndDrop'
import { useNodeFileInput } from '@/composables/node/useNodeFileInput'
import { useNodePaste } from '@/composables/node/useNodePaste'
import { api } from '@/scripts/api'
import { useToastStore } from '@/stores/toastStore'

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/composables/widgets/useImageUploadWidget.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { LGraphNode } from '@comfyorg/litegraph'
import { IComboWidget } from '@comfyorg/litegraph/dist/types/widgets'

import { useNodeImage, useNodeVideo } from '@/composables/useNodeImage'
import { useNodeImageUpload } from '@/composables/useNodeImageUpload'
import { useNodeImage, useNodeVideo } from '@/composables/node/useNodeImage'
import { useNodeImageUpload } from '@/composables/node/useNodeImageUpload'
import { useValueTransform } from '@/composables/useValueTransform'
import type { ComfyWidgetConstructor } from '@/scripts/widgets'
import { useNodeOutputStore } from '@/stores/imagePreviewStore'
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/core/uploadAudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import type { IWidget } from '@comfyorg/litegraph'
import type { IStringWidget } from '@comfyorg/litegraph/dist/types/widgets'

import { useNodeFileInput } from '@/composables/useNodeFileInput'
import { useNodeFileInput } from '@/composables/node/useNodeFileInput'
import type { DOMWidget } from '@/scripts/domWidget'
import { useToastStore } from '@/stores/toastStore'
import { ComfyNodeDef } from '@/types/apiTypes'
Expand Down
2 changes: 1 addition & 1 deletion src/services/litegraphService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { Vector2 } from '@comfyorg/litegraph'
import { IBaseWidget, IWidget } from '@comfyorg/litegraph/dist/types/widgets'

import { useNodeImage, useNodeVideo } from '@/composables/useNodeImage'
import { useNodeImage, useNodeVideo } from '@/composables/node/useNodeImage'
import { st } from '@/i18n'
import { ANIM_PREVIEW_WIDGET, ComfyApp, app } from '@/scripts/app'
import { $el } from '@/scripts/ui'
Expand Down

0 comments on commit d340e63

Please sign in to comment.