X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2Fvideos-routing.module.ts;h=11a087d0af38567642cdb95d2d9c77fc0e215e48;hb=c62a34d36bf498cb81c6611e58079535325b92d8;hp=69a9232ce52eeab2c879bc6c9170bc1fe2014f73;hpb=f0a3988066f72a28bb44520af072f18d91d77dde;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts index 69a9232ce..11a087d0a 100644 --- a/client/src/app/videos/videos-routing.module.ts +++ b/client/src/app/videos/videos-routing.module.ts @@ -4,6 +4,7 @@ import { VideoLocalComponent } from '@app/videos/video-list/video-local.componen import { MetaGuard } from '@ngx-meta/core' import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' import { VideoTrendingComponent } from './video-list/video-trending.component' +import { VideoMostLikedComponent } from './video-list/video-most-liked.component' import { VideosComponent } from './videos.component' import { VideoUserSubscriptionsComponent } from '@app/videos/video-list/video-user-subscriptions.component' import { VideoOverviewComponent } from '@app/videos/video-list/video-overview.component' @@ -19,7 +20,7 @@ const videosRoutes: Routes = [ component: VideoOverviewComponent, data: { meta: { - title: 'Videos overview' + title: 'Discover videos' } } }, @@ -29,6 +30,23 @@ const videosRoutes: Routes = [ data: { meta: { title: 'Trending videos' + }, + reuse: { + enabled: true, + key: 'trending-videos-list' + } + } + }, + { + path: 'most-liked', + component: VideoMostLikedComponent, + data: { + meta: { + title: 'Most liked videos' + }, + reuse: { + enabled: true, + key: 'most-liked-videos-list' } } }, @@ -38,6 +56,10 @@ const videosRoutes: Routes = [ data: { meta: { title: 'Recently added videos' + }, + reuse: { + enabled: true, + key: 'recently-added-videos-list' } } }, @@ -47,6 +69,10 @@ const videosRoutes: Routes = [ data: { meta: { title: 'Subscriptions' + }, + reuse: { + enabled: true, + key: 'subscription-videos-list' } } }, @@ -56,12 +82,16 @@ const videosRoutes: Routes = [ data: { meta: { title: 'Local videos' + }, + reuse: { + enabled: true, + key: 'local-videos-list' } } }, { path: 'upload', - loadChildren: 'app/videos/+video-edit/video-add.module#VideoAddModule', + loadChildren: () => import('@app/videos/+video-edit/video-add.module').then(m => m.VideoAddModule), data: { meta: { title: 'Upload a video' @@ -70,7 +100,7 @@ const videosRoutes: Routes = [ }, { path: 'update/:uuid', - loadChildren: 'app/videos/+video-edit/video-update.module#VideoUpdateModule', + loadChildren: () => import('@app/videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule), data: { meta: { title: 'Edit a video' @@ -79,7 +109,7 @@ const videosRoutes: Routes = [ }, { path: 'watch', - loadChildren: 'app/videos/+video-watch/video-watch.module#VideoWatchModule', + loadChildren: () => import('@app/videos/+video-watch/video-watch.module').then(m => m.VideoWatchModule), data: { preload: 3000 }