From eeae81428e933b923dc9d9b6c9ce5c9fcf0de1a7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 29 Oct 2021 11:33:28 +0200 Subject: Remove useless components --- client/src/app/+admin/moderation/index.ts | 1 - .../app/+admin/moderation/moderation.component.html | 1 - .../app/+admin/moderation/moderation.component.ts | 20 -------------------- .../src/app/+admin/moderation/moderation.routes.ts | 2 -- .../video-block-list/video-block-list.component.scss | 4 ---- 5 files changed, 28 deletions(-) delete mode 100644 client/src/app/+admin/moderation/moderation.component.html delete mode 100644 client/src/app/+admin/moderation/moderation.component.ts (limited to 'client/src/app/+admin/moderation') diff --git a/client/src/app/+admin/moderation/index.ts b/client/src/app/+admin/moderation/index.ts index 53e4bc991..9dab270cc 100644 --- a/client/src/app/+admin/moderation/index.ts +++ b/client/src/app/+admin/moderation/index.ts @@ -1,5 +1,4 @@ export * from './abuse-list' export * from './instance-blocklist' export * from './video-block-list' -export * from './moderation.component' export * from './moderation.routes' diff --git a/client/src/app/+admin/moderation/moderation.component.html b/client/src/app/+admin/moderation/moderation.component.html deleted file mode 100644 index 90c6b6463..000000000 --- a/client/src/app/+admin/moderation/moderation.component.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/client/src/app/+admin/moderation/moderation.component.ts b/client/src/app/+admin/moderation/moderation.component.ts deleted file mode 100644 index 44dd11c47..000000000 --- a/client/src/app/+admin/moderation/moderation.component.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Component, OnInit } from '@angular/core' -import { ServerService } from '@app/core' - -@Component({ - templateUrl: './moderation.component.html', - styleUrls: [ ] -}) -export class ModerationComponent implements OnInit { - autoBlockVideosEnabled = false - - constructor ( - private serverService: ServerService - ) { } - - ngOnInit (): void { - const serverConfig = this.serverService.getHTMLConfig() - - this.autoBlockVideosEnabled = serverConfig.autoBlacklist.videos.ofUsers.enabled - } -} diff --git a/client/src/app/+admin/moderation/moderation.routes.ts b/client/src/app/+admin/moderation/moderation.routes.ts index 2e28f0911..5c39ff366 100644 --- a/client/src/app/+admin/moderation/moderation.routes.ts +++ b/client/src/app/+admin/moderation/moderation.routes.ts @@ -1,7 +1,6 @@ import { Routes } from '@angular/router' import { AbuseListComponent } from '@app/+admin/moderation/abuse-list' import { InstanceAccountBlocklistComponent, InstanceServerBlocklistComponent } from '@app/+admin/moderation/instance-blocklist' -import { ModerationComponent } from '@app/+admin/moderation/moderation.component' import { VideoBlockListComponent } from '@app/+admin/moderation/video-block-list' import { VideoCommentListComponent } from './video-comment-list' import { UserRightGuard } from '@app/core' @@ -10,7 +9,6 @@ import { UserRight } from '@shared/models' export const ModerationRoutes: Routes = [ { path: 'moderation', - component: ModerationComponent, children: [ { path: '', diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss index 6152d9651..9cae08e85 100644 --- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss +++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss @@ -5,7 +5,3 @@ my-global-icon { width: 24px; height: 24px; } - -.badge { - @include table-badge; -} -- cgit v1.2.3