diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-22 00:12:44 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-28 15:55:34 +0100 |
commit | 5bcbcbe338ef5a1ed14f084311d013fbb25dabcf (patch) | |
tree | b0f6382b30b67f1f7adddaf7d12af9adae0c9f5d /client/src/app/+videos/videos-routing.module.ts | |
parent | 7a4994873c0b3394d04e16e877fc7418bc8b146a (diff) | |
download | PeerTube-5bcbcbe338ef5a1ed14f084311d013fbb25dabcf.tar.gz PeerTube-5bcbcbe338ef5a1ed14f084311d013fbb25dabcf.tar.zst PeerTube-5bcbcbe338ef5a1ed14f084311d013fbb25dabcf.zip |
modularize abstract video list header and implement video hotness recommendation variant
Diffstat (limited to 'client/src/app/+videos/videos-routing.module.ts')
-rw-r--r-- | client/src/app/+videos/videos-routing.module.ts | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/client/src/app/+videos/videos-routing.module.ts b/client/src/app/+videos/videos-routing.module.ts index f658182e0..b6850b436 100644 --- a/client/src/app/+videos/videos-routing.module.ts +++ b/client/src/app/+videos/videos-routing.module.ts | |||
@@ -3,10 +3,11 @@ import { RouterModule, Routes } from '@angular/router' | |||
3 | import { LoginGuard } 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 { VideoOverviewComponent } from './video-list/overview/video-overview.component' | 5 | 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 { VideoTrendingComponent } from './video-list/trending/video-trending.component' | ||
6 | import { VideoLocalComponent } from './video-list/video-local.component' | 9 | import { VideoLocalComponent } from './video-list/video-local.component' |
7 | import { VideoMostLikedComponent } from './video-list/video-most-liked.component' | ||
8 | import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' | 10 | import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' |
9 | import { VideoTrendingComponent } from './video-list/video-trending.component' | ||
10 | import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component' | 11 | import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component' |
11 | import { VideosComponent } from './videos.component' | 12 | import { VideosComponent } from './videos.component' |
12 | 13 | ||
@@ -39,6 +40,19 @@ const videosRoutes: Routes = [ | |||
39 | } | 40 | } |
40 | }, | 41 | }, |
41 | { | 42 | { |
43 | path: 'hot', | ||
44 | component: VideoHotComponent, | ||
45 | data: { | ||
46 | meta: { | ||
47 | title: $localize`Hot videos` | ||
48 | }, | ||
49 | reuse: { | ||
50 | enabled: true, | ||
51 | key: 'hot-videos-list' | ||
52 | } | ||
53 | } | ||
54 | }, | ||
55 | { | ||
42 | path: 'most-liked', | 56 | path: 'most-liked', |
43 | component: VideoMostLikedComponent, | 57 | component: VideoMostLikedComponent, |
44 | data: { | 58 | data: { |