mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 22:59:14 +00:00
[Refactor/TS] Simplify node filter logic (#3275)
This commit is contained in:
@@ -14,19 +14,19 @@ import type {
|
||||
ComfyNodeDef as ComfyNodeDefV1,
|
||||
ComfyOutputTypesSpec as ComfyOutputSpecV1
|
||||
} from '@/schemas/nodeDefSchema'
|
||||
import {
|
||||
NodeSearchService,
|
||||
type SearchAuxScore
|
||||
} from '@/services/nodeSearchService'
|
||||
import { NodeSearchService } from '@/services/nodeSearchService'
|
||||
import {
|
||||
type NodeSource,
|
||||
NodeSourceType,
|
||||
getNodeSource
|
||||
} from '@/types/nodeSource'
|
||||
import type { TreeNode } from '@/types/treeExplorerTypes'
|
||||
import type { FuseSearchable, SearchAuxScore } from '@/utils/fuseUtil'
|
||||
import { buildTree } from '@/utils/treeUtil'
|
||||
|
||||
export class ComfyNodeDefImpl implements ComfyNodeDefV1, ComfyNodeDefV2 {
|
||||
export class ComfyNodeDefImpl
|
||||
implements ComfyNodeDefV1, ComfyNodeDefV2, FuseSearchable
|
||||
{
|
||||
// ComfyNodeDef fields (V1)
|
||||
readonly name: string
|
||||
readonly display_name: string
|
||||
|
||||
Reference in New Issue
Block a user