]> 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 fb2f453b0a3a7fc8dfd5077e07de6e8cf0b95378..f3981d27523429439df4ecfaf16aff9c3dad51ef 100644 (file)
@@ -1,33 +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, 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,
-
-    LoaderComponent
+    VideoTrendingComponent,
+    VideoRecentlyAddedComponent,
+    MyVideosComponent,
+    VideoMiniatureComponent
   ],
 
   exports: [
@@ -35,8 +29,7 @@ import { SharedModule } from '../shared';
   ],
 
   providers: [
-    VideoService,
-    WebTorrentService
+    VideoService
   ]
 })
 export class VideosModule { }