From b99290b1d5d736083513fb8f66e91f61bfe07e0b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 23 Jan 2017 22:32:43 +0100 Subject: Client: lazy load admin area --- client/src/app/admin/video-abuses/index.ts | 3 --- .../admin/video-abuses/video-abuse-list/index.ts | 1 - .../video-abuse-list.component.html | 27 ------------------- .../video-abuse-list.component.scss | 7 ----- .../video-abuse-list/video-abuse-list.component.ts | 31 ---------------------- .../admin/video-abuses/video-abuses.component.ts | 8 ------ .../app/admin/video-abuses/video-abuses.routes.ts | 28 ------------------- 7 files changed, 105 deletions(-) delete mode 100644 client/src/app/admin/video-abuses/index.ts delete mode 100644 client/src/app/admin/video-abuses/video-abuse-list/index.ts delete mode 100644 client/src/app/admin/video-abuses/video-abuse-list/video-abuse-list.component.html delete mode 100644 client/src/app/admin/video-abuses/video-abuse-list/video-abuse-list.component.scss delete mode 100644 client/src/app/admin/video-abuses/video-abuse-list/video-abuse-list.component.ts delete mode 100644 client/src/app/admin/video-abuses/video-abuses.component.ts delete mode 100644 client/src/app/admin/video-abuses/video-abuses.routes.ts (limited to 'client/src/app/admin/video-abuses') diff --git a/client/src/app/admin/video-abuses/index.ts b/client/src/app/admin/video-abuses/index.ts deleted file mode 100644 index 7f5e65f91..000000000 --- a/client/src/app/admin/video-abuses/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './video-abuse-list'; -export * from './video-abuses.component'; -export * 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 deleted file mode 100644 index 3f2ed1714..000000000 --- a/client/src/app/admin/video-abuses/video-abuse-list/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './video-abuse-list.component'; diff --git a/client/src/app/admin/video-abuses/video-abuse-list/video-abuse-list.component.html b/client/src/app/admin/video-abuses/video-abuse-list/video-abuse-list.component.html deleted file mode 100644 index 46043577c..000000000 --- a/client/src/app/admin/video-abuses/video-abuse-list/video-abuse-list.component.html +++ /dev/null @@ -1,27 +0,0 @@ -

Video abuses list

- - - - - - - - - - - - - - - - - - - - - - - -
IDReasonReporter pod hostReporter usernameVideoCreated at
{{ videoAbuse.id }}{{ videoAbuse.reason }}{{ videoAbuse.reporterPodHost }}{{ videoAbuse.reporterUsername }} - {{ videoAbuse.videoId }} - {{ videoAbuse.createdAt | date: 'medium' }}
diff --git a/client/src/app/admin/video-abuses/video-abuse-list/video-abuse-list.component.scss b/client/src/app/admin/video-abuses/video-abuse-list/video-abuse-list.component.scss deleted file mode 100644 index a094f74b8..000000000 --- a/client/src/app/admin/video-abuses/video-abuse-list/video-abuse-list.component.scss +++ /dev/null @@ -1,7 +0,0 @@ -.cell-id { - width: 40px; -} - -.cell-reason { - width: 200px; -} 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 deleted file mode 100644 index de58bba3d..000000000 --- a/client/src/app/admin/video-abuses/video-abuse-list/video-abuse-list.component.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { setInterval } from 'timers' -import { Component, OnInit } from '@angular/core'; - -import { VideoAbuseService, VideoAbuse} from '../../../shared'; - -@Component({ - selector: 'my-video-abuse-list', - templateUrl: './video-abuse-list.component.html', - styleUrls: [ './video-abuse-list.component.scss' ] -}) -export class VideoAbuseListComponent implements OnInit { - videoAbuses: VideoAbuse[]; - - constructor(private videoAbuseService: VideoAbuseService) { } - - ngOnInit() { - this.getVideoAbuses(); - } - - buildVideoLink(videoAbuse: VideoAbuse) { - return `/videos/${videoAbuse.videoId}`; - } - - private getVideoAbuses() { - this.videoAbuseService.getVideoAbuses().subscribe( - res => this.videoAbuses = res.videoAbuses, - - err => alert(err.text) - ); - } -} diff --git a/client/src/app/admin/video-abuses/video-abuses.component.ts b/client/src/app/admin/video-abuses/video-abuses.component.ts deleted file mode 100644 index 001f27e87..000000000 --- a/client/src/app/admin/video-abuses/video-abuses.component.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Component } from '@angular/core'; - -@Component({ - template: '' -}) - -export class VideoAbusesComponent { -} diff --git a/client/src/app/admin/video-abuses/video-abuses.routes.ts b/client/src/app/admin/video-abuses/video-abuses.routes.ts deleted file mode 100644 index 26a761887..000000000 --- a/client/src/app/admin/video-abuses/video-abuses.routes.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Routes } from '@angular/router'; - -import { VideoAbusesComponent } from './video-abuses.component'; -import { VideoAbuseListComponent } from './video-abuse-list'; - -export const VideoAbusesRoutes: Routes = [ - { - path: 'video-abuses', - component: VideoAbusesComponent - , - children: [ - { - path: '', - redirectTo: 'list', - pathMatch: 'full' - }, - { - path: 'list', - component: VideoAbuseListComponent, - data: { - meta: { - titleSuffix: ' - Video abuses list' - } - } - } - ] - } -]; -- cgit v1.2.3