aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/videos-routing.module.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-12-01 14:46:22 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-12-01 14:46:22 +0100
commit9bf9d2a5c223bf006496ae7adf0c0bd7a7975108 (patch)
tree7e72814af43176ad96841046a9310af001d23a14 /client/src/app/videos/videos-routing.module.ts
parent26c6ee80d0fecfce595e8970f15717560b4f4ceb (diff)
downloadPeerTube-9bf9d2a5c223bf006496ae7adf0c0bd7a7975108.tar.gz
PeerTube-9bf9d2a5c223bf006496ae7adf0c0bd7a7975108.tar.zst
PeerTube-9bf9d2a5c223bf006496ae7adf0c0bd7a7975108.zip
Begin videos list new design
Diffstat (limited to 'client/src/app/videos/videos-routing.module.ts')
-rw-r--r--client/src/app/videos/videos-routing.module.ts26
1 files changed, 20 insertions, 6 deletions
diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts
index 3ca3e5486..1f894df7a 100644
--- a/client/src/app/videos/videos-routing.module.ts
+++ b/client/src/app/videos/videos-routing.module.ts
@@ -1,9 +1,9 @@
1import { NgModule } from '@angular/core' 1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router' 2import { RouterModule, Routes } from '@angular/router'
3
4import { MetaGuard } from '@ngx-meta/core' 3import { MetaGuard } from '@ngx-meta/core'
5 4import { MyVideosComponent } from './video-list'
6import { VideoListComponent, MyVideosComponent } from './video-list' 5import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component'
6import { VideoTrendingComponent } from './video-list/video-trending.component'
7import { VideosComponent } from './videos.component' 7import { VideosComponent } from './videos.component'
8 8
9const videosRoutes: Routes = [ 9const videosRoutes: Routes = [
@@ -13,6 +13,11 @@ const videosRoutes: Routes = [
13 canActivateChild: [ MetaGuard ], 13 canActivateChild: [ MetaGuard ],
14 children: [ 14 children: [
15 { 15 {
16 path: 'list',
17 pathMatch: 'full',
18 redirectTo: 'recently-added'
19 },
20 {
16 path: 'mine', 21 path: 'mine',
17 component: MyVideosComponent, 22 component: MyVideosComponent,
18 data: { 23 data: {
@@ -22,11 +27,20 @@ const videosRoutes: Routes = [
22 } 27 }
23 }, 28 },
24 { 29 {
25 path: 'list', 30 path: 'trending',
26 component: VideoListComponent, 31 component: VideoTrendingComponent,
32 data: {
33 meta: {
34 title: 'Trending videos'
35 }
36 }
37 },
38 {
39 path: 'recently-added',
40 component: VideoRecentlyAddedComponent,
27 data: { 41 data: {
28 meta: { 42 meta: {
29 title: 'Videos list' 43 title: 'Recently added videos'
30 } 44 }
31 } 45 }
32 }, 46 },