LCOV - code coverage report
Current view: top level - src/platform/workspace/components - DeploymentStatusIcon.vue Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 0.0 % 2 0
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : <template>
       2            0 :   <span class="relative flex shrink-0">
       3              :     <i
       4              :       :class="
       5              :         cn(
       6              :           tone === undefined ? 'icon-[lucide--cloud]' : 'icon-[lucide--server]',
       7              :           iconClass
       8              :         )
       9              :       "
      10              :       aria-hidden="true"
      11              :     />
      12              :     <span
      13              :       v-if="tone"
      14              :       :class="
      15              :         cn(
      16              :           'absolute -right-0.5 -bottom-0.5 size-1.5 rounded-full',
      17              :           TONE_CLASS[tone],
      18              :           ringClass
      19              :         )
      20              :       "
      21              :       :data-tone="tone"
      22              :       aria-hidden="true"
      23              :     />
      24              :   </span>
      25              : </template>
      26              : 
      27              : <script setup lang="ts">
      28              : import { cn } from '@comfyorg/tailwind-utils'
      29              : 
      30              : import type { DeploymentStatusTone } from '@/platform/workspace/composables/useDeploymentLabels'
      31              : 
      32              : const { tone, iconClass, ringClass } = defineProps<{
      33              :   /** The deployment's status; leave it out for Comfy Cloud. */
      34              :   tone?: DeploymentStatusTone
      35              :   iconClass?: string
      36              :   ringClass?: string
      37              : }>()
      38              : 
      39            0 : const TONE_CLASS: Record<DeploymentStatusTone, string> = {
      40              :   ready: 'bg-success',
      41              :   pending: 'bg-primary',
      42              :   failed: 'bg-warning',
      43              :   stopped: 'bg-muted-foreground'
      44              : }
      45              : </script>
        

Generated by: LCOV version 2.0-1