-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathDebugEmptyView.vue
57 lines (53 loc) · 1.69 KB
/
DebugEmptyView.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<template>
<div class="flex flex-col my-45px items-center">
<div class="flex flex-col items-center justify-evenly">
<div><i-cy-box-open_x48 class="icon-dark-gray-500 icon-light-indigo-100" /></div>
<div class="flex flex-col mx-[20%] mt-25px mb-20px items-center">
<div class="font-medium my-5px text-center text-gray-900 text-18px">
{{ title }}
</div>
<div class="font-normal my-5px text-center leading-relaxed text-16px text-gray-600">
{{ description }}
</div>
</div>
<slot name="cta" />
</div>
<div class="flex flex-col my-40px w-full items-center">
<DebugTestLoadingContainer
width-class="w-[75%]"
dot-class="icon-light-gray-200"
:rows="loadingRows"
>
<template #header>
<div class="bg-white border rounded-md flex border-gray-100 w-max p-5px text-14px text-gray-700">
<div><i-cy-status-failed_x12 /></div>
<div class="bg-gray-700 h-1px mx-5px mt-7px w-5px" />
<div
v-if="exampleTestName"
class="bg-gray-100 h-13px mx-1 pb-1px w-1px"
/>
<div
v-if="exampleTestName"
class="mx-1 text-14px text-gray-700"
>
{{ exampleTestName }}
</div>
</div>
</template>
</DebugTestLoadingContainer>
</div>
</div>
</template>
<script lang="ts" setup>
import DebugTestLoadingContainer from './DebugTestLoadingContainer.vue'
defineProps<{
title: string
description?: string
exampleTestName?: string
}>()
const loadingRows = [
['w-40px', 'w-[40%]'],
['w-40px', 'w-[50%]'],
['w-40px', 'w-[65%]'],
]
</script>