Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Client: fix lint

Chocobozzz7af75da41ba3
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js
index 2d227f6f8d..08b8a4b09c 100644
--- a/client/config/webpack.common.js
+++ b/client/config/webpack.common.js
@@ -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
diff --git a/client/src/app/+admin/friends/friend-list/friend-list.component.ts b/client/src/app/+admin/friends/friend-list/friend-list.component.ts
index f294276402..9783adf16a 100644
--- a/client/src/app/+admin/friends/friend-list/friend-list.component.ts
+++ b/client/src/app/+admin/friends/friend-list/friend-list.component.ts
@@ -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() {
diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts
index db025d3a82..c27b96e28c 100644
--- a/client/src/app/+admin/users/user-list/user-list.component.ts
+++ b/client/src/app/+admin/users/user-list/user-list.component.ts
@@ -49,7 +49,7 @@ export class UserListComponent {
valuePrepareFunction: Utils.dateToHuman
}
}
- }
+ };
constructor(
private notificationsService: NotificationsService,
diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts
index 2f22a4ab07..f59c4fffb4 100644
--- a/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts
+++ b/client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts
@@ -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,
diff --git a/client/src/app/core/confirm/confirm.service.ts b/client/src/app/core/confirm/confirm.service.ts
index b979697959..08127a66ff 100644
--- a/client/src/app/core/confirm/confirm.service.ts
+++ b/client/src/app/core/confirm/confirm.service.ts
@@ -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();
diff --git a/client/src/app/shared/rest/rest-data-source.ts b/client/src/app/shared/rest/rest-data-source.ts
index 847dd7c560..1def38c73a 100644
--- a/client/src/app/shared/rest/rest-data-source.ts
+++ b/client/src/app/shared/rest/rest-data-source.ts
@@ -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) {
diff --git a/client/src/app/shared/utils.ts b/client/src/app/shared/utils.ts
index 1dd6f96f0b..5ab41fe5a3 100644
--- a/client/src/app/shared/utils.ts
+++ b/client/src/app/shared/utils.ts
@@ -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() {
diff --git a/client/src/app/videos/video-watch/video-report.component.ts b/client/src/app/videos/video-watch/video-report.component.ts
index 7906fdb5c4..c4cf936ce9 100644
--- a/client/src/app/videos/video-watch/video-report.component.ts
+++ b/client/src/app/videos/video-watch/video-report.component.ts
@@ -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(
diff --git a/client/src/app/videos/video-watch/webtorrent.service.ts b/client/src/app/videos/video-watch/webtorrent.service.ts
index 1839c7c277..0192167ee8 100644
--- a/client/src/app/videos/video-watch/webtorrent.service.ts
+++ b/client/src/app/videos/video-watch/webtorrent.service.ts
@@ -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) {