diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-17 14:42:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-18 08:35:06 +0200 |
commit | 9df52d660feb722404be00a50f3c8a612bec1c15 (patch) | |
tree | dde52880fa012874d24c60f64eb596b0a789cc8b /client/src/app/shared/shared-instance | |
parent | adb8809d43648ea0a64d6845bb39aa3bd0e005a6 (diff) | |
download | PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.gz PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.zst PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.zip |
Migrate client to eslint
Diffstat (limited to 'client/src/app/shared/shared-instance')
5 files changed, 13 insertions, 12 deletions
diff --git a/client/src/app/shared/shared-instance/instance-about-accordion.component.ts b/client/src/app/shared/shared-instance/instance-about-accordion.component.ts index 855c06aa1..1eb7b49b6 100644 --- a/client/src/app/shared/shared-instance/instance-about-accordion.component.ts +++ b/client/src/app/shared/shared-instance/instance-about-accordion.component.ts | |||
@@ -7,7 +7,7 @@ import { About } from '@shared/models/server' | |||
7 | @Component({ | 7 | @Component({ |
8 | selector: 'my-instance-about-accordion', | 8 | selector: 'my-instance-about-accordion', |
9 | templateUrl: './instance-about-accordion.component.html', | 9 | templateUrl: './instance-about-accordion.component.html', |
10 | styleUrls: ['./instance-about-accordion.component.scss'] | 10 | styleUrls: [ './instance-about-accordion.component.scss' ] |
11 | }) | 11 | }) |
12 | export class InstanceAboutAccordionComponent implements OnInit { | 12 | export class InstanceAboutAccordionComponent implements OnInit { |
13 | @ViewChild('accordion', { static: true }) accordion: NgbAccordion | 13 | @ViewChild('accordion', { static: true }) accordion: NgbAccordion |
diff --git a/client/src/app/shared/shared-instance/instance-follow.service.ts b/client/src/app/shared/shared-instance/instance-follow.service.ts index af44020cf..a6799d3e1 100644 --- a/client/src/app/shared/shared-instance/instance-follow.service.ts +++ b/client/src/app/shared/shared-instance/instance-follow.service.ts | |||
@@ -19,10 +19,10 @@ export class InstanceFollowService { | |||
19 | } | 19 | } |
20 | 20 | ||
21 | getFollowing (options: { | 21 | getFollowing (options: { |
22 | pagination: RestPagination, | 22 | pagination: RestPagination |
23 | sort: SortMeta, | 23 | sort: SortMeta |
24 | search?: string, | 24 | search?: string |
25 | actorType?: ActivityPubActorType, | 25 | actorType?: ActivityPubActorType |
26 | state?: FollowState | 26 | state?: FollowState |
27 | }): Observable<ResultList<ActorFollow>> { | 27 | }): Observable<ResultList<ActorFollow>> { |
28 | const { pagination, sort, search, state, actorType } = options | 28 | const { pagination, sort, search, state, actorType } = options |
@@ -42,10 +42,10 @@ export class InstanceFollowService { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | getFollowers (options: { | 44 | getFollowers (options: { |
45 | pagination: RestPagination, | 45 | pagination: RestPagination |
46 | sort: SortMeta, | 46 | sort: SortMeta |
47 | search?: string, | 47 | search?: string |
48 | actorType?: ActivityPubActorType, | 48 | actorType?: ActivityPubActorType |
49 | state?: FollowState | 49 | state?: FollowState |
50 | }): Observable<ResultList<ActorFollow>> { | 50 | }): Observable<ResultList<ActorFollow>> { |
51 | const { pagination, sort, search, state, actorType } = options | 51 | const { pagination, sort, search, state, actorType } = options |
diff --git a/client/src/app/shared/shared-instance/instance-statistics.component.ts b/client/src/app/shared/shared-instance/instance-statistics.component.ts index 40aa8a4c0..0618efe69 100644 --- a/client/src/app/shared/shared-instance/instance-statistics.component.ts +++ b/client/src/app/shared/shared-instance/instance-statistics.component.ts | |||
@@ -17,6 +17,8 @@ export class InstanceStatisticsComponent implements OnInit { | |||
17 | 17 | ||
18 | ngOnInit () { | 18 | ngOnInit () { |
19 | this.serverService.getServerStats() | 19 | this.serverService.getServerStats() |
20 | .subscribe(res => this.serverStats = res) | 20 | .subscribe(res => { |
21 | this.serverStats = res | ||
22 | }) | ||
21 | } | 23 | } |
22 | } | 24 | } |
diff --git a/client/src/app/shared/shared-instance/instance.service.ts b/client/src/app/shared/shared-instance/instance.service.ts index 70e022178..0241f56ef 100644 --- a/client/src/app/shared/shared-instance/instance.service.ts +++ b/client/src/app/shared/shared-instance/instance.service.ts | |||
@@ -51,7 +51,7 @@ export class InstanceService { | |||
51 | } | 51 | } |
52 | 52 | ||
53 | for (const key of Object.keys(html)) { | 53 | for (const key of Object.keys(html)) { |
54 | html[ key ] = await this.markdownService.textMarkdownToHTML(about.instance[ key ]) | 54 | html[key] = await this.markdownService.textMarkdownToHTML(about.instance[key]) |
55 | } | 55 | } |
56 | 56 | ||
57 | return html | 57 | return html |
diff --git a/client/src/app/shared/shared-instance/shared-instance.module.ts b/client/src/app/shared/shared-instance/shared-instance.module.ts index 5efb95a7d..13c681ab8 100644 --- a/client/src/app/shared/shared-instance/shared-instance.module.ts +++ b/client/src/app/shared/shared-instance/shared-instance.module.ts | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | import { NgModule } from '@angular/core' | 2 | import { NgModule } from '@angular/core' |
3 | import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap' | 3 | import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap' |
4 | import { SharedCustomMarkupModule } from '../shared-custom-markup' | ||
5 | import { SharedMainModule } from '../shared-main/shared-main.module' | 4 | import { SharedMainModule } from '../shared-main/shared-main.module' |
6 | import { FeatureBooleanComponent } from './feature-boolean.component' | 5 | import { FeatureBooleanComponent } from './feature-boolean.component' |
7 | import { InstanceAboutAccordionComponent } from './instance-about-accordion.component' | 6 | import { InstanceAboutAccordionComponent } from './instance-about-accordion.component' |