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:
parent
adb8809d43
commit
9df52d660f
215 changed files with 2052 additions and 1196 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -17,6 +17,8 @@ export class InstanceStatisticsComponent implements OnInit {
|
|||
|
||||
ngOnInit () {
|
||||
this.serverService.getServerStats()
|
||||
.subscribe(res => this.serverStats = res)
|
||||
.subscribe(res => {
|
||||
this.serverStats = res
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue