1
0
Fork 0

Client: fix lint

This commit is contained in:
Chocobozzz 2017-02-10 11:51:51 +01:00
parent f6f7dfee01
commit 7af75da41b
9 changed files with 12 additions and 13 deletions

View file

@ -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

View file

@ -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() {

View file

@ -49,7 +49,7 @@ export class UserListComponent {
valuePrepareFunction: Utils.dateToHuman
}
}
}
};
constructor(
private notificationsService: NotificationsService,

View file

@ -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,

View file

@ -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();

View file

@ -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) {

View file

@ -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() {

View file

@ -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(

View file

@ -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) {