]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/videos.module.ts
Add auto scroll to videos list
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / videos.module.ts
index 03dea17b5b433e27cda9d6362e6fc6e7fb03e58e..f3981d27523429439df4ecfaf16aff9c3dad51ef 100644 (file)
@@ -1,40 +1,27 @@
-import { NgModule } from '@angular/core';
-
-import { VideosRoutingModule } from './videos-routing.module';
-import { VideosComponent } from './videos.component';
-import { VideoAddComponent } from './video-add';
-import { VideoListComponent, VideoMiniatureComponent, VideoSortComponent } from './video-list';
-import {
-  VideoWatchComponent,
-  VideoMagnetComponent,
-  VideoReportComponent,
-  VideoShareComponent,
-  WebTorrentService
-} from './video-watch';
-import { LoaderComponent, VideoService } from './shared';
-import { SharedModule } from '../shared';
+import { NgModule } from '@angular/core'
+import { InfiniteScrollModule } from 'ngx-infinite-scroll'
+import { SharedModule } from '../shared'
+import { VideoService } from './shared'
+import { MyVideosComponent, VideoMiniatureComponent } from './video-list'
+import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component'
+import { VideoTrendingComponent } from './video-list/video-trending.component'
+import { VideosRoutingModule } from './videos-routing.module'
+import { VideosComponent } from './videos.component'
 
 @NgModule({
   imports: [
     VideosRoutingModule,
-    SharedModule
+    SharedModule,
+    InfiniteScrollModule
   ],
 
   declarations: [
     VideosComponent,
 
-    VideoAddComponent,
-
-    VideoListComponent,
-    VideoMiniatureComponent,
-    VideoSortComponent,
-
-    VideoWatchComponent,
-    VideoMagnetComponent,
-    VideoShareComponent,
-    VideoReportComponent,
-
-    LoaderComponent
+    VideoTrendingComponent,
+    VideoRecentlyAddedComponent,
+    MyVideosComponent,
+    VideoMiniatureComponent
   ],
 
   exports: [
@@ -42,8 +29,7 @@ import { SharedModule } from '../shared';
   ],
 
   providers: [
-    VideoService,
-    WebTorrentService
+    VideoService
   ]
 })
 export class VideosModule { }