|
40 | 40 | <template #loading>
|
41 | 41 | {{ $t("Loading courses. Please wait.") }}
|
42 | 42 | </template>
|
43 |
| - <Column header="" style="min-width: 5rem"> |
| 43 | + <Column |
| 44 | + header="" |
| 45 | + style="min-width: 5rem" |
| 46 | + > |
44 | 47 | <template #body="{ data }">
|
45 | 48 | <img
|
46 | 49 | :alt="data.title"
|
|
53 | 56 | :header="$t('Title')"
|
54 | 57 | :sortable="true"
|
55 | 58 | field="title"
|
56 |
| - style="min-width: 8rem; text-align: center;" |
| 59 | + style="min-width: 8rem; text-align: center" |
57 | 60 | >
|
58 | 61 | <template #body="{ data }">
|
59 | 62 | {{ data.title }}
|
|
64 | 67 | :header="$t('Course description')"
|
65 | 68 | :sortable="true"
|
66 | 69 | field="description"
|
67 |
| - style="min-width: 8rem; text-align: center;" |
| 70 | + style="min-width: 8rem; text-align: center" |
68 | 71 | >
|
69 | 72 | <template #body="{ data }">
|
70 | 73 | {{ data.description }}
|
|
75 | 78 | :header="$t('Duration')"
|
76 | 79 | :sortable="true"
|
77 | 80 | field="duration"
|
78 |
| - style="min-width: 8rem; text-align: center;" |
| 81 | + style="min-width: 8rem; text-align: center" |
79 | 82 | >
|
80 | 83 | <template #body="{ data }">
|
81 |
| - <div v-if="data.duration" class="course-duration"> |
| 84 | + <div |
| 85 | + v-if="data.duration" |
| 86 | + class="course-duration" |
| 87 | + > |
82 | 88 | {{ (data.duration / 60 / 60).toFixed(2) }} hours
|
83 | 89 | </div>
|
84 | 90 | </template>
|
|
88 | 94 | :header="$t('Teachers')"
|
89 | 95 | :sortable="true"
|
90 | 96 | field="teachers"
|
91 |
| - style="min-width: 10rem; text-align: center;" |
| 97 | + style="min-width: 10rem; text-align: center" |
92 | 98 | >
|
93 | 99 | <template #body="{ data }">
|
94 | 100 | <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(", ") }} |
96 | 102 | </div>
|
97 | 103 | </template>
|
98 | 104 | </Column>
|
99 | 105 | <Column
|
100 | 106 | :header="$t('Language')"
|
101 | 107 | :sortable="true"
|
102 | 108 | field="courseLanguage"
|
103 |
| - style="min-width: 5rem; text-align: center;" |
| 109 | + style="min-width: 5rem; text-align: center" |
104 | 110 | >
|
105 | 111 | <template #body="{ data }">
|
106 | 112 | {{ data.courseLanguage }}
|
|
110 | 116 | :header="$t('Categories')"
|
111 | 117 | :sortable="true"
|
112 | 118 | field="categories"
|
113 |
| - style="min-width: 8rem; text-align: center;" |
| 119 | + style="min-width: 8rem; text-align: center" |
114 | 120 | >
|
115 | 121 | <template #body="{ data }">
|
116 | 122 | <span
|
|
127 | 133 | :header="$t('Ranking')"
|
128 | 134 | :sortable="true"
|
129 | 135 | field="trackCourseRanking.realTotalScore"
|
130 |
| - style="min-width: 10rem; text-align: center;" |
| 136 | + style="min-width: 10rem; text-align: center" |
131 | 137 | >
|
132 | 138 | <template #body="{ data }">
|
133 | 139 | <Rating
|
|
142 | 148 | <Column
|
143 | 149 | field="link"
|
144 | 150 | header=""
|
145 |
| - style="min-width: 10rem; text-align: center;" |
| 151 | + style="min-width: 10rem; text-align: center" |
146 | 152 | >
|
147 | 153 | <template #body="{ data }">
|
148 | 154 | <router-link
|
@@ -180,8 +186,7 @@ const courses = ref([])
|
180 | 186 | const filters = ref(null)
|
181 | 187 |
|
182 | 188 | const platformConfigStore = usePlatformConfig()
|
183 |
| -const showCourseDuration = 'true' === platformConfigStore.getSetting("course.show_course_duration") |
184 |
| -
|
| 189 | +const showCourseDuration = "true" === platformConfigStore.getSetting("course.show_course_duration") |
185 | 190 |
|
186 | 191 | const load = function () {
|
187 | 192 | status.value = true
|
|
0 commit comments