diff options
Diffstat (limited to 'client/src/app/+videos/videos-routing.module.ts')
-rw-r--r-- | client/src/app/+videos/videos-routing.module.ts | 42 |
1 files changed, 5 insertions, 37 deletions
diff --git a/client/src/app/+videos/videos-routing.module.ts b/client/src/app/+videos/videos-routing.module.ts index 973935af8..16e3b9bb2 100644 --- a/client/src/app/+videos/videos-routing.module.ts +++ b/client/src/app/+videos/videos-routing.module.ts | |||
@@ -1,11 +1,9 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | 2 | import { RouterModule, Routes } from '@angular/router' |
3 | import { LoginGuard, TrendingGuard } from '@app/core' | 3 | import { LoginGuard } from '@app/core' |
4 | import { MetaGuard } from '@ngx-meta/core' | 4 | import { MetaGuard } from '@ngx-meta/core' |
5 | import { VideoTrendingComponent } from './video-list' | ||
5 | import { VideoOverviewComponent } from './video-list/overview/video-overview.component' | 6 | import { VideoOverviewComponent } from './video-list/overview/video-overview.component' |
6 | import { VideoHotComponent } from './video-list/trending/video-hot.component' | ||
7 | import { VideoMostLikedComponent } from './video-list/trending/video-most-liked.component' | ||
8 | import { VideoMostViewedComponent } from './video-list/trending/video-most-viewed.component' | ||
9 | import { VideoLocalComponent } from './video-list/video-local.component' | 7 | import { VideoLocalComponent } from './video-list/video-local.component' |
10 | import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' | 8 | import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' |
11 | import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component' | 9 | import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component' |
@@ -28,46 +26,16 @@ const videosRoutes: Routes = [ | |||
28 | }, | 26 | }, |
29 | { | 27 | { |
30 | path: 'trending', | 28 | path: 'trending', |
31 | canActivate: [ TrendingGuard ] | 29 | component: VideoTrendingComponent, |
32 | }, | ||
33 | { | ||
34 | path: 'hot', | ||
35 | component: VideoHotComponent, | ||
36 | data: { | 30 | data: { |
37 | meta: { | 31 | meta: { |
38 | title: $localize`Hot videos` | 32 | title: $localize`Trending videos` |
39 | }, | ||
40 | reuse: { | ||
41 | enabled: true, | ||
42 | key: 'hot-videos-list' | ||
43 | } | ||
44 | } | ||
45 | }, | ||
46 | { | ||
47 | path: 'most-viewed', | ||
48 | component: VideoMostViewedComponent, | ||
49 | data: { | ||
50 | meta: { | ||
51 | title: $localize`Most viewed videos` | ||
52 | }, | ||
53 | reuse: { | ||
54 | enabled: true, | ||
55 | key: 'most-viewed-videos-list' | ||
56 | } | 33 | } |
57 | } | 34 | } |
58 | }, | 35 | }, |
59 | { | 36 | { |
60 | path: 'most-liked', | 37 | path: 'most-liked', |
61 | component: VideoMostLikedComponent, | 38 | redirectTo: 'trending?alg=most-liked' |
62 | data: { | ||
63 | meta: { | ||
64 | title: $localize`Most liked videos` | ||
65 | }, | ||
66 | reuse: { | ||
67 | enabled: true, | ||
68 | key: 'most-liked-videos-list' | ||
69 | } | ||
70 | } | ||
71 | }, | 39 | }, |
72 | { | 40 | { |
73 | path: 'recently-added', | 41 | path: 'recently-added', |