]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Update client according to new model paths
authorChocobozzz <me@florianbigard.com>
Tue, 14 Aug 2018 13:47:56 +0000 (15:47 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 14 Aug 2018 13:47:56 +0000 (15:47 +0200)
client/src/app/shared/video-caption/video-caption.service.ts
client/src/app/shared/video-channel/video-channel.model.ts
client/src/app/shared/video-import/video-import.service.ts
client/src/app/shared/video/video.service.ts
client/src/app/videos/+video-watch/video-watch.component.ts
shared/models/videos/index.ts

index 0ff094d1fe0cc61ff960d0d4d42eb0243498a533..9c29bc05208b8e9bd99c068240b475a91f1bc676 100644 (file)
@@ -4,10 +4,10 @@ import { Injectable } from '@angular/core'
 import { forkJoin, Observable, of } from 'rxjs'
 import { ResultList } from '../../../../../shared'
 import { RestExtractor, RestService } from '../rest'
-import { VideoCaption } from '../../../../../shared/models/videos/video-caption.model'
 import { VideoService } from '@app/shared/video/video.service'
 import { objectToFormData, sortBy } from '@app/shared/misc/utils'
 import { VideoCaptionEdit } from '@app/shared/video-caption/video-caption-edit.model'
+import { VideoCaption } from '../../../../../shared/models/videos/caption/video-caption.model'
 
 @Injectable()
 export class VideoCaptionService {
index 199c1d3b895956ea83f1e693556b70f426eff8ea..b6862b681b20968cc180cbbf1cc360b9b44d8bfa 100644 (file)
@@ -1,4 +1,4 @@
-import { VideoChannel as ServerVideoChannel } from '../../../../../shared/models/videos/video-channel.model'
+import { VideoChannel as ServerVideoChannel } from '../../../../../shared/models/videos'
 import { Actor } from '../actor/actor.model'
 import { Account } from '../../../../../shared/models/actors'
 
index 002412bd717e1c331f32732a5a659c90baa4a657..f63bfb2b1c72059934475c2af45b5e81a41551cc 100644 (file)
@@ -5,7 +5,7 @@ import { Observable } from 'rxjs'
 import { VideoImport } from '../../../../../shared'
 import { environment } from '../../../environments/environment'
 import { RestExtractor, RestService } from '../rest'
-import { VideoImportCreate } from '../../../../../shared/models/videos/video-import-create.model'
+import { VideoImportCreate } from '../../../../../shared/models/videos'
 import { objectToFormData } from '@app/shared/misc/utils'
 import { VideoUpdate } from '../../../../../shared/models/videos'
 import { ResultList } from '../../../../../shared/models/result-list.model'
index ddf36595960ce9984585820b615964e04e45ebbc..e2a62c701c56ed7a2932e58a6d33d0f4e3e4c615 100644 (file)
@@ -4,12 +4,15 @@ import { Injectable } from '@angular/core'
 import { Observable } from 'rxjs'
 import { Video as VideoServerModel, VideoDetails as VideoDetailsServerModel } from '../../../../../shared'
 import { ResultList } from '../../../../../shared/models/result-list.model'
-import { UserVideoRateUpdate } from '../../../../../shared/models/videos/user-video-rate-update.model'
-import { UserVideoRate } from '../../../../../shared/models/videos/user-video-rate.model'
-import { VideoFilter } from '../../../../../shared/models/videos/video-query.type'
+import {
+  UserVideoRate,
+  UserVideoRateUpdate,
+  VideoChannel,
+  VideoFilter,
+  VideoRateType,
+  VideoUpdate
+} from '../../../../../shared/models/videos'
 import { FeedFormat } from '../../../../../shared/models/feeds/feed-format.enum'
-import { VideoRateType } from '../../../../../shared/models/videos/video-rate.type'
-import { VideoUpdate } from '../../../../../shared/models/videos/video-update.model'
 import { environment } from '../../../environments/environment'
 import { ComponentPagination } from '../rest/component-pagination.model'
 import { RestExtractor } from '../rest/rest-extractor.service'
@@ -22,7 +25,6 @@ import { Video } from './video.model'
 import { objectToFormData } from '@app/shared/misc/utils'
 import { Account } from '@app/shared/account/account.model'
 import { AccountService } from '@app/shared/account/account.service'
-import { VideoChannel } from '../../../../../shared/models/videos'
 import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
 import { ServerService } from '@app/core'
 
index bea13ec999105292f6c5279723ac06c5a129ebd5..d8230f172b371d0e3c2e815106c332b8488e007c 100644 (file)
@@ -10,7 +10,7 @@ import { forkJoin, Subscription } from 'rxjs'
 import * as videojs from 'video.js'
 import 'videojs-hotkeys'
 import * as WebTorrent from 'webtorrent'
-import { UserVideoRateType, VideoPrivacy, VideoRateType, VideoState } from '../../../../../shared'
+import { UserVideoRateType, VideoCaption, VideoPrivacy, VideoRateType, VideoState } from '../../../../../shared'
 import '../../../assets/player/peertube-videojs-plugin'
 import { AuthService, ConfirmService } from '../../core'
 import { RestExtractor, VideoBlacklistService } from '../../shared'
@@ -28,7 +28,6 @@ import { I18n } from '@ngx-translate/i18n-polyfill'
 import { environment } from '../../../environments/environment'
 import { getDevLocale, isOnDevLocale } from '@app/shared/i18n/i18n-utils'
 import { VideoCaptionService } from '@app/shared/video-caption'
-import { VideoCaption } from '../../../../../shared/models/videos/video-caption.model'
 
 @Component({
   selector: 'my-video-watch',
index 6b579cf3ed5b497f59b79105b207f2c6d5807b8b..f1a3d52e1df3cbc3c227ee79690eea9d8388c586 100644 (file)
@@ -17,7 +17,9 @@ export * from './video-rate.type'
 export * from './video-resolution.enum'
 export * from './video-update.model'
 export * from './video.model'
+export * from './video-query.type'
 export * from './video-state.enum'
+export * from './caption/video-caption.model'
 export * from './caption/video-caption-update.model'
 export * from './import/video-import-create.model'
 export * from './import/video-import-state.enum'