aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+video-channels
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+video-channels')
-rw-r--r--client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts7
-rw-r--r--client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.ts14
-rw-r--r--client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts23
-rw-r--r--client/src/app/+video-channels/video-channels-routing.module.ts6
-rw-r--r--client/src/app/+video-channels/video-channels.component.ts16
-rw-r--r--client/src/app/+video-channels/video-channels.module.ts21
6 files changed, 40 insertions, 47 deletions
diff --git a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts
index 11f9391e1..19e4bc1f4 100644
--- a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts
+++ b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts
@@ -1,9 +1,8 @@
1import { Subscription } from 'rxjs'
1import { Component, OnDestroy, OnInit } from '@angular/core' 2import { Component, OnDestroy, OnInit } from '@angular/core'
2import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 3import { MarkdownService } from '@app/core'
3import { VideoChannel } from '@app/shared/video-channel/video-channel.model' 4import { VideoChannel, VideoChannelService } from '@app/shared/shared-main'
4import { I18n } from '@ngx-translate/i18n-polyfill' 5import { I18n } from '@ngx-translate/i18n-polyfill'
5import { Subscription } from 'rxjs'
6import { MarkdownService } from '@app/shared/renderer'
7 6
8@Component({ 7@Component({
9 selector: 'my-video-channel-about', 8 selector: 'my-video-channel-about',
diff --git a/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.ts b/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.ts
index 0b0033082..8b507c626 100644
--- a/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.ts
+++ b/client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.ts
@@ -1,12 +1,8 @@
1import { Component, OnDestroy, OnInit } from '@angular/core'
2import { ConfirmService } from '../../core/confirm'
3import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
4import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
5import { Subject, Subscription } from 'rxjs' 1import { Subject, Subscription } from 'rxjs'
6import { Notifier } from '@app/core' 2import { Component, OnDestroy, OnInit } from '@angular/core'
7import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model' 3import { ComponentPagination, hasMoreItems } from '@app/core'
8import { ComponentPagination, hasMoreItems } from '@app/shared/rest/component-pagination.model' 4import { VideoChannel, VideoChannelService } from '@app/shared/shared-main'
9import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service' 5import { VideoPlaylist, VideoPlaylistService } from '@app/shared/shared-video-playlist'
10 6
11@Component({ 7@Component({
12 selector: 'my-video-channel-playlists', 8 selector: 'my-video-channel-playlists',
@@ -28,8 +24,6 @@ export class VideoChannelPlaylistsComponent implements OnInit, OnDestroy {
28 private videoChannel: VideoChannel 24 private videoChannel: VideoChannel
29 25
30 constructor ( 26 constructor (
31 private notifier: Notifier,
32 private confirmService: ConfirmService,
33 private videoPlaylistService: VideoPlaylistService, 27 private videoPlaylistService: VideoPlaylistService,
34 private videoChannelService: VideoChannelService 28 private videoChannelService: VideoChannelService
35 ) {} 29 ) {}
diff --git a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts
index 5749701e8..267c328f2 100644
--- a/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts
+++ b/client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts
@@ -1,25 +1,18 @@
1import { Subscription } from 'rxjs'
2import { first, tap } from 'rxjs/operators'
1import { Component, OnDestroy, OnInit } from '@angular/core' 3import { Component, OnDestroy, OnInit } from '@angular/core'
2import { ActivatedRoute, Router } from '@angular/router' 4import { ActivatedRoute, Router } from '@angular/router'
3import { immutableAssign } from '@app/shared/misc/utils' 5import { AuthService, ConfirmService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core'
4import { AuthService } from '../../core/auth' 6import { immutableAssign } from '@app/helpers'
5import { ConfirmService } from '../../core/confirm' 7import { VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main'
6import { AbstractVideoList } from '../../shared/video/abstract-video-list' 8import { AbstractVideoList } from '@app/shared/shared-video-miniature'
7import { VideoService } from '../../shared/video/video.service'
8import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
9import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
10import { first, tap } from 'rxjs/operators'
11import { I18n } from '@ngx-translate/i18n-polyfill' 9import { I18n } from '@ngx-translate/i18n-polyfill'
12import { Subscription } from 'rxjs'
13import { ScreenService } from '@app/shared/misc/screen.service'
14import { Notifier, ServerService } from '@app/core'
15import { UserService } from '@app/shared'
16import { LocalStorageService } from '@app/shared/misc/storage.service'
17 10
18@Component({ 11@Component({
19 selector: 'my-video-channel-videos', 12 selector: 'my-video-channel-videos',
20 templateUrl: '../../shared/video/abstract-video-list.html', 13 templateUrl: '../../shared/shared-video-miniature/abstract-video-list.html',
21 styleUrls: [ 14 styleUrls: [
22 '../../shared/video/abstract-video-list.scss', 15 '../../shared/shared-video-miniature/abstract-video-list.scss',
23 './video-channel-videos.component.scss' 16 './video-channel-videos.component.scss'
24 ] 17 ]
25}) 18})
diff --git a/client/src/app/+video-channels/video-channels-routing.module.ts b/client/src/app/+video-channels/video-channels-routing.module.ts
index d4872a0a5..e79e6a680 100644
--- a/client/src/app/+video-channels/video-channels-routing.module.ts
+++ b/client/src/app/+video-channels/video-channels-routing.module.ts
@@ -1,10 +1,10 @@
1import { NgModule } from '@angular/core' 1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router' 2import { RouterModule, Routes } from '@angular/router'
3import { MetaGuard } from '@ngx-meta/core' 3import { MetaGuard } from '@ngx-meta/core'
4import { VideoChannelsComponent } from './video-channels.component'
5import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
6import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component' 4import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component'
7import { VideoChannelPlaylistsComponent } from '@app/+video-channels/video-channel-playlists/video-channel-playlists.component' 5import { VideoChannelPlaylistsComponent } from './video-channel-playlists/video-channel-playlists.component'
6import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
7import { VideoChannelsComponent } from './video-channels.component'
8 8
9const videoChannelsRoutes: Routes = [ 9const videoChannelsRoutes: Routes = [
10 { 10 {
diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts
index a3563c747..cae442ee7 100644
--- a/client/src/app/+video-channels/video-channels.component.ts
+++ b/client/src/app/+video-channels/video-channels.component.ts
@@ -1,16 +1,12 @@
1import { Hotkey, HotkeysService } from 'angular2-hotkeys'
2import { Subscription } from 'rxjs'
3import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators'
1import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core' 4import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core'
2import { ActivatedRoute } from '@angular/router' 5import { ActivatedRoute } from '@angular/router'
3import { VideoChannel } from '@app/shared/video-channel/video-channel.model' 6import { AuthService, Notifier, RestExtractor, ScreenService } from '@app/core'
4import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' 7import { ListOverflowItem, VideoChannel, VideoChannelService } from '@app/shared/shared-main'
5import { RestExtractor } from '@app/shared' 8import { SubscribeButtonComponent } from '@app/shared/shared-user-subscription'
6import { catchError, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators'
7import { Subscription } from 'rxjs'
8import { AuthService, Notifier } from '@app/core'
9import { Hotkey, HotkeysService } from 'angular2-hotkeys'
10import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component'
11import { I18n } from '@ngx-translate/i18n-polyfill' 9import { I18n } from '@ngx-translate/i18n-polyfill'
12import { ListOverflowItem } from '@app/shared/misc/list-overflow.component'
13import { ScreenService } from '@app/shared/misc/screen.service'
14 10
15@Component({ 11@Component({
16 templateUrl: './video-channels.component.html', 12 templateUrl: './video-channels.component.html',
diff --git a/client/src/app/+video-channels/video-channels.module.ts b/client/src/app/+video-channels/video-channels.module.ts
index 6975d05b2..05236ff85 100644
--- a/client/src/app/+video-channels/video-channels.module.ts
+++ b/client/src/app/+video-channels/video-channels.module.ts
@@ -1,15 +1,26 @@
1import { NgModule } from '@angular/core' 1import { NgModule } from '@angular/core'
2import { SharedModule } from '../shared' 2import { SharedFormModule } from '@app/shared/shared-forms'
3import { SharedGlobalIconModule } from '@app/shared/shared-icons'
4import { SharedMainModule } from '@app/shared/shared-main'
5import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription'
6import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'
7import { SharedVideoPlaylistModule } from '@app/shared/shared-video-playlist'
8import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component'
9import { VideoChannelPlaylistsComponent } from './video-channel-playlists/video-channel-playlists.component'
10import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
3import { VideoChannelsRoutingModule } from './video-channels-routing.module' 11import { VideoChannelsRoutingModule } from './video-channels-routing.module'
4import { VideoChannelsComponent } from './video-channels.component' 12import { VideoChannelsComponent } from './video-channels.component'
5import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
6import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component'
7import { VideoChannelPlaylistsComponent } from '@app/+video-channels/video-channel-playlists/video-channel-playlists.component'
8 13
9@NgModule({ 14@NgModule({
10 imports: [ 15 imports: [
11 VideoChannelsRoutingModule, 16 VideoChannelsRoutingModule,
12 SharedModule 17
18 SharedMainModule,
19 SharedFormModule,
20 SharedVideoPlaylistModule,
21 SharedVideoMiniatureModule,
22 SharedUserSubscriptionModule,
23 SharedGlobalIconModule
13 ], 24 ],
14 25
15 declarations: [ 26 declarations: [