diff --git a/frontend/src/components/CourseCard.vue b/frontend/src/components/CourseCard.vue
index d26f5130..98093808 100644
--- a/frontend/src/components/CourseCard.vue
+++ b/frontend/src/components/CourseCard.vue
@@ -9,16 +9,20 @@
:class="{ 'default-image': !course.image }"
:style="{ backgroundImage: 'url(\'' + encodeURI(course.image) + '\')' }"
>
-
+
',
- html: '',
- height: 320,
- width: 580,
+ html: ``,
id: ([id, params]) => {
if (!params && id) {
return id
@@ -249,28 +249,40 @@ export function getEditorTools() {
return id + '?' + newParams.join('&')
},
},
- vimeo: true,
+ vimeo: {
+ regex: /(?:http[s]?:\/\/)?(?:www\.)?vimeo\.com\/(\d+)/,
+ embedUrl:
+ 'https://player.vimeo.com/video/<%= remote_id %>',
+ html: ``,
+ id: ([id]) => id,
+ },
codepen: true,
aparat: {
regex: /(?:http[s]?:\/\/)?(?:www.)?aparat\.com\/v\/([^\/\?\&]+)\/?/,
embedUrl:
'https://www.aparat.com/video/video/embed/videohash/<%= remote_id %>/vt/frame',
- html: '',
- height: 300,
- width: 600,
+ html: ``,
},
github: true,
slides: {
regex: /https:\/\/docs\.google\.com\/presentation\/d\/([A-Za-z0-9_-]+)\/pub/,
embedUrl:
'https://docs.google.com/presentation/d/<%= remote_id %>/embed',
- html: "",
+ html: ``,
},
drive: {
regex: /https:\/\/drive\.google\.com\/file\/d\/([A-Za-z0-9_-]+)\/view(\?.+)?/,
embedUrl:
'https://drive.google.com/file/d/<%= remote_id %>/preview',
- html: "",
+ html: ``,
},
docsPublic: {
regex: /https:\/\/docs\.google\.com\/document\/d\/([A-Za-z0-9_-]+)\/edit(\?.+)?/,