mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
chore: update import statements to use 'type' for type-only imports for better clarity and performance
refactor(collect-i18n-node-defs): clean up comments for clarity on API endpoint behavior
This commit is contained in:
@@ -19,15 +19,7 @@ test('collect-i18n-node-defs', async ({ comfyPage }) => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// Don't mock the object_info API endpoint - let it hit the actual backend
|
// Note: Don't mock the object_info API endpoint - let it hit the actual backend
|
||||||
// Comment out the mock to use real backend data
|
|
||||||
// await comfyPage.page.route('**/api/object_info', async (route) => {
|
|
||||||
// await route.fulfill({
|
|
||||||
// status: 200,
|
|
||||||
// contentType: 'application/json',
|
|
||||||
// body: JSON.stringify({})
|
|
||||||
// })
|
|
||||||
// })
|
|
||||||
|
|
||||||
const nodeDefs: ComfyNodeDefImpl[] = (
|
const nodeDefs: ComfyNodeDefImpl[] = (
|
||||||
Object.values(
|
Object.values(
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import { groupBy } from 'es-toolkit/compat'
|
|||||||
import { computed, onMounted } from 'vue'
|
import { computed, onMounted } from 'vue'
|
||||||
|
|
||||||
import { useWorkflowPacks } from '@/composables/nodePack/useWorkflowPacks'
|
import { useWorkflowPacks } from '@/composables/nodePack/useWorkflowPacks'
|
||||||
import { type NodeProperty } from '@/lib/litegraph/src/LGraphNode'
|
import type { NodeProperty } from '@/lib/litegraph/src/LGraphNode'
|
||||||
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
||||||
import { useNodeDefStore } from '@/stores/nodeDefStore'
|
import { useNodeDefStore } from '@/stores/nodeDefStore'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { computed, onUnmounted, ref } from 'vue'
|
import { computed, onUnmounted, ref } from 'vue'
|
||||||
|
|
||||||
import { useNodePacks } from '@/composables/nodePack/useNodePacks'
|
import { useNodePacks } from '@/composables/nodePack/useNodePacks'
|
||||||
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
import { type ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
import { type ComfyWorkflowJSON } from '@/schemas/comfyWorkflowSchema'
|
||||||
import { app } from '@/scripts/app'
|
import { app } from '@/scripts/app'
|
||||||
import { useComfyRegistryStore } from '@/stores/comfyRegistryStore'
|
import { useComfyRegistryStore } from '@/stores/comfyRegistryStore'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||||
|
|
||||||
import { useNodeChatHistory } from '@/composables/node/useNodeChatHistory'
|
import { useNodeChatHistory } from '@/composables/node/useNodeChatHistory'
|
||||||
import { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
import type { LGraphNode } from '@/lib/litegraph/src/litegraph'
|
||||||
|
|
||||||
vi.mock(
|
vi.mock(
|
||||||
'@/renderer/extensions/vueNodes/widgets/composables/useChatHistoryWidget',
|
'@/renderer/extensions/vueNodes/widgets/composables/useChatHistoryWidget',
|
||||||
|
|||||||
Reference in New Issue
Block a user