diff options
9 files changed, 12 insertions, 13 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js index 2d227f6f8..08b8a4b09 100644 --- a/client/config/webpack.common.js +++ b/client/config/webpack.common.js | |||
@@ -8,7 +8,6 @@ const AssetsPlugin = require('assets-webpack-plugin') | |||
8 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin | 8 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin |
9 | const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin') | 9 | const NormalModuleReplacementPlugin = require('webpack/lib/NormalModuleReplacementPlugin') |
10 | const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin') | 10 | const ContextReplacementPlugin = require('webpack/lib/ContextReplacementPlugin') |
11 | const ProvidePlugin = require('webpack/lib/ProvidePlugin') | ||
12 | const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin') | 11 | const CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin') |
13 | const CopyWebpackPlugin = require('copy-webpack-plugin') | 12 | const CopyWebpackPlugin = require('copy-webpack-plugin') |
14 | const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin | 13 | 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 f29427640..9783adf16 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 { | |||
45 | valuePrepareFunction: Utils.dateToHuman | 45 | valuePrepareFunction: Utils.dateToHuman |
46 | } | 46 | } |
47 | } | 47 | } |
48 | } | 48 | }; |
49 | 49 | ||
50 | constructor( | 50 | constructor( |
51 | private notificationsService: NotificationsService, | 51 | private notificationsService: NotificationsService, |
@@ -56,7 +56,7 @@ export class FriendListComponent { | |||
56 | } | 56 | } |
57 | 57 | ||
58 | hasFriends() { | 58 | hasFriends() { |
59 | return this.friendsSource.count() != 0; | 59 | return this.friendsSource.count() !== 0; |
60 | } | 60 | } |
61 | 61 | ||
62 | quitFriends() { | 62 | 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 db025d3a8..c27b96e28 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 { | |||
49 | valuePrepareFunction: Utils.dateToHuman | 49 | valuePrepareFunction: Utils.dateToHuman |
50 | } | 50 | } |
51 | } | 51 | } |
52 | } | 52 | }; |
53 | 53 | ||
54 | constructor( | 54 | constructor( |
55 | private notificationsService: NotificationsService, | 55 | 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 2f22a4ab0..f59c4fffb 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'; | |||
2 | 2 | ||
3 | import { NotificationsService } from 'angular2-notifications'; | 3 | import { NotificationsService } from 'angular2-notifications'; |
4 | 4 | ||
5 | import { Utils, VideoAbuseService, VideoAbuse} from '../../../shared'; | 5 | import { Utils, VideoAbuseService, VideoAbuse } from '../../../shared'; |
6 | 6 | ||
7 | @Component({ | 7 | @Component({ |
8 | selector: 'my-video-abuse-list', | 8 | selector: 'my-video-abuse-list', |
@@ -55,7 +55,7 @@ export class VideoAbuseListComponent { | |||
55 | valuePrepareFunction: Utils.dateToHuman | 55 | valuePrepareFunction: Utils.dateToHuman |
56 | } | 56 | } |
57 | } | 57 | } |
58 | } | 58 | }; |
59 | 59 | ||
60 | constructor( | 60 | constructor( |
61 | private notificationsService: NotificationsService, | 61 | private notificationsService: NotificationsService, |
diff --git a/client/src/app/core/confirm/confirm.service.ts b/client/src/app/core/confirm/confirm.service.ts index b97969795..08127a66f 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 { | |||
7 | showConfirm = new Subject<{ title, message }>(); | 7 | showConfirm = new Subject<{ title, message }>(); |
8 | confirmResponse = new Subject<boolean>(); | 8 | confirmResponse = new Subject<boolean>(); |
9 | 9 | ||
10 | confirm(message: string = '', title: string = '') { | 10 | confirm(message = '', title = '') { |
11 | this.showConfirm.next({ title, message }); | 11 | this.showConfirm.next({ title, message }); |
12 | 12 | ||
13 | return this.confirmResponse.asObservable().first(); | 13 | 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 847dd7c56..1def38c73 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 { | |||
8 | endPoint: endpoint, | 8 | endPoint: endpoint, |
9 | sortFieldKey: 'sort', | 9 | sortFieldKey: 'sort', |
10 | dataKey: 'data' | 10 | dataKey: 'data' |
11 | } | 11 | }; |
12 | 12 | ||
13 | super(http, options); | 13 | super(http, options); |
14 | } | 14 | } |
15 | 15 | ||
16 | protected extractTotalFromResponse(res) { | 16 | protected extractTotalFromResponse(res) { |
17 | const rawData = res.json(); | 17 | const rawData = res.json(); |
18 | return rawData ? parseInt(rawData.total): 0; | 18 | return rawData ? parseInt(rawData.total) : 0; |
19 | } | 19 | } |
20 | 20 | ||
21 | protected addSortRequestOptions(requestOptions: RequestOptionsArgs) { | 21 | protected addSortRequestOptions(requestOptions: RequestOptionsArgs) { |
diff --git a/client/src/app/shared/utils.ts b/client/src/app/shared/utils.ts index 1dd6f96f0..5ab41fe5a 100644 --- a/client/src/app/shared/utils.ts +++ b/client/src/app/shared/utils.ts | |||
@@ -3,7 +3,7 @@ import { DatePipe } from '@angular/common'; | |||
3 | export class Utils { | 3 | export class Utils { |
4 | 4 | ||
5 | static dateToHuman(date: String) { | 5 | static dateToHuman(date: String) { |
6 | return new DatePipe('en').transform(date, 'medium') | 6 | return new DatePipe('en').transform(date, 'medium'); |
7 | } | 7 | } |
8 | 8 | ||
9 | static getRowDeleteButton() { | 9 | 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 7906fdb5c..c4cf936ce 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 { | |||
54 | } | 54 | } |
55 | 55 | ||
56 | report() { | 56 | report() { |
57 | const reason = this.form.value['reason'] | 57 | const reason = this.form.value['reason']; |
58 | 58 | ||
59 | this.videoAbuseService.reportVideo(this.video.id, reason) | 59 | this.videoAbuseService.reportVideo(this.video.id, reason) |
60 | .subscribe( | 60 | .subscribe( |
diff --git a/client/src/app/videos/video-watch/webtorrent.service.ts b/client/src/app/videos/video-watch/webtorrent.service.ts index 1839c7c27..0192167ee 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 { | |||
15 | constructor() { | 15 | constructor() { |
16 | this.client = new WebTorrent({ dht: false }); | 16 | this.client = new WebTorrent({ dht: false }); |
17 | 17 | ||
18 | this.client.on('error', (err) => this.errors.next(err)) | 18 | this.client.on('error', (err) => this.errors.next(err)); |
19 | this.client.on('warning', (err) => this.warnings.next(err)) | 19 | this.client.on('warning', (err) => this.warnings.next(err)); |
20 | } | 20 | } |
21 | 21 | ||
22 | add(magnetUri: string, callback: Function) { | 22 | add(magnetUri: string, callback: Function) { |