aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/video-abuses
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-16 14:32:15 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-16 14:32:15 +0200
commitdf98563e2104b82b119c00a3cd83cd0dc1242d25 (patch)
treea9720bf01bac9ad5646bd3d3c9bc7653617afdad /client/src/app/+admin/video-abuses
parent46757b477c1adb5f98060d15998a3852e18902a6 (diff)
downloadPeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.gz
PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.tar.zst
PeerTube-df98563e2104b82b119c00a3cd83cd0dc1242d25.zip
Use typescript standard and lint all files
Diffstat (limited to 'client/src/app/+admin/video-abuses')
-rw-r--r--client/src/app/+admin/video-abuses/index.ts6
-rw-r--r--client/src/app/+admin/video-abuses/video-abuse-list/index.ts2
-rw-r--r--client/src/app/+admin/video-abuses/video-abuse-list/video-abuse-list.component.ts24
-rw-r--r--client/src/app/+admin/video-abuses/video-abuses.component.ts2
-rw-r--r--client/src/app/+admin/video-abuses/video-abuses.routes.ts8
5 files changed, 21 insertions, 21 deletions
diff --git a/client/src/app/+admin/video-abuses/index.ts b/client/src/app/+admin/video-abuses/index.ts
index 7f5e65f91..395fac2e7 100644
--- a/client/src/app/+admin/video-abuses/index.ts
+++ b/client/src/app/+admin/video-abuses/index.ts
@@ -1,3 +1,3 @@
1export * from './video-abuse-list'; 1export * from './video-abuse-list'
2export * from './video-abuses.component'; 2export * from './video-abuses.component'
3export * from './video-abuses.routes'; 3export * from './video-abuses.routes'
diff --git a/client/src/app/+admin/video-abuses/video-abuse-list/index.ts b/client/src/app/+admin/video-abuses/video-abuse-list/index.ts
index 3f2ed1714..01c24d860 100644
--- a/client/src/app/+admin/video-abuses/video-abuse-list/index.ts
+++ b/client/src/app/+admin/video-abuses/video-abuse-list/index.ts
@@ -1 +1 @@
export * from './video-abuse-list.component'; export * from './video-abuse-list.component'
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 55d82f790..60eaebb44 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
@@ -1,15 +1,15 @@
1import { Component } from '@angular/core'; 1import { Component } from '@angular/core'
2 2
3import { NotificationsService } from 'angular2-notifications'; 3import { NotificationsService } from 'angular2-notifications'
4 4
5import { Utils, VideoAbuseService, VideoAbuse } from '../../../shared'; 5import { Utils, VideoAbuseService, VideoAbuse } from '../../../shared'
6 6
7@Component({ 7@Component({
8 selector: 'my-video-abuse-list', 8 selector: 'my-video-abuse-list',
9 templateUrl: './video-abuse-list.component.html' 9 templateUrl: './video-abuse-list.component.html'
10}) 10})
11export class VideoAbuseListComponent { 11export class VideoAbuseListComponent {
12 videoAbusesSource = null; 12 videoAbusesSource = null
13 tableSettings = { 13 tableSettings = {
14 mode: 'external', 14 mode: 'external',
15 attr: { 15 attr: {
@@ -54,18 +54,18 @@ export class VideoAbuseListComponent {
54 valuePrepareFunction: Utils.dateToHuman 54 valuePrepareFunction: Utils.dateToHuman
55 } 55 }
56 } 56 }
57 }; 57 }
58 58
59 constructor( 59 constructor (
60 private notificationsService: NotificationsService, 60 private notificationsService: NotificationsService,
61 private videoAbuseService: VideoAbuseService 61 private videoAbuseService: VideoAbuseService
62 ) { 62 ) {
63 this.videoAbusesSource = this.videoAbuseService.getDataSource(); 63 this.videoAbusesSource = this.videoAbuseService.getDataSource()
64 } 64 }
65 65
66 buildVideoLink(videoId: string) { 66 buildVideoLink (videoId: string) {
67 // TODO: transform to routerLink 67 // TODO: transform to routerLink
68 // https://github.com/akveo/ng2-smart-table/issues/57 68 // https://github.com/akveo/ng2-smart-table/issues/57
69 return `<a href="/videos/${videoId}" title="Go to the video">${videoId}</a>`; 69 return `<a href="/videos/${videoId}" title="Go to the video">${videoId}</a>`
70 } 70 }
71} 71}
diff --git a/client/src/app/+admin/video-abuses/video-abuses.component.ts b/client/src/app/+admin/video-abuses/video-abuses.component.ts
index 001f27e87..9dae5c0b6 100644
--- a/client/src/app/+admin/video-abuses/video-abuses.component.ts
+++ b/client/src/app/+admin/video-abuses/video-abuses.component.ts
@@ -1,4 +1,4 @@
1import { Component } from '@angular/core'; 1import { Component } from '@angular/core'
2 2
3@Component({ 3@Component({
4 template: '<router-outlet></router-outlet>' 4 template: '<router-outlet></router-outlet>'
diff --git a/client/src/app/+admin/video-abuses/video-abuses.routes.ts b/client/src/app/+admin/video-abuses/video-abuses.routes.ts
index 1f19d7885..a8c1561cd 100644
--- a/client/src/app/+admin/video-abuses/video-abuses.routes.ts
+++ b/client/src/app/+admin/video-abuses/video-abuses.routes.ts
@@ -1,7 +1,7 @@
1import { Routes } from '@angular/router'; 1import { Routes } from '@angular/router'
2 2
3import { VideoAbusesComponent } from './video-abuses.component'; 3import { VideoAbusesComponent } from './video-abuses.component'
4import { VideoAbuseListComponent } from './video-abuse-list'; 4import { VideoAbuseListComponent } from './video-abuse-list'
5 5
6export const VideoAbusesRoutes: Routes = [ 6export const VideoAbusesRoutes: Routes = [
7 { 7 {
@@ -25,4 +25,4 @@ export const VideoAbusesRoutes: Routes = [
25 } 25 }
26 ] 26 ]
27 } 27 }
28]; 28]