diff options
Diffstat (limited to 'client/src/app/+video-channels')
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 @@ | |||
1 | import { Subscription } from 'rxjs' | ||
1 | import { Component, OnDestroy, OnInit } from '@angular/core' | 2 | import { Component, OnDestroy, OnInit } from '@angular/core' |
2 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | 3 | import { MarkdownService } from '@app/core' |
3 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | 4 | import { VideoChannel, VideoChannelService } from '@app/shared/shared-main' |
4 | import { I18n } from '@ngx-translate/i18n-polyfill' | 5 | import { I18n } from '@ngx-translate/i18n-polyfill' |
5 | import { Subscription } from 'rxjs' | ||
6 | import { 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 @@ | |||
1 | import { Component, OnDestroy, OnInit } from '@angular/core' | ||
2 | import { ConfirmService } from '../../core/confirm' | ||
3 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | ||
4 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | ||
5 | import { Subject, Subscription } from 'rxjs' | 1 | import { Subject, Subscription } from 'rxjs' |
6 | import { Notifier } from '@app/core' | 2 | import { Component, OnDestroy, OnInit } from '@angular/core' |
7 | import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model' | 3 | import { ComponentPagination, hasMoreItems } from '@app/core' |
8 | import { ComponentPagination, hasMoreItems } from '@app/shared/rest/component-pagination.model' | 4 | import { VideoChannel, VideoChannelService } from '@app/shared/shared-main' |
9 | import { VideoPlaylistService } from '@app/shared/video-playlist/video-playlist.service' | 5 | import { 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 @@ | |||
1 | import { Subscription } from 'rxjs' | ||
2 | import { first, tap } from 'rxjs/operators' | ||
1 | import { Component, OnDestroy, OnInit } from '@angular/core' | 3 | import { Component, OnDestroy, OnInit } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 4 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { immutableAssign } from '@app/shared/misc/utils' | 5 | import { AuthService, ConfirmService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' |
4 | import { AuthService } from '../../core/auth' | 6 | import { immutableAssign } from '@app/helpers' |
5 | import { ConfirmService } from '../../core/confirm' | 7 | import { VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main' |
6 | import { AbstractVideoList } from '../../shared/video/abstract-video-list' | 8 | import { AbstractVideoList } from '@app/shared/shared-video-miniature' |
7 | import { VideoService } from '../../shared/video/video.service' | ||
8 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | ||
9 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | ||
10 | import { first, tap } from 'rxjs/operators' | ||
11 | import { I18n } from '@ngx-translate/i18n-polyfill' | 9 | import { I18n } from '@ngx-translate/i18n-polyfill' |
12 | import { Subscription } from 'rxjs' | ||
13 | import { ScreenService } from '@app/shared/misc/screen.service' | ||
14 | import { Notifier, ServerService } from '@app/core' | ||
15 | import { UserService } from '@app/shared' | ||
16 | import { 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 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | 2 | import { RouterModule, Routes } from '@angular/router' |
3 | import { MetaGuard } from '@ngx-meta/core' | 3 | import { MetaGuard } from '@ngx-meta/core' |
4 | import { VideoChannelsComponent } from './video-channels.component' | ||
5 | import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component' | ||
6 | import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component' | 4 | import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component' |
7 | import { VideoChannelPlaylistsComponent } from '@app/+video-channels/video-channel-playlists/video-channel-playlists.component' | 5 | import { VideoChannelPlaylistsComponent } from './video-channel-playlists/video-channel-playlists.component' |
6 | import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component' | ||
7 | import { VideoChannelsComponent } from './video-channels.component' | ||
8 | 8 | ||
9 | const videoChannelsRoutes: Routes = [ | 9 | const 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 @@ | |||
1 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' | ||
2 | import { Subscription } from 'rxjs' | ||
3 | import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators' | ||
1 | import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core' | 4 | import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core' |
2 | import { ActivatedRoute } from '@angular/router' | 5 | import { ActivatedRoute } from '@angular/router' |
3 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | 6 | import { AuthService, Notifier, RestExtractor, ScreenService } from '@app/core' |
4 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | 7 | import { ListOverflowItem, VideoChannel, VideoChannelService } from '@app/shared/shared-main' |
5 | import { RestExtractor } from '@app/shared' | 8 | import { SubscribeButtonComponent } from '@app/shared/shared-user-subscription' |
6 | import { catchError, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators' | ||
7 | import { Subscription } from 'rxjs' | ||
8 | import { AuthService, Notifier } from '@app/core' | ||
9 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' | ||
10 | import { SubscribeButtonComponent } from '@app/shared/user-subscription/subscribe-button.component' | ||
11 | import { I18n } from '@ngx-translate/i18n-polyfill' | 9 | import { I18n } from '@ngx-translate/i18n-polyfill' |
12 | import { ListOverflowItem } from '@app/shared/misc/list-overflow.component' | ||
13 | import { 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 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { SharedModule } from '../shared' | 2 | import { SharedFormModule } from '@app/shared/shared-forms' |
3 | import { SharedGlobalIconModule } from '@app/shared/shared-icons' | ||
4 | import { SharedMainModule } from '@app/shared/shared-main' | ||
5 | import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription' | ||
6 | import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature' | ||
7 | import { SharedVideoPlaylistModule } from '@app/shared/shared-video-playlist' | ||
8 | import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component' | ||
9 | import { VideoChannelPlaylistsComponent } from './video-channel-playlists/video-channel-playlists.component' | ||
10 | import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component' | ||
3 | import { VideoChannelsRoutingModule } from './video-channels-routing.module' | 11 | import { VideoChannelsRoutingModule } from './video-channels-routing.module' |
4 | import { VideoChannelsComponent } from './video-channels.component' | 12 | import { VideoChannelsComponent } from './video-channels.component' |
5 | import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component' | ||
6 | import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component' | ||
7 | import { 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: [ |