]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Client: fix lint
authorChocobozzz <florian.bigard@gmail.com>
Fri, 10 Feb 2017 10:51:51 +0000 (11:51 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Fri, 10 Feb 2017 10:52:45 +0000 (11:52 +0100)
client/config/webpack.common.js
client/src/app/+admin/friends/friend-list/friend-list.component.ts
client/src/app/+admin/users/user-list/user-list.component.ts
client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts
client/src/app/core/confirm/confirm.service.ts
client/src/app/shared/rest/rest-data-source.ts
client/src/app/shared/utils.ts
client/src/app/videos/video-watch/video-report.component.ts
client/src/app/videos/video-watch/webtorrent.service.ts

index 2d227f6f8de9a5dce9bad1e8fc11b3eea6d1f9f9..08b8a4b09cedf69aa44a3804ba5f984b1e4400c3 100644 (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
index f294276402a755027f7e5d8a5a3f32392a521784..9783adf16afe556d21384763dd469aa64f829431 100644 (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() {
index db025d3a82a71d6a5680cbc4eddb41747f5bbc55..c27b96e28c32d5611d1d384a7833581794aaeeda 100644 (file)
@@ -49,7 +49,7 @@ export class UserListComponent {
         valuePrepareFunction: Utils.dateToHuman
       }
     }
-  }
+  };
 
   constructor(
     private notificationsService: NotificationsService,
index 2f22a4ab07998c2df85ea7d4ae929a5f3c6c48e1..f59c4fffb4ac1a01f2808dbe4ee5800d76c56a47 100644 (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,
index b9796979591754d23999796d76748ed7084f7fc8..08127a66ff223f146f6530be2a9eab34b71c25a0 100644 (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();
index 847dd7c560ef157b1ee8082ead36d08b3166b866..1def38c73acb45a5e86250bf546bbe9df721b145 100644 (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) {
index 1dd6f96f0b77c24abd6ea50628bb379ecea4206f..5ab41fe5a3fac07c11f74c2bf59f48b9e6e5cf16 100644 (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() {
index 7906fdb5c429c3da6cc4b10c5dfb583cc2651b38..c4cf936ce93473371c6a79f8cf43d18d24e37430 100644 (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(
index 1839c7c277c8112f1ef3aeed233dafcff4a1dd5a..0192167ee88405922fa06f4baace204139253105 100644 (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) {