Skip to content

Commit a65d0f4

Browse files
committed
Minor: Format code
1 parent d51b488 commit a65d0f4

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

assets/vue/components/course/CourseCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const props = defineProps({
9191
})
9292
9393
const platformConfigStore = usePlatformConfig()
94-
const showCourseDuration = computed(() => 'true' === platformConfigStore.getSetting("course.show_course_duration"))
94+
const showCourseDuration = computed(() => "true" === platformConfigStore.getSetting("course.show_course_duration"))
9595
9696
const teachers = computed(() => {
9797
if (props.session?.courseCoachesSubscriptions) {

assets/vue/views/course/CatalogueCourses.vue

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
<template #loading>
4141
{{ $t("Loading courses. Please wait.") }}
4242
</template>
43-
<Column header="" style="min-width: 5rem">
43+
<Column
44+
header=""
45+
style="min-width: 5rem"
46+
>
4447
<template #body="{ data }">
4548
<img
4649
:alt="data.title"
@@ -53,7 +56,7 @@
5356
:header="$t('Title')"
5457
:sortable="true"
5558
field="title"
56-
style="min-width: 8rem; text-align: center;"
59+
style="min-width: 8rem; text-align: center"
5760
>
5861
<template #body="{ data }">
5962
{{ data.title }}
@@ -64,7 +67,7 @@
6467
:header="$t('Course description')"
6568
:sortable="true"
6669
field="description"
67-
style="min-width: 8rem; text-align: center;"
70+
style="min-width: 8rem; text-align: center"
6871
>
6972
<template #body="{ data }">
7073
{{ data.description }}
@@ -75,10 +78,13 @@
7578
:header="$t('Duration')"
7679
:sortable="true"
7780
field="duration"
78-
style="min-width: 8rem; text-align: center;"
81+
style="min-width: 8rem; text-align: center"
7982
>
8083
<template #body="{ data }">
81-
<div v-if="data.duration" class="course-duration">
84+
<div
85+
v-if="data.duration"
86+
class="course-duration"
87+
>
8288
{{ (data.duration / 60 / 60).toFixed(2) }} hours
8389
</div>
8490
</template>
@@ -88,19 +94,19 @@
8894
:header="$t('Teachers')"
8995
:sortable="true"
9096
field="teachers"
91-
style="min-width: 10rem; text-align: center;"
97+
style="min-width: 10rem; text-align: center"
9298
>
9399
<template #body="{ data }">
94100
<div v-if="data.teachers && data.teachers.length > 0">
95-
{{ data.teachers.map(teacher => teacher.user.fullName).join(', ') }}
101+
{{ data.teachers.map((teacher) => teacher.user.fullName).join(", ") }}
96102
</div>
97103
</template>
98104
</Column>
99105
<Column
100106
:header="$t('Language')"
101107
:sortable="true"
102108
field="courseLanguage"
103-
style="min-width: 5rem; text-align: center;"
109+
style="min-width: 5rem; text-align: center"
104110
>
105111
<template #body="{ data }">
106112
{{ data.courseLanguage }}
@@ -110,7 +116,7 @@
110116
:header="$t('Categories')"
111117
:sortable="true"
112118
field="categories"
113-
style="min-width: 8rem; text-align: center;"
119+
style="min-width: 8rem; text-align: center"
114120
>
115121
<template #body="{ data }">
116122
<span
@@ -127,7 +133,7 @@
127133
:header="$t('Ranking')"
128134
:sortable="true"
129135
field="trackCourseRanking.realTotalScore"
130-
style="min-width: 10rem; text-align: center;"
136+
style="min-width: 10rem; text-align: center"
131137
>
132138
<template #body="{ data }">
133139
<Rating
@@ -142,7 +148,7 @@
142148
<Column
143149
field="link"
144150
header=""
145-
style="min-width: 10rem; text-align: center;"
151+
style="min-width: 10rem; text-align: center"
146152
>
147153
<template #body="{ data }">
148154
<router-link
@@ -180,8 +186,7 @@ const courses = ref([])
180186
const filters = ref(null)
181187
182188
const platformConfigStore = usePlatformConfig()
183-
const showCourseDuration = 'true' === platformConfigStore.getSetting("course.show_course_duration")
184-
189+
const showCourseDuration = "true" === platformConfigStore.getSetting("course.show_course_duration")
185190
186191
const load = function () {
187192
status.value = true

0 commit comments

Comments
 (0)