1
1
<template >
2
2
<main class =" container" >
3
3
<!-- eslint-disable-next-line vue/no-v-html -->
4
- <div v-html =" mucIconsSprite" />
4
+ <div v-html =" mucIconsSprite" />
5
5
<!-- eslint-disable-next-line vue/no-v-html -->
6
- <div v-html =" customIconsSprite" />
6
+ <div v-html =" customIconsSprite" />
7
7
<h2 style =" display : flex ; align-items : center ; margin-bottom : 24px " >
8
8
<muc-icon
9
- style =" width : 32px ; height : 32px ; margin-right : 8px "
10
- icon =" order-bool-ascending"
9
+ style =" width : 32px ; height : 32px ; margin-right : 8px "
10
+ icon =" order-bool-ascending"
11
11
></muc-icon >
12
12
Aktive Checklisten ({{ checklists.length }})
13
13
</h2 >
14
- <muc-card-container class =" checklist-card-container" >
15
- <div v-if =" loading" >
16
- <skeleton-loader
14
+ <muc-card-container
15
+ v-if =" loading"
16
+ class =" checklist-card-container"
17
+ >
18
+ <skeleton-loader
17
19
v-for =" elem in [1, 2, 3, 4]"
18
20
:key =" elem"
19
- >
20
- </skeleton-loader >
21
- </div >
22
- <div v-else >
23
- <checklist-card
21
+ >
22
+ </skeleton-loader >
23
+ </muc-card-container >
24
+ <muc-card-container
25
+ v-else
26
+ class =" checklist-card-container"
27
+ >
28
+ <checklist-card
24
29
v-for =" (checklist, index) in checklists"
25
30
:key =" index"
26
31
:checklist =" checklist"
27
- >
28
- </checklist-card >
29
- </div >
30
32
:checklist-detail-url =" checklistDetailUrl"
31
33
>
34
+ </checklist-card >
32
35
</muc-card-container >
33
36
</main >
34
37
</template >
35
38
36
39
<script setup lang="ts">
37
40
import type DummyChecklist from " @/api/dummyservice/DummyChecklist.ts" ;
38
41
39
- import { MucCardContainer , MucIcon } from " @muenchen/muc-patternlab-vue" ;
42
+ import {MucCardContainer , MucIcon } from " @muenchen/muc-patternlab-vue" ;
40
43
import customIconsSprite from " @muenchen/muc-patternlab-vue/assets/icons/custom-icons.svg?raw" ;
41
44
import mucIconsSprite from " @muenchen/muc-patternlab-vue/assets/icons/muc-icons.svg?raw" ;
42
- import { onMounted , ref } from " vue" ;
45
+ import {onMounted , ref } from " vue" ;
43
46
44
47
import DummyChecklistService from " @/api/dummyservice/DummyChecklistService.ts" ;
45
48
import ChecklistCard from " @/components/ChecklistCard.vue" ;
@@ -57,11 +60,11 @@ onMounted(() => {
57
60
loading .value = true ;
58
61
const dcl = new DummyChecklistService ();
59
62
dcl
60
- .getChecklists ()
61
- .then ((checklist ) => {
62
- checklists .value = checklist ;
63
- })
64
- .finally (() => (loading .value = false ));
63
+ .getChecklists ()
64
+ .then ((checklist ) => {
65
+ checklists .value = checklist ;
66
+ })
67
+ .finally (() => (loading .value = false ));
65
68
});
66
69
</script >
67
70
0 commit comments