Merge Task 4: Convert app.ts imports to import type

Amp-Thread-ID: https://ampcode.com/threads/T-019bfe1a-8ac4-753e-a612-040f36dc66b9
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Alexander Brown
2026-01-26 22:32:25 -08:00
5 changed files with 8 additions and 11 deletions

View File

@@ -8,7 +8,8 @@ import type {
import { LiteGraph } from '@/lib/litegraph/src/litegraph'
import { useToastStore } from '@/platform/updates/common/toastStore'
import { type ComfyApp, app } from '../../scripts/app'
import type { ComfyApp } from '../../scripts/app'
import { app } from '../../scripts/app'
import { $el } from '../../scripts/ui'
import { ComfyDialog } from '../../scripts/ui/dialog'
import { DraggableList } from '../../scripts/ui/draggableList'

View File

@@ -1,10 +1,10 @@
import { createEventHook } from '@vueuse/core'
export interface UserIdentity {
interface UserIdentity {
userId: string
}
export interface AuthEvent {
interface AuthEvent {
event: 'login' | 'register' | 'logout'
method: 'email' | 'google' | 'github'
isNewUser: boolean

View File

@@ -9,7 +9,8 @@ import { useCommandStore } from '@/stores/commandStore'
import { useWorkspaceStore } from '@/stores/workspaceStore'
import { api } from './api'
import { ComfyApp, app } from './app'
import type { ComfyApp } from './app'
import { app } from './app'
import { ComfyDialog as _ComfyDialog } from './ui/dialog'
import { ComfySettingsDialog } from './ui/settings'
import { toggleSwitch } from './ui/toggleSwitch'

View File

@@ -20,11 +20,6 @@ import type {
ExecutionErrorDialogInput
} from './dialogTypes'
export type {
ConfirmationDialogType,
ExecutionErrorDialogInput
} from './dialogTypes'
export const useDialogService = () => {
const dialogStore = useDialogStore()

View File

@@ -1,7 +1,7 @@
import _ from 'es-toolkit/compat'
import { CONFIG, GET_CONFIG } from '@/lib/litegraph/constants'
export { CONFIG, GET_CONFIG }
import { GET_CONFIG } from '@/lib/litegraph/constants'
import { downloadFile } from '@/base/common/downloadUtil'
import { useSelectedLiteGraphItems } from '@/composables/canvas/useSelectedLiteGraphItems'
import { useSubgraphOperations } from '@/composables/graph/useSubgraphOperations'