LCOV - code coverage report
Current view: top level - src/platform/workflow/deploy/composables - useDeployToComfyApiDialog.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 75.0 % 8 6
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : import DeployToComfyApiCard from '@/platform/workflow/deploy/components/DeployToComfyApiCard.vue'
       2              : import {
       3              :   DEPLOY_VIDEO_POSTER_SRC,
       4              :   DEPLOY_VIDEO_SOURCES
       5              : } from '@/platform/workflow/deploy/constants'
       6              : import { useDialogStore } from '@/stores/dialogStore'
       7              : 
       8            1 : const DIALOG_KEY = 'global-deploy-to-comfy-api'
       9              : 
      10              : export interface DeployToComfyApiDialogOptions {
      11              :   deploysInstallation?: boolean
      12              : }
      13              : 
      14            1 : export function useDeployToComfyApiDialog() {
      15            1 :   const dialogStore = useDialogStore()
      16              : 
      17            0 :   function hide() {
      18            0 :     dialogStore.closeDialog({ key: DIALOG_KEY })
      19              :   }
      20              : 
      21            1 :   function show({ deploysInstallation }: DeployToComfyApiDialogOptions = {}) {
      22            1 :     dialogStore.showDialog({
      23              :       key: DIALOG_KEY,
      24              :       component: DeployToComfyApiCard,
      25              :       props: {
      26              :         videoSources: DEPLOY_VIDEO_SOURCES,
      27              :         posterSrc: DEPLOY_VIDEO_POSTER_SRC,
      28              :         deploysInstallation,
      29              :         onDone: hide,
      30              :         onDismiss: hide
      31              :       },
      32              :       dialogComponentProps: {
      33              :         dismissOnPointerDownOutside: true,
      34              :         headless: true
      35              :       }
      36              :     })
      37              :   }
      38              : 
      39            1 :   return { show, hide }
      40              : }
        

Generated by: LCOV version 2.0-1