diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 14:28:44 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 14:28:44 +0200 |
commit | a685e25ca05f08ad1b3f7fbaccc8744727bd8d27 (patch) | |
tree | e50fbc2f260a0017113c4668c3c0f3d2fd76ab87 /client/src/app/videos/videos-routing.module.ts | |
parent | 2ed6a0aedc2d2f6b1ac2fd9a1ac137772831f713 (diff) | |
download | PeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.tar.gz PeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.tar.zst PeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.zip |
Try to optimize frontend
Diffstat (limited to 'client/src/app/videos/videos-routing.module.ts')
-rw-r--r-- | client/src/app/videos/videos-routing.module.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts index 715671ba7..225b6b018 100644 --- a/client/src/app/videos/videos-routing.module.ts +++ b/client/src/app/videos/videos-routing.module.ts | |||
@@ -3,10 +3,8 @@ import { RouterModule, Routes } from '@angular/router' | |||
3 | 3 | ||
4 | import { MetaGuard } from '@ngx-meta/core' | 4 | import { MetaGuard } from '@ngx-meta/core' |
5 | 5 | ||
6 | import { VideoAddComponent, VideoUpdateComponent } from './video-edit' | ||
7 | import { VideoListComponent } from './video-list' | 6 | import { VideoListComponent } from './video-list' |
8 | import { VideosComponent } from './videos.component' | 7 | import { VideosComponent } from './videos.component' |
9 | import { VideoWatchComponent } from './video-watch' | ||
10 | 8 | ||
11 | const videosRoutes: Routes = [ | 9 | const videosRoutes: Routes = [ |
12 | { | 10 | { |
@@ -25,7 +23,7 @@ const videosRoutes: Routes = [ | |||
25 | }, | 23 | }, |
26 | { | 24 | { |
27 | path: 'add', | 25 | path: 'add', |
28 | component: VideoAddComponent, | 26 | loadChildren: 'app/videos/+video-edit#VideoAddModule', |
29 | data: { | 27 | data: { |
30 | meta: { | 28 | meta: { |
31 | title: 'Add a video' | 29 | title: 'Add a video' |
@@ -34,7 +32,7 @@ const videosRoutes: Routes = [ | |||
34 | }, | 32 | }, |
35 | { | 33 | { |
36 | path: 'edit/:uuid', | 34 | path: 'edit/:uuid', |
37 | component: VideoUpdateComponent, | 35 | loadChildren: 'app/videos/+video-edit#VideoUpdateModule', |
38 | data: { | 36 | data: { |
39 | meta: { | 37 | meta: { |
40 | title: 'Edit a video' | 38 | title: 'Edit a video' |
@@ -47,7 +45,10 @@ const videosRoutes: Routes = [ | |||
47 | }, | 45 | }, |
48 | { | 46 | { |
49 | path: 'watch/:uuid', | 47 | path: 'watch/:uuid', |
50 | component: VideoWatchComponent | 48 | loadChildren: 'app/videos/+video-watch#VideoWatchModule', |
49 | data: { | ||
50 | preload: 3000 | ||
51 | } | ||
51 | } | 52 | } |
52 | ] | 53 | ] |
53 | } | 54 | } |