aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/shared/video-caption/video-caption.service.ts2
-rw-r--r--client/src/app/shared/video-channel/video-channel.model.ts2
-rw-r--r--client/src/app/shared/video-import/video-import.service.ts2
-rw-r--r--client/src/app/shared/video/video.service.ts14
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts3
-rw-r--r--shared/models/videos/index.ts2
6 files changed, 14 insertions, 11 deletions
diff --git a/client/src/app/shared/video-caption/video-caption.service.ts b/client/src/app/shared/video-caption/video-caption.service.ts
index 0ff094d1f..9c29bc052 100644
--- a/client/src/app/shared/video-caption/video-caption.service.ts
+++ b/client/src/app/shared/video-caption/video-caption.service.ts
@@ -4,10 +4,10 @@ import { Injectable } from '@angular/core'
4import { forkJoin, Observable, of } from 'rxjs' 4import { forkJoin, Observable, of } from 'rxjs'
5import { ResultList } from '../../../../../shared' 5import { ResultList } from '../../../../../shared'
6import { RestExtractor, RestService } from '../rest' 6import { RestExtractor, RestService } from '../rest'
7import { VideoCaption } from '../../../../../shared/models/videos/video-caption.model'
8import { VideoService } from '@app/shared/video/video.service' 7import { VideoService } from '@app/shared/video/video.service'
9import { objectToFormData, sortBy } from '@app/shared/misc/utils' 8import { objectToFormData, sortBy } from '@app/shared/misc/utils'
10import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model' 9import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model'
10import { VideoCaption } from '../../../../../shared/models/videos/caption/video-caption.model'
11 11
12@Injectable() 12@Injectable()
13export class VideoCaptionService { 13export class VideoCaptionService {
diff --git a/client/src/app/shared/video-channel/video-channel.model.ts b/client/src/app/shared/video-channel/video-channel.model.ts
index 199c1d3b8..b6862b681 100644
--- a/client/src/app/shared/video-channel/video-channel.model.ts
+++ b/client/src/app/shared/video-channel/video-channel.model.ts
@@ -1,4 +1,4 @@
1import { VideoChannel as ServerVideoChannel } from '../../../../../shared/models/videos/video-channel.model' 1import { VideoChannel as ServerVideoChannel } from '../../../../../shared/models/videos'
2import { Actor } from '../actor/actor.model' 2import { Actor } from '../actor/actor.model'
3import { Account } from '../../../../../shared/models/actors' 3import { Account } from '../../../../../shared/models/actors'
4 4
diff --git a/client/src/app/shared/video-import/video-import.service.ts b/client/src/app/shared/video-import/video-import.service.ts
index 002412bd7..f63bfb2b1 100644
--- a/client/src/app/shared/video-import/video-import.service.ts
+++ b/client/src/app/shared/video-import/video-import.service.ts
@@ -5,7 +5,7 @@ import { Observable } from 'rxjs'
5import { VideoImport } from '../../../../../shared' 5import { VideoImport } from '../../../../../shared'
6import { environment } from '../../../environments/environment' 6import { environment } from '../../../environments/environment'
7import { RestExtractor, RestService } from '../rest' 7import { RestExtractor, RestService } from '../rest'
8import { VideoImportCreate } from '../../../../../shared/models/videos/video-import-create.model' 8import { VideoImportCreate } from '../../../../../shared/models/videos'
9import { objectToFormData } from '@app/shared/misc/utils' 9import { objectToFormData } from '@app/shared/misc/utils'
10import { VideoUpdate } from '../../../../../shared/models/videos' 10import { VideoUpdate } from '../../../../../shared/models/videos'
11import { ResultList } from '../../../../../shared/models/result-list.model' 11import { ResultList } from '../../../../../shared/models/result-list.model'
diff --git a/client/src/app/shared/video/video.service.ts b/client/src/app/shared/video/video.service.ts
index ddf365959..e2a62c701 100644
--- a/client/src/app/shared/video/video.service.ts
+++ b/client/src/app/shared/video/video.service.ts
@@ -4,12 +4,15 @@ import { Injectable } from '@angular/core'
4import { Observable } from 'rxjs' 4import { Observable } from 'rxjs'
5import { Video as VideoServerModel, VideoDetails as VideoDetailsServerModel } from '../../../../../shared' 5import { Video as VideoServerModel, VideoDetails as VideoDetailsServerModel } from '../../../../../shared'
6import { ResultList } from '../../../../../shared/models/result-list.model' 6import { ResultList } from '../../../../../shared/models/result-list.model'
7import { UserVideoRateUpdate } from '../../../../../shared/models/videos/user-video-rate-update.model' 7import {
8import { UserVideoRate } from '../../../../../shared/models/videos/user-video-rate.model' 8 UserVideoRate,
9import { VideoFilter } from '../../../../../shared/models/videos/video-query.type' 9 UserVideoRateUpdate,
10 VideoChannel,
11 VideoFilter,
12 VideoRateType,
13 VideoUpdate
14} from '../../../../../shared/models/videos'
10import { FeedFormat } from '../../../../../shared/models/feeds/feed-format.enum' 15import { FeedFormat } from '../../../../../shared/models/feeds/feed-format.enum'
11import { VideoRateType } from '../../../../../shared/models/videos/video-rate.type'
12import { VideoUpdate } from '../../../../../shared/models/videos/video-update.model'
13import { environment } from '../../../environments/environment' 16import { environment } from '../../../environments/environment'
14import { ComponentPagination } from '../rest/component-pagination.model' 17import { ComponentPagination } from '../rest/component-pagination.model'
15import { RestExtractor } from '../rest/rest-extractor.service' 18import { RestExtractor } from '../rest/rest-extractor.service'
@@ -22,7 +25,6 @@ import { Video } from './video.model'
22import { objectToFormData } from '@app/shared/misc/utils' 25import { objectToFormData } from '@app/shared/misc/utils'
23import { Account } from '@app/shared/account/account.model' 26import { Account } from '@app/shared/account/account.model'
24import { AccountService } from '@app/shared/account/account.service' 27import { AccountService } from '@app/shared/account/account.service'
25import { VideoChannel } from '../../../../../shared/models/videos'
26import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 28import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
27import { ServerService } from '@app/core' 29import { ServerService } from '@app/core'
28 30
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index bea13ec99..d8230f172 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -10,7 +10,7 @@ import { forkJoin, Subscription } from 'rxjs'
10import * as videojs from 'video.js' 10import * as videojs from 'video.js'
11import 'videojs-hotkeys' 11import 'videojs-hotkeys'
12import * as WebTorrent from 'webtorrent' 12import * as WebTorrent from 'webtorrent'
13import { UserVideoRateType, VideoPrivacy, VideoRateType, VideoState } from '../../../../../shared' 13import { UserVideoRateType, VideoCaption, VideoPrivacy, VideoRateType, VideoState } from '../../../../../shared'
14import '../../../assets/player/peertube-videojs-plugin' 14import '../../../assets/player/peertube-videojs-plugin'
15import { AuthService, ConfirmService } from '../../core' 15import { AuthService, ConfirmService } from '../../core'
16import { RestExtractor, VideoBlacklistService } from '../../shared' 16import { RestExtractor, VideoBlacklistService } from '../../shared'
@@ -28,7 +28,6 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
28import { environment } from '../../../environments/environment' 28import { environment } from '../../../environments/environment'
29import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils' 29import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils'
30import { VideoCaptionService } from '@app/shared/video-caption' 30import { VideoCaptionService } from '@app/shared/video-caption'
31import { VideoCaption } from '../../../../../shared/models/videos/video-caption.model'
32 31
33@Component({ 32@Component({
34 selector: 'my-video-watch', 33 selector: 'my-video-watch',
diff --git a/shared/models/videos/index.ts b/shared/models/videos/index.ts
index 6b579cf3e..f1a3d52e1 100644
--- a/shared/models/videos/index.ts
+++ b/shared/models/videos/index.ts
@@ -17,7 +17,9 @@ export * from './video-rate.type'
17export * from './video-resolution.enum' 17export * from './video-resolution.enum'
18export * from './video-update.model' 18export * from './video-update.model'
19export * from './video.model' 19export * from './video.model'
20export * from './video-query.type'
20export * from './video-state.enum' 21export * from './video-state.enum'
22export * from './caption/video-caption.model'
21export * from './caption/video-caption-update.model' 23export * from './caption/video-caption-update.model'
22export * from './import/video-import-create.model' 24export * from './import/video-import-create.model'
23export * from './import/video-import-state.enum' 25export * from './import/video-import-state.enum'