From be44767854709dbf7da4ba37fe4f16ac4e297f08 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 4 Dec 2017 11:17:08 +0100 Subject: Fix lint --- client/src/app/account/account-videos/account-videos.component.html | 2 +- client/src/app/account/account-videos/account-videos.component.ts | 5 ++--- client/src/app/shared/misc/from-now.pipe.ts | 3 +-- client/src/app/shared/misc/number-formatter.pipe.ts | 2 +- .../src/app/videos/video-list/shared/video-miniature.component.html | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) (limited to 'client') diff --git a/client/src/app/account/account-videos/account-videos.component.html b/client/src/app/account/account-videos/account-videos.component.html index 94b976869..eb0a32fd3 100644 --- a/client/src/app/account/account-videos/account-videos.component.html +++ b/client/src/app/account/account-videos/account-videos.component.html @@ -8,7 +8,7 @@
{{ video.name }}
- {{ video.createdAt | fromNow }} - {{ video.views | numberFormatter }} views + {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views
diff --git a/client/src/app/account/account-videos/account-videos.component.ts b/client/src/app/account/account-videos/account-videos.component.ts index ff945825d..cc28f511a 100644 --- a/client/src/app/account/account-videos/account-videos.component.ts +++ b/client/src/app/account/account-videos/account-videos.component.ts @@ -1,8 +1,7 @@ import { Component, OnDestroy, OnInit } from '@angular/core' -import { AbstractVideoList } from '../../shared/video/abstract-video-list' -import { ActivatedRoute } from '@angular/router' -import { Router } from '@angular/router' +import { ActivatedRoute, Router } from '@angular/router' import { NotificationsService } from 'angular2-notifications' +import { AbstractVideoList } from '../../shared/video/abstract-video-list' import { VideoService } from '../../shared/video/video.service' @Component({ diff --git a/client/src/app/shared/misc/from-now.pipe.ts b/client/src/app/shared/misc/from-now.pipe.ts index 80dab02ba..fac02af0b 100644 --- a/client/src/app/shared/misc/from-now.pipe.ts +++ b/client/src/app/shared/misc/from-now.pipe.ts @@ -1,8 +1,7 @@ import { Pipe, PipeTransform } from '@angular/core' // Thanks: https://stackoverflow.com/questions/3177836/how-to-format-time-since-xxx-e-g-4-minutes-ago-similar-to-stack-exchange-site - -@Pipe({name: 'fromNow'}) +@Pipe({ name: 'myFromNow' }) export class FromNowPipe implements PipeTransform { transform (value: number) { diff --git a/client/src/app/shared/misc/number-formatter.pipe.ts b/client/src/app/shared/misc/number-formatter.pipe.ts index 2491fb1d6..8a0756a36 100644 --- a/client/src/app/shared/misc/number-formatter.pipe.ts +++ b/client/src/app/shared/misc/number-formatter.pipe.ts @@ -2,7 +2,7 @@ import { Pipe, PipeTransform } from '@angular/core' // Thanks: https://github.com/danrevah/ngx-pipes/blob/master/src/pipes/math/bytes.ts -@Pipe({name: 'numberFormatter'}) +@Pipe({ name: 'myNumberFormatter' }) export class NumberFormatterPipe implements PipeTransform { private dictionary: Array<{max: number, type: string}> = [ { max: 1000, type: '' }, diff --git a/client/src/app/videos/video-list/shared/video-miniature.component.html b/client/src/app/videos/video-list/shared/video-miniature.component.html index f2756ca3d..7ac017235 100644 --- a/client/src/app/videos/video-list/shared/video-miniature.component.html +++ b/client/src/app/videos/video-list/shared/video-miniature.component.html @@ -11,7 +11,7 @@ - {{ video.createdAt | fromNow }} - {{ video.views | numberFormatter }} views + {{ video.createdAt | myFromNow }} - {{ video.views | myNumberFormatter }} views {{ video.by }} -- cgit v1.2.3