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/+accounts | |
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/+accounts')
-rw-r--r-- | client/src/app/+accounts/account-search/account-search.component.ts | 10 | ||||
-rw-r--r-- | client/src/app/+accounts/account-videos/account-videos.component.ts | 5 |
2 files changed, 8 insertions, 7 deletions
diff --git a/client/src/app/+accounts/account-search/account-search.component.ts b/client/src/app/+accounts/account-search/account-search.component.ts index 10c7a12d8..378aa78c4 100644 --- a/client/src/app/+accounts/account-search/account-search.component.ts +++ b/client/src/app/+accounts/account-search/account-search.component.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Subscription } from 'rxjs' | 1 | import { Subscription } from 'rxjs' |
2 | import { first, tap } from 'rxjs/operators' | 2 | import { first, tap } from 'rxjs/operators' |
3 | import { Component, OnDestroy, OnInit } from '@angular/core' | 3 | import { Component, ComponentFactoryResolver, OnDestroy, OnInit } from '@angular/core' |
4 | import { ActivatedRoute, Router } from '@angular/router' | 4 | import { ActivatedRoute, Router } from '@angular/router' |
5 | import { AuthService, ConfirmService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' | 5 | import { AuthService, ConfirmService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' |
6 | import { immutableAssign } from '@app/helpers' | 6 | import { immutableAssign } from '@app/helpers' |
@@ -11,9 +11,7 @@ import { VideoFilter } from '@shared/models' | |||
11 | @Component({ | 11 | @Component({ |
12 | selector: 'my-account-search', | 12 | selector: 'my-account-search', |
13 | templateUrl: '../../shared/shared-video-miniature/abstract-video-list.html', | 13 | templateUrl: '../../shared/shared-video-miniature/abstract-video-list.html', |
14 | styleUrls: [ | 14 | styleUrls: [ '../../shared/shared-video-miniature/abstract-video-list.scss' ] |
15 | '../../shared/shared-video-miniature/abstract-video-list.scss' | ||
16 | ] | ||
17 | }) | 15 | }) |
18 | export class AccountSearchComponent extends AbstractVideoList implements OnInit, OnDestroy { | 16 | export class AccountSearchComponent extends AbstractVideoList implements OnInit, OnDestroy { |
19 | titlePage: string | 17 | titlePage: string |
@@ -35,6 +33,7 @@ export class AccountSearchComponent extends AbstractVideoList implements OnInit, | |||
35 | protected confirmService: ConfirmService, | 33 | protected confirmService: ConfirmService, |
36 | protected screenService: ScreenService, | 34 | protected screenService: ScreenService, |
37 | protected storageService: LocalStorageService, | 35 | protected storageService: LocalStorageService, |
36 | protected cfr: ComponentFactoryResolver, | ||
38 | private accountService: AccountService, | 37 | private accountService: AccountService, |
39 | private videoService: VideoService | 38 | private videoService: VideoService |
40 | ) { | 39 | ) { |
@@ -99,6 +98,7 @@ export class AccountSearchComponent extends AbstractVideoList implements OnInit, | |||
99 | } | 98 | } |
100 | 99 | ||
101 | generateSyndicationList () { | 100 | generateSyndicationList () { |
102 | /* disable syndication */ | 101 | /* method disabled */ |
102 | throw new Error('Method not implemented.') | ||
103 | } | 103 | } |
104 | } | 104 | } |
diff --git a/client/src/app/+accounts/account-videos/account-videos.component.ts b/client/src/app/+accounts/account-videos/account-videos.component.ts index 58d0719fd..da3903d2c 100644 --- a/client/src/app/+accounts/account-videos/account-videos.component.ts +++ b/client/src/app/+accounts/account-videos/account-videos.component.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Subscription } from 'rxjs' | 1 | import { Subscription } from 'rxjs' |
2 | import { first, tap } from 'rxjs/operators' | 2 | import { first, tap } from 'rxjs/operators' |
3 | import { Component, OnDestroy, OnInit } from '@angular/core' | 3 | import { Component, ComponentFactoryResolver, OnDestroy, OnInit } from '@angular/core' |
4 | import { ActivatedRoute, Router } from '@angular/router' | 4 | import { ActivatedRoute, Router } from '@angular/router' |
5 | import { AuthService, ConfirmService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' | 5 | import { AuthService, ConfirmService, LocalStorageService, Notifier, ScreenService, ServerService, UserService } from '@app/core' |
6 | import { immutableAssign } from '@app/helpers' | 6 | import { immutableAssign } from '@app/helpers' |
@@ -35,7 +35,8 @@ export class AccountVideosComponent extends AbstractVideoList implements OnInit, | |||
35 | protected screenService: ScreenService, | 35 | protected screenService: ScreenService, |
36 | protected storageService: LocalStorageService, | 36 | protected storageService: LocalStorageService, |
37 | private accountService: AccountService, | 37 | private accountService: AccountService, |
38 | private videoService: VideoService | 38 | private videoService: VideoService, |
39 | protected cfr: ComponentFactoryResolver | ||
39 | ) { | 40 | ) { |
40 | super() | 41 | super() |
41 | } | 42 | } |