aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/index.ts3
-rw-r--r--client/src/app/videos/shared/video.service.ts3
-rw-r--r--client/src/app/videos/video-add/video-add.component.ts3
-rw-r--r--client/src/app/videos/video-list/video-list.component.ts3
-rw-r--r--client/src/app/videos/videos-routing.module.ts (renamed from client/src/app/videos/videos.routes.ts)11
-rw-r--r--client/src/app/videos/videos.module.ts42
6 files changed, 59 insertions, 6 deletions
diff --git a/client/src/app/videos/index.ts b/client/src/app/videos/index.ts
index a9088a907..ca386a51d 100644
--- a/client/src/app/videos/index.ts
+++ b/client/src/app/videos/index.ts
@@ -2,5 +2,6 @@ export * from './shared';
2export * from './video-add'; 2export * from './video-add';
3export * from './video-list'; 3export * from './video-list';
4export * from './video-watch'; 4export * from './video-watch';
5export * from './videos-routing.module';
5export * from './videos.component'; 6export * from './videos.component';
6export * from './videos.routes'; 7export * from './videos.module';
diff --git a/client/src/app/videos/shared/video.service.ts b/client/src/app/videos/shared/video.service.ts
index b1f688095..f173ef06b 100644
--- a/client/src/app/videos/shared/video.service.ts
+++ b/client/src/app/videos/shared/video.service.ts
@@ -4,7 +4,8 @@ import { Observable } from 'rxjs/Observable';
4 4
5import { Search } from '../../shared'; 5import { Search } from '../../shared';
6import { SortField } from './sort-field.type'; 6import { SortField } from './sort-field.type';
7import { AuthHttp, AuthService, RestExtractor, RestPagination, RestService, ResultList } from '../../shared'; 7import { AuthService } from '../../core';
8import { AuthHttp, RestExtractor, RestPagination, RestService, ResultList } from '../../shared';
8import { Video } from './video.model'; 9import { Video } from './video.model';
9 10
10@Injectable() 11@Injectable()
diff --git a/client/src/app/videos/video-add/video-add.component.ts b/client/src/app/videos/video-add/video-add.component.ts
index b7bf1534f..6eab54f7e 100644
--- a/client/src/app/videos/video-add/video-add.component.ts
+++ b/client/src/app/videos/video-add/video-add.component.ts
@@ -4,7 +4,8 @@ import { Router } from '@angular/router';
4 4
5import { FileUploader } from 'ng2-file-upload/ng2-file-upload'; 5import { FileUploader } from 'ng2-file-upload/ng2-file-upload';
6 6
7import { AuthService, FormReactive, VIDEO_NAME, VIDEO_DESCRIPTION, VIDEO_TAGS } from '../../shared'; 7import { AuthService } from '../../core';
8import { FormReactive, VIDEO_NAME, VIDEO_DESCRIPTION, VIDEO_TAGS } from '../../shared';
8 9
9@Component({ 10@Component({
10 selector: 'my-videos-add', 11 selector: 'my-videos-add',
diff --git a/client/src/app/videos/video-list/video-list.component.ts b/client/src/app/videos/video-list/video-list.component.ts
index 6b086e938..a8b92480b 100644
--- a/client/src/app/videos/video-list/video-list.component.ts
+++ b/client/src/app/videos/video-list/video-list.component.ts
@@ -7,7 +7,8 @@ import {
7 Video, 7 Video,
8 VideoService 8 VideoService
9} from '../shared'; 9} from '../shared';
10import { AuthService, AuthUser, RestPagination, Search, SearchField } from '../../shared'; 10import { AuthService } from '../../core';
11import { AuthUser, RestPagination, Search, SearchField } from '../../shared';
11import { SearchService } from '../../shared'; 12import { SearchService } from '../../shared';
12 13
13@Component({ 14@Component({
diff --git a/client/src/app/videos/videos.routes.ts b/client/src/app/videos/videos-routing.module.ts
index ab68fbe0c..766d29d22 100644
--- a/client/src/app/videos/videos.routes.ts
+++ b/client/src/app/videos/videos-routing.module.ts
@@ -1,11 +1,12 @@
1import { Routes } from '@angular/router'; 1import { NgModule } from '@angular/core';
2import { RouterModule, Routes } from '@angular/router';
2 3
3import { VideoAddComponent } from './video-add'; 4import { VideoAddComponent } from './video-add';
4import { VideoListComponent } from './video-list'; 5import { VideoListComponent } from './video-list';
5import { VideosComponent } from './videos.component'; 6import { VideosComponent } from './videos.component';
6import { VideoWatchComponent } from './video-watch'; 7import { VideoWatchComponent } from './video-watch';
7 8
8export const VideosRoutes: Routes = [ 9const videosRoutes: Routes = [
9 { 10 {
10 path: 'videos', 11 path: 'videos',
11 component: VideosComponent, 12 component: VideosComponent,
@@ -35,3 +36,9 @@ export const VideosRoutes: Routes = [
35 ] 36 ]
36 } 37 }
37]; 38];
39
40@NgModule({
41 imports: [ RouterModule.forChild(videosRoutes) ],
42 exports: [ RouterModule ]
43})
44export class VideosRoutingModule {}
diff --git a/client/src/app/videos/videos.module.ts b/client/src/app/videos/videos.module.ts
new file mode 100644
index 000000000..fb2f453b0
--- /dev/null
+++ b/client/src/app/videos/videos.module.ts
@@ -0,0 +1,42 @@
1import { NgModule } from '@angular/core';
2
3import { VideosRoutingModule } from './videos-routing.module';
4import { VideosComponent } from './videos.component';
5import { VideoAddComponent } from './video-add';
6import { VideoListComponent, VideoMiniatureComponent, VideoSortComponent } from './video-list';
7import { VideoWatchComponent, VideoMagnetComponent, VideoShareComponent, WebTorrentService } from './video-watch';
8import { LoaderComponent, VideoService } from './shared';
9import { SharedModule } from '../shared';
10
11@NgModule({
12 imports: [
13 VideosRoutingModule,
14 SharedModule
15 ],
16
17 declarations: [
18 VideosComponent,
19
20 VideoAddComponent,
21
22 VideoListComponent,
23 VideoMiniatureComponent,
24 VideoSortComponent,
25
26 VideoWatchComponent,
27 VideoMagnetComponent,
28 VideoShareComponent,
29
30 LoaderComponent
31 ],
32
33 exports: [
34 VideosComponent
35 ],
36
37 providers: [
38 VideoService,
39 WebTorrentService
40 ]
41})
42export class VideosModule { }