Client: fix lint
This commit is contained in:
parent
f6f7dfee01
commit
7af75da41b
9 changed files with 12 additions and 13 deletions
|
@ -8,7 +8,6 @@ const AssetsPlugin = require('assets-webpack-plugin')
|
|||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
|
||||
const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin')
|
||||
const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin')
|
||||
const ProvidePlugin = require('webpack/lib/ProvidePlugin')
|
||||
const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin')
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
||||
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin
|
||||
|
|
|
@ -45,7 +45,7 @@ export class FriendListComponent {
|
|||
valuePrepareFunction: Utils.dateToHuman
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
constructor(
|
||||
private notificationsService: NotificationsService,
|
||||
|
@ -56,7 +56,7 @@ export class FriendListComponent {
|
|||
}
|
||||
|
||||
hasFriends() {
|
||||
return this.friendsSource.count() != 0;
|
||||
return this.friendsSource.count() !== 0;
|
||||
}
|
||||
|
||||
quitFriends() {
|
||||
|
|
|
@ -49,7 +49,7 @@ export class UserListComponent {
|
|||
valuePrepareFunction: Utils.dateToHuman
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
constructor(
|
||||
private notificationsService: NotificationsService,
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Component } from '@angular/core';
|
|||
|
||||
import { NotificationsService } from 'angular2-notifications';
|
||||
|
||||
import { Utils, VideoAbuseService, VideoAbuse} from '../../../shared';
|
||||
import { Utils, VideoAbuseService, VideoAbuse } from '../../../shared';
|
||||
|
||||
@Component({
|
||||
selector: 'my-video-abuse-list',
|
||||
|
@ -55,7 +55,7 @@ export class VideoAbuseListComponent {
|
|||
valuePrepareFunction: Utils.dateToHuman
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
constructor(
|
||||
private notificationsService: NotificationsService,
|
||||
|
|
|
@ -7,7 +7,7 @@ export class ConfirmService {
|
|||
showConfirm = new Subject<{ title, message }>();
|
||||
confirmResponse = new Subject<boolean>();
|
||||
|
||||
confirm(message: string = '', title: string = '') {
|
||||
confirm(message = '', title = '') {
|
||||
this.showConfirm.next({ title, message });
|
||||
|
||||
return this.confirmResponse.asObservable().first();
|
||||
|
|
|
@ -8,14 +8,14 @@ export class RestDataSource extends ServerDataSource {
|
|||
endPoint: endpoint,
|
||||
sortFieldKey: 'sort',
|
||||
dataKey: 'data'
|
||||
}
|
||||
};
|
||||
|
||||
super(http, options);
|
||||
}
|
||||
|
||||
protected extractTotalFromResponse(res) {
|
||||
const rawData = res.json();
|
||||
return rawData ? parseInt(rawData.total): 0;
|
||||
return rawData ? parseInt(rawData.total) : 0;
|
||||
}
|
||||
|
||||
protected addSortRequestOptions(requestOptions: RequestOptionsArgs) {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { DatePipe } from '@angular/common';
|
|||
export class Utils {
|
||||
|
||||
static dateToHuman(date: String) {
|
||||
return new DatePipe('en').transform(date, 'medium')
|
||||
return new DatePipe('en').transform(date, 'medium');
|
||||
}
|
||||
|
||||
static getRowDeleteButton() {
|
||||
|
|
|
@ -54,7 +54,7 @@ export class VideoReportComponent extends FormReactive implements OnInit {
|
|||
}
|
||||
|
||||
report() {
|
||||
const reason = this.form.value['reason']
|
||||
const reason = this.form.value['reason'];
|
||||
|
||||
this.videoAbuseService.reportVideo(this.video.id, reason)
|
||||
.subscribe(
|
||||
|
|
|
@ -15,8 +15,8 @@ export class WebTorrentService {
|
|||
constructor() {
|
||||
this.client = new WebTorrent({ dht: false });
|
||||
|
||||
this.client.on('error', (err) => this.errors.next(err))
|
||||
this.client.on('warning', (err) => this.warnings.next(err))
|
||||
this.client.on('error', (err) => this.errors.next(err));
|
||||
this.client.on('warning', (err) => this.warnings.next(err));
|
||||
}
|
||||
|
||||
add(magnetUri: string, callback: Function) {
|
||||
|
|
Loading…
Reference in a new issue