1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Migrate client to eslint

This commit is contained in:
Chocobozzz 2021-08-17 14:42:53 +02:00
parent adb8809d43
commit 9df52d660f
No known key found for this signature in database
GPG key ID: 583A612D890159BE
215 changed files with 2052 additions and 1196 deletions

View file

@ -7,7 +7,7 @@ import { About } from '@shared/models/server'
@Component({
selector: 'my-instance-about-accordion',
templateUrl: './instance-about-accordion.component.html',
styleUrls: ['./instance-about-accordion.component.scss']
styleUrls: [ './instance-about-accordion.component.scss' ]
})
export class InstanceAboutAccordionComponent implements OnInit {
@ViewChild('accordion', { static: true }) accordion: NgbAccordion

View file

@ -19,10 +19,10 @@ export class InstanceFollowService {
}
getFollowing (options: {
pagination: RestPagination,
sort: SortMeta,
search?: string,
actorType?: ActivityPubActorType,
pagination: RestPagination
sort: SortMeta
search?: string
actorType?: ActivityPubActorType
state?: FollowState
}): Observable<ResultList<ActorFollow>> {
const { pagination, sort, search, state, actorType } = options
@ -42,10 +42,10 @@ export class InstanceFollowService {
}
getFollowers (options: {
pagination: RestPagination,
sort: SortMeta,
search?: string,
actorType?: ActivityPubActorType,
pagination: RestPagination
sort: SortMeta
search?: string
actorType?: ActivityPubActorType
state?: FollowState
}): Observable<ResultList<ActorFollow>> {
const { pagination, sort, search, state, actorType } = options

View file

@ -17,6 +17,8 @@ export class InstanceStatisticsComponent implements OnInit {
ngOnInit () {
this.serverService.getServerStats()
.subscribe(res => this.serverStats = res)
.subscribe(res => {
this.serverStats = res
})
}
}

View file

@ -51,7 +51,7 @@ export class InstanceService {
}
for (const key of Object.keys(html)) {
html[ key ] = await this.markdownService.textMarkdownToHTML(about.instance[ key ])
html[key] = await this.markdownService.textMarkdownToHTML(about.instance[key])
}
return html

View file

@ -1,7 +1,6 @@
import { NgModule } from '@angular/core'
import { NgbAccordionModule } from '@ng-bootstrap/ng-bootstrap'
import { SharedCustomMarkupModule } from '../shared-custom-markup'
import { SharedMainModule } from '../shared-main/shared-main.module'
import { FeatureBooleanComponent } from './feature-boolean.component'
import { InstanceAboutAccordionComponent } from './instance-about-accordion.component'