Skip to content

Commit a6bce5c

Browse files
committed
lint: Fix import warnings
1 parent 16e6a52 commit a6bce5c

File tree

27 files changed

+82
-70
lines changed

27 files changed

+82
-70
lines changed

src/components/searchbox/NodeSearchItem.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
5656
import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
5757
import { useNodeFrequencyStore } from '@/stores/nodeDefStore'
5858
import { NodeSourceType } from '@/types/nodeSource'
59-
import { highlightQuery } from '@/utils/formatUtil'
60-
import { formatNumberWithSuffix } from '@/utils/formatUtil'
59+
import { formatNumberWithSuffix, highlightQuery } from '@/utils/formatUtil'
6160
6261
const settingStore = useSettingStore()
6362
const showCategory = computed(() =>

src/components/sidebar/tabs/ModelLibrarySidebarTab.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ import { useLitegraphService } from '@/services/litegraphService'
5959
import type { ComfyModelDef, ModelFolder } from '@/stores/modelStore'
6060
import { ResourceState, useModelStore } from '@/stores/modelStore'
6161
import { useModelToNodeStore } from '@/stores/modelToNodeStore'
62-
import type { TreeNode } from '@/types/treeExplorerTypes'
63-
import type { TreeExplorerNode } from '@/types/treeExplorerTypes'
62+
import type { TreeExplorerNode, TreeNode } from '@/types/treeExplorerTypes'
6463
import { isElectron } from '@/utils/envUtil'
6564
import { buildTree } from '@/utils/treeUtil'
6665

src/components/sidebar/tabs/NodeLibrarySidebarTab.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ import type {
156156
GroupingStrategyId,
157157
SortingStrategyId
158158
} from '@/types/nodeOrganizationTypes'
159-
import type { TreeNode } from '@/types/treeExplorerTypes'
160-
import type { TreeExplorerNode } from '@/types/treeExplorerTypes'
159+
import type { TreeExplorerNode, TreeNode } from '@/types/treeExplorerTypes'
161160
import type { FuseFilterWithValue } from '@/utils/fuseUtil'
162161
163162
import NodeBookmarkTreeExplorer from './nodeLibrary/NodeBookmarkTreeExplorer.vue'

src/components/sidebar/tabs/WorkflowsSidebarTab.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,12 @@ import { useTreeExpansion } from '@/composables/useTreeExpansion'
144144
import { useSettingStore } from '@/platform/settings/settingStore'
145145
import { useWorkflowService } from '@/platform/workflow/core/services/workflowService'
146146
import {
147+
ComfyWorkflow,
147148
useWorkflowBookmarkStore,
148149
useWorkflowStore
149150
} from '@/platform/workflow/management/stores/workflowStore'
150-
import { ComfyWorkflow } from '@/platform/workflow/management/stores/workflowStore'
151151
import { useWorkspaceStore } from '@/stores/workspaceStore'
152-
import type { TreeNode } from '@/types/treeExplorerTypes'
153-
import type { TreeExplorerNode } from '@/types/treeExplorerTypes'
152+
import type { TreeExplorerNode, TreeNode } from '@/types/treeExplorerTypes'
154153
import { appendJsonExt } from '@/utils/formatUtil'
155154
import { buildTree, sortedTree } from '@/utils/treeUtil'
156155

src/components/sidebar/tabs/nodeLibrary/NodeBookmarkTreeExplorer.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ import { useTreeExpansion } from '@/composables/useTreeExpansion'
3434
import { useLitegraphService } from '@/services/litegraphService'
3535
import { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'
3636
import type { ComfyNodeDefImpl } from '@/stores/nodeDefStore'
37-
import type { TreeNode } from '@/types/treeExplorerTypes'
3837
import type {
3938
RenderedTreeExplorerNode,
4039
TreeExplorerDragAndDropData,
41-
TreeExplorerNode
40+
TreeExplorerNode,
41+
TreeNode
4242
} from '@/types/treeExplorerTypes'
4343
4444
const props = defineProps<{

src/components/topbar/WorkflowTabs.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ import { useOverflowObserver } from '@/composables/element/useOverflowObserver'
8484
import { useSettingStore } from '@/platform/settings/settingStore'
8585
import { useWorkflowService } from '@/platform/workflow/core/services/workflowService'
8686
import type { ComfyWorkflow } from '@/platform/workflow/management/stores/workflowStore'
87-
import { useWorkflowBookmarkStore } from '@/platform/workflow/management/stores/workflowStore'
88-
import { useWorkflowStore } from '@/platform/workflow/management/stores/workflowStore'
87+
import {
88+
useWorkflowBookmarkStore,
89+
useWorkflowStore
90+
} from '@/platform/workflow/management/stores/workflowStore'
8991
import { useCommandStore } from '@/stores/commandStore'
9092
import { useWorkspaceStore } from '@/stores/workspaceStore'
9193
import { isElectron } from '@/utils/envUtil'

src/composables/graph/useGraphNodeManager.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
import { reactive } from 'vue'
66

77
import { useChainCallback } from '@/composables/functional/useChainCallback'
8-
import type { INodeOutputSlot } from '@/lib/litegraph/src/interfaces'
9-
import type { INodeInputSlot } from '@/lib/litegraph/src/interfaces'
8+
import type {
9+
INodeInputSlot,
10+
INodeOutputSlot
11+
} from '@/lib/litegraph/src/interfaces'
1012
import { useLayoutMutations } from '@/renderer/core/layout/operations/layoutMutations'
1113
import { LayoutSource } from '@/renderer/core/layout/types'
1214
import type { InputSpec } from '@/schemas/nodeDef/nodeDefSchemaV2'

src/lib/litegraph/src/LGraphCanvas.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ import {
8585
TitleMode
8686
} from './types/globalEnums'
8787
import type { ClipboardItems, SubgraphIO } from './types/serialisation'
88-
import type { NeverNever } from './types/utility'
89-
import type { PickNevers } from './types/utility'
88+
import type { NeverNever, PickNevers } from './types/utility'
9089
import type { IBaseWidget } from './types/widgets'
9190
import { alignNodes, distributeNodes, getBoundaryNodes } from './utils/arrange'
9291
import { findFirstNode, getAllNestedItems } from './utils/collections'

src/lib/litegraph/src/canvas/FloatingRenderLink.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import {
88
import type { CustomEventTarget } from '@/lib/litegraph/src/infrastructure/CustomEventTarget'
99
import type { LinkConnectorEventMap } from '@/lib/litegraph/src/infrastructure/LinkConnectorEventMap'
1010
import type {
11+
INodeInputSlot,
1112
INodeOutputSlot,
12-
LinkNetwork
13+
LinkNetwork,
14+
Point
1315
} from '@/lib/litegraph/src/interfaces'
14-
import type { INodeInputSlot } from '@/lib/litegraph/src/interfaces'
15-
import type { Point } from '@/lib/litegraph/src/interfaces'
1616
import type { SubgraphInput } from '@/lib/litegraph/src/subgraph/SubgraphInput'
1717
import type { SubgraphOutput } from '@/lib/litegraph/src/subgraph/SubgraphOutput'
1818
import { LinkDirection } from '@/lib/litegraph/src/types/globalEnums'

src/lib/litegraph/src/canvas/LinkConnector.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ import { CustomEventTarget } from '@/lib/litegraph/src/infrastructure/CustomEven
99
import type { LinkConnectorEventMap } from '@/lib/litegraph/src/infrastructure/LinkConnectorEventMap'
1010
import type {
1111
ConnectingLink,
12+
INodeInputSlot,
13+
INodeOutputSlot,
1214
ItemLocator,
1315
LinkNetwork,
1416
LinkSegment
1517
} from '@/lib/litegraph/src/interfaces'
16-
import type {
17-
INodeInputSlot,
18-
INodeOutputSlot
19-
} from '@/lib/litegraph/src/interfaces'
2018
import { EmptySubgraphInput } from '@/lib/litegraph/src/subgraph/EmptySubgraphInput'
2119
import { EmptySubgraphOutput } from '@/lib/litegraph/src/subgraph/EmptySubgraphOutput'
2220
import { Subgraph } from '@/lib/litegraph/src/subgraph/Subgraph'

0 commit comments

Comments
 (0)