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
valuePrepareFunction: Utils.dateToHuman
}
}
- }
+ };
constructor(
private notificationsService: NotificationsService,
}
hasFriends() {
- return this.friendsSource.count() != 0;
+ return this.friendsSource.count() !== 0;
}
quitFriends() {
valuePrepareFunction: Utils.dateToHuman
}
}
- }
+ };
constructor(
private notificationsService: NotificationsService,
import { NotificationsService } from 'angular2-notifications';
-import { Utils, VideoAbuseService, VideoAbuse} from '../../../shared';
+import { Utils, VideoAbuseService, VideoAbuse } from '../../../shared';
@Component({
selector: 'my-video-abuse-list',
valuePrepareFunction: Utils.dateToHuman
}
}
- }
+ };
constructor(
private notificationsService: NotificationsService,
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();
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) {
export class Utils {
static dateToHuman(date: String) {
- return new DatePipe('en').transform(date, 'medium')
+ return new DatePipe('en').transform(date, 'medium');
}
static getRowDeleteButton() {
}
report() {
- const reason = this.form.value['reason']
+ const reason = this.form.value['reason'];
this.videoAbuseService.reportVideo(this.video.id, reason)
.subscribe(
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) {