From 1840c2f7c91f5f89602a3683d85b0a9df1454855 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 11 Jun 2017 15:19:43 +0200 Subject: Update webpack stack --- client/src/app/videos/shared/video.model.ts | 2 ++ client/src/app/videos/shared/video.service.ts | 2 +- client/src/app/videos/video-edit/video-add.component.ts | 2 +- client/src/app/videos/video-list/video-miniature.component.html | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) (limited to 'client/src/app/videos') diff --git a/client/src/app/videos/shared/video.model.ts b/client/src/app/videos/shared/video.model.ts index 0cf4039df..e897eb175 100644 --- a/client/src/app/videos/shared/video.model.ts +++ b/client/src/app/videos/shared/video.model.ts @@ -21,6 +21,7 @@ export class Video implements VideoServerModel { podHost: string; tags: string[]; thumbnailPath: string; + thumbnailUrl: string; views: number; likes: number; dislikes: number; @@ -80,6 +81,7 @@ export class Video implements VideoServerModel { this.podHost = hash.podHost; this.tags = hash.tags; this.thumbnailPath = hash.thumbnailPath; + this.thumbnailUrl = API_URL + hash.thumbnailPath; this.views = hash.views; this.likes = hash.likes; this.dislikes = hash.dislikes; diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts index ef683dea6..a53ea1064 100644 --- a/client/src/app/videos/shared/video.service.ts +++ b/client/src/app/videos/shared/video.service.ts @@ -20,7 +20,7 @@ import { Video } from './video.model'; @Injectable() export class VideoService { - private static BASE_VIDEO_URL = '/api/v1/videos/'; + private static BASE_VIDEO_URL = API_URL + '/api/v1/videos/'; videoCategories: Array<{ id: number, label: string }> = []; videoLicences: Array<{ id: number, label: string }> = []; diff --git a/client/src/app/videos/video-edit/video-add.component.ts b/client/src/app/videos/video-edit/video-add.component.ts index 21343880d..e5eb9a9f4 100644 --- a/client/src/app/videos/video-edit/video-add.component.ts +++ b/client/src/app/videos/video-edit/video-add.component.ts @@ -94,7 +94,7 @@ export class VideoAddComponent extends FormReactive implements OnInit { this.uploader = new FileUploader({ authToken: this.authService.getRequestHeaderValue(), queueLimit: 1, - url: '/api/v1/videos', + url: API_URL + '/api/v1/videos', removeAfterUpload: true }); diff --git a/client/src/app/videos/video-list/video-miniature.component.html b/client/src/app/videos/video-list/video-miniature.component.html index b1b881fea..db6c4d6fb 100644 --- a/client/src/app/videos/video-list/video-miniature.component.html +++ b/client/src/app/videos/video-list/video-miniature.component.html @@ -3,7 +3,7 @@ [routerLink]="['/videos/watch', video.id]" [attr.title]="video.description" class="video-miniature-thumbnail" > - video thumbnail + video thumbnail
NSFW
-- cgit v1.2.3