Keep shim of several legacy components (#1796)

This commit is contained in:
Chenlei Hu
2024-12-04 12:45:38 -08:00
committed by GitHub
parent 3745d8d791
commit 73396784a8
2 changed files with 4 additions and 11 deletions

View File

@@ -15,14 +15,12 @@ import {
getLatentMetadata
} from './pnginfo'
import { createImageHost, calculateImageGrid } from './ui/imagePreview'
import { DraggableList } from './ui/draggableList'
import { applyTextReplacements, addStylesheet } from './utils'
import type { ComfyExtension, MissingNodeType } from '@/types/comfy'
import {
type ComfyWorkflowJSON,
type NodeId,
validateComfyWorkflow
} from '../types/comfyWorkflow'
} from '@/types/comfyWorkflow'
import type { ComfyNodeDef } from '@/types/apiTypes'
import { adjustColor, ColorAdjustOptions } from '@/utils/colorUtil'
import { ComfyAppMenu } from './ui/menu/index'
@@ -114,14 +112,6 @@ export class ComfyApp {
static open_maskeditor = null
static clipspace_return_node = null
// Force vite to import utils.ts as part of index.
// Force import of DraggableList.
static utils = {
applyTextReplacements,
addStylesheet,
DraggableList
}
vueAppReady: boolean
ui: ComfyUI
extensions: ComfyExtension[]

View File

@@ -7,6 +7,9 @@ import './menu.css'
export { ComfyButton } from '../components/button'
export { ComfySplitButton } from '../components/splitButton'
export { ComfyPopup } from '../components/popup'
export { ComfyAsyncDialog } from '@/scripts/ui/components/asyncDialog'
export { DraggableList } from '@/scripts/ui/draggableList'
export { applyTextReplacements, addStylesheet } from '@/scripts/utils'
export class ComfyAppMenu {
app: ComfyApp