Skip to content

Commit 371f3f9

Browse files
committed
💚 make linter happy
1 parent c202bae commit 371f3f9

File tree

5 files changed

+40
-41
lines changed

5 files changed

+40
-41
lines changed

personalization-webcomponents/index-my-checklists.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
</strong>
3737
</noscript>
3838
<div>
39-
<my-checklists
40-
checklist-detail-url="./index-checklist-detail.html"
41-
></my-checklists>
39+
<my-checklists
40+
checklist-detail-url="./index-checklist-detail.html"
41+
></my-checklists>
4242
</div>
4343
</body>
4444
</html>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type DummyChecklistItem from "@/api/dummyservice/DummyChecklistItem.ts";
22

33
export default interface DummyChecklist {
4-
id: string;
5-
title: string;
6-
lhmExtId: string;
7-
items: DummyChecklistItem[];
8-
lastUpdated: Date;
4+
id: string;
5+
title: string;
6+
lhmExtId: string;
7+
items: DummyChecklistItem[];
8+
lastUpdated: Date;
99
}

personalization-webcomponents/src/components/ChecklistCard.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ import { computed } from "vue";
7373
7474
import ChecklistitemListitem from "@/components/checklistitem-listitem.vue";
7575
import MucChip from "@/components/common/muc-chip.vue";
76-
import {getChecklistIconByTitle, QUERY_PARAM_CHECKLIST_ID} from "@/util/constants.ts";
76+
import {
77+
getChecklistIconByTitle,
78+
QUERY_PARAM_CHECKLIST_ID,
79+
} from "@/util/constants.ts";
7780
7881
const props = defineProps<{
7982
checklist: DummyChecklist;
@@ -95,7 +98,6 @@ const firstThreeItemsSortedByChecked = computed(() => {
9598
return sortedItems.slice(0, 3);
9699
});
97100
98-
99101
function gotoChecklist(checklistId: string) {
100102
location.href = `${props.checklistDetailUrl}?${QUERY_PARAM_CHECKLIST_ID}=${checklistId}`;
101103
}

personalization-webcomponents/src/components/common/skeleton-loader.vue

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import { MucCard } from "@muenchen/muc-patternlab-vue";
88
<div class="skeleton-wrapper">
99
<div class="skeleton-col skeleton-details">
1010
<div class="skeleton-row skeleton-name">
11-
<span
12-
class="skeleton-name-text skeleton-loader"
13-
/>
11+
<span class="skeleton-name-text skeleton-loader" />
1412
</div>
1513
</div>
1614
</div>
@@ -19,14 +17,10 @@ import { MucCard } from "@muenchen/muc-patternlab-vue";
1917
<div class="skeleton-wrapper">
2018
<div class="skeleton-col skeleton-details">
2119
<div class="skeleton-row skeleton-description">
22-
<span
23-
class="skeleton-description-text skeleton-loader"
24-
/>
20+
<span class="skeleton-description-text skeleton-loader" />
2521
</div>
2622
<div class="skeleton-row skeleton-description">
27-
<span
28-
class="skeleton-description-text skeleton-loader"
29-
/>
23+
<span class="skeleton-description-text skeleton-loader" />
3024
</div>
3125
</div>
3226
</div>
@@ -74,7 +68,10 @@ import { MucCard } from "@muenchen/muc-patternlab-vue";
7468
margin-bottom: 13px;
7569
}
7670
77-
.skeleton-wrapper .skeleton-details .skeleton-description .skeleton-description-text {
71+
.skeleton-wrapper
72+
.skeleton-details
73+
.skeleton-description
74+
.skeleton-description-text {
7875
font-size: 13px;
7976
line-height: 18px;
8077
color: #666666;

personalization-webcomponents/src/my-checklists.vue

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
<template>
22
<main class="container">
33
<!-- eslint-disable-next-line vue/no-v-html -->
4-
<div v-html="mucIconsSprite"/>
4+
<div v-html="mucIconsSprite" />
55
<!-- eslint-disable-next-line vue/no-v-html -->
6-
<div v-html="customIconsSprite"/>
6+
<div v-html="customIconsSprite" />
77
<h2 style="display: flex; align-items: center; margin-bottom: 24px">
88
<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"
1111
></muc-icon>
1212
Aktive Checklisten ({{ checklists.length }})
1313
</h2>
1414
<muc-card-container
15-
v-if="loading"
16-
class="checklist-card-container"
15+
v-if="loading"
16+
class="checklist-card-container"
1717
>
1818
<skeleton-loader
19-
v-for="elem in [1, 2, 3, 4]"
20-
:key="elem"
19+
v-for="elem in [1, 2, 3, 4]"
20+
:key="elem"
2121
>
2222
</skeleton-loader>
2323
</muc-card-container>
2424
<muc-card-container
25-
v-else
26-
class="checklist-card-container"
25+
v-else
26+
class="checklist-card-container"
2727
>
2828
<checklist-card
29-
v-for="(checklist, index) in checklists"
30-
:key="index"
31-
:checklist="checklist"
32-
:checklist-detail-url="checklistDetailUrl"
29+
v-for="(checklist, index) in checklists"
30+
:key="index"
31+
:checklist="checklist"
32+
:checklist-detail-url="checklistDetailUrl"
3333
>
3434
</checklist-card>
3535
</muc-card-container>
@@ -39,10 +39,10 @@
3939
<script setup lang="ts">
4040
import type DummyChecklist from "@/api/dummyservice/DummyChecklist.ts";
4141
42-
import {MucCardContainer, MucIcon} from "@muenchen/muc-patternlab-vue";
42+
import { MucCardContainer, MucIcon } from "@muenchen/muc-patternlab-vue";
4343
import customIconsSprite from "@muenchen/muc-patternlab-vue/assets/icons/custom-icons.svg?raw";
4444
import mucIconsSprite from "@muenchen/muc-patternlab-vue/assets/icons/muc-icons.svg?raw";
45-
import {onMounted, ref} from "vue";
45+
import { onMounted, ref } from "vue";
4646
4747
import DummyChecklistService from "@/api/dummyservice/DummyChecklistService.ts";
4848
import ChecklistCard from "@/components/ChecklistCard.vue";
@@ -60,11 +60,11 @@ onMounted(() => {
6060
loading.value = true;
6161
const dcl = new DummyChecklistService();
6262
dcl
63-
.getChecklists()
64-
.then((checklist) => {
65-
checklists.value = checklist;
66-
})
67-
.finally(() => (loading.value = false));
63+
.getChecklists()
64+
.then((checklist) => {
65+
checklists.value = checklist;
66+
})
67+
.finally(() => (loading.value = false));
6868
});
6969
</script>
7070

0 commit comments

Comments
 (0)