aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-24 10:40:38 +0200
committerGitHub <noreply@github.com>2018-09-24 10:40:38 +0200
commit6937f26a5e8b17c7a27f267bce2682ab01611f2f (patch)
tree5d9b160e257a2bd116e67c9363b798f422ead44c /client/src/app/+admin
parent01448622992b12318a2fff508e501732b59dd6be (diff)
parent0b4e5fe32708afce54212810738aa4d0c3dc178d (diff)
downloadPeerTube-6937f26a5e8b17c7a27f267bce2682ab01611f2f.tar.gz
PeerTube-6937f26a5e8b17c7a27f267bce2682ab01611f2f.tar.zst
PeerTube-6937f26a5e8b17c7a27f267bce2682ab01611f2f.zip
Merge pull request #1105 from BO41/unused-imports
remove unused imports
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts2
-rw-r--r--client/src/app/+admin/config/shared/config.service.ts3
-rw-r--r--client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts6
-rw-r--r--client/src/app/+admin/follows/shared/redundancy.service.ts5
-rw-r--r--client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts2
-rw-r--r--client/src/app/+admin/users/user-list/user-list.component.ts2
6 files changed, 3 insertions, 17 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
index ce2ea8a6c..9b3bd86f1 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts
@@ -1,5 +1,4 @@
1import { Component, OnInit } from '@angular/core' 1import { Component, OnInit } from '@angular/core'
2import { Router } from '@angular/router'
3import { ConfigService } from '@app/+admin/config/shared/config.service' 2import { ConfigService } from '@app/+admin/config/shared/config.service'
4import { ConfirmService } from '@app/core' 3import { ConfirmService } from '@app/core'
5import { ServerService } from '@app/core/server/server.service' 4import { ServerService } from '@app/core/server/server.service'
@@ -54,7 +53,6 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
54 protected formValidatorService: FormValidatorService, 53 protected formValidatorService: FormValidatorService,
55 private customConfigValidatorsService: CustomConfigValidatorsService, 54 private customConfigValidatorsService: CustomConfigValidatorsService,
56 private userValidatorsService: UserValidatorsService, 55 private userValidatorsService: UserValidatorsService,
57 private router: Router,
58 private notificationsService: NotificationsService, 56 private notificationsService: NotificationsService,
59 private configService: ConfigService, 57 private configService: ConfigService,
60 private serverService: ServerService, 58 private serverService: ServerService,
diff --git a/client/src/app/+admin/config/shared/config.service.ts b/client/src/app/+admin/config/shared/config.service.ts
index 1565774b3..7c61fe9e7 100644
--- a/client/src/app/+admin/config/shared/config.service.ts
+++ b/client/src/app/+admin/config/shared/config.service.ts
@@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http'
3import { Injectable } from '@angular/core' 3import { Injectable } from '@angular/core'
4import { CustomConfig } from '../../../../../../shared/models/server/custom-config.model' 4import { CustomConfig } from '../../../../../../shared/models/server/custom-config.model'
5import { environment } from '../../../../environments/environment' 5import { environment } from '../../../../environments/environment'
6import { RestExtractor, RestService } from '../../../shared' 6import { RestExtractor } from '../../../shared'
7 7
8@Injectable() 8@Injectable()
9export class ConfigService { 9export class ConfigService {
@@ -11,7 +11,6 @@ export class ConfigService {
11 11
12 constructor ( 12 constructor (
13 private authHttp: HttpClient, 13 private authHttp: HttpClient,
14 private restService: RestService,
15 private restExtractor: RestExtractor 14 private restExtractor: RestExtractor
16 ) {} 15 ) {}
17 16
diff --git a/client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts b/client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts
index ff4725e91..6d77a0eb4 100644
--- a/client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts
+++ b/client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts
@@ -1,7 +1,4 @@
1import { Component, Input } from '@angular/core' 1import { Component, Input } from '@angular/core'
2import { AuthService } from '@app/core'
3import { RestExtractor } from '@app/shared/rest'
4import { RedirectService } from '@app/core/routing/redirect.service'
5import { NotificationsService } from 'angular2-notifications' 2import { NotificationsService } from 'angular2-notifications'
6import { I18n } from '@ngx-translate/i18n-polyfill' 3import { I18n } from '@ngx-translate/i18n-polyfill'
7import { RedundancyService } from '@app/+admin/follows/shared/redundancy.service' 4import { RedundancyService } from '@app/+admin/follows/shared/redundancy.service'
@@ -16,9 +13,6 @@ export class RedundancyCheckboxComponent {
16 @Input() host: string 13 @Input() host: string
17 14
18 constructor ( 15 constructor (
19 private authService: AuthService,
20 private restExtractor: RestExtractor,
21 private redirectService: RedirectService,
22 private notificationsService: NotificationsService, 16 private notificationsService: NotificationsService,
23 private redundancyService: RedundancyService, 17 private redundancyService: RedundancyService,
24 private i18n: I18n 18 private i18n: I18n
diff --git a/client/src/app/+admin/follows/shared/redundancy.service.ts b/client/src/app/+admin/follows/shared/redundancy.service.ts
index 96b29faab..87ae01c04 100644
--- a/client/src/app/+admin/follows/shared/redundancy.service.ts
+++ b/client/src/app/+admin/follows/shared/redundancy.service.ts
@@ -1,7 +1,7 @@
1import { catchError, map } from 'rxjs/operators' 1import { catchError, map } from 'rxjs/operators'
2import { HttpClient } from '@angular/common/http' 2import { HttpClient } from '@angular/common/http'
3import { Injectable } from '@angular/core' 3import { Injectable } from '@angular/core'
4import { RestExtractor, RestService } from '@app/shared' 4import { RestExtractor } from '@app/shared'
5import { environment } from '../../../../environments/environment' 5import { environment } from '../../../../environments/environment'
6 6
7@Injectable() 7@Injectable()
@@ -10,8 +10,7 @@ export class RedundancyService {
10 10
11 constructor ( 11 constructor (
12 private authHttp: HttpClient, 12 private authHttp: HttpClient,
13 private restExtractor: RestExtractor, 13 private restExtractor: RestExtractor
14 private restService: RestService
15 ) { } 14 ) { }
16 15
17 updateRedundancy (host: string, redundancyAllowed: boolean) { 16 updateRedundancy (host: string, redundancyAllowed: boolean) {
diff --git a/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts b/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts
index 44ab59d36..866ba1b23 100644
--- a/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts
+++ b/client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts
@@ -5,7 +5,6 @@ import { SortMeta } from 'primeng/primeng'
5import { Job } from '../../../../../../shared/index' 5import { Job } from '../../../../../../shared/index'
6import { JobState } from '../../../../../../shared/models' 6import { JobState } from '../../../../../../shared/models'
7import { RestPagination, RestTable } from '../../../shared' 7import { RestPagination, RestTable } from '../../../shared'
8import { RestExtractor } from '../../../shared/rest/rest-extractor.service'
9import { JobService } from '../shared' 8import { JobService } from '../shared'
10import { I18n } from '@ngx-translate/i18n-polyfill' 9import { I18n } from '@ngx-translate/i18n-polyfill'
11 10
@@ -27,7 +26,6 @@ export class JobsListComponent extends RestTable implements OnInit {
27 26
28 constructor ( 27 constructor (
29 private notificationsService: NotificationsService, 28 private notificationsService: NotificationsService,
30 private restExtractor: RestExtractor,
31 private jobsService: JobService, 29 private jobsService: JobService,
32 private i18n: I18n 30 private i18n: I18n
33 ) { 31 ) {
diff --git a/client/src/app/+admin/users/user-list/user-list.component.ts b/client/src/app/+admin/users/user-list/user-list.component.ts
index 9697ce202..100ffc00e 100644
--- a/client/src/app/+admin/users/user-list/user-list.component.ts
+++ b/client/src/app/+admin/users/user-list/user-list.component.ts
@@ -25,7 +25,6 @@ export class UserListComponent extends RestTable implements OnInit {
25 pagination: RestPagination = { count: this.rowsPerPage, start: 0 } 25 pagination: RestPagination = { count: this.rowsPerPage, start: 0 }
26 userActions: DropdownAction<User>[] = [] 26 userActions: DropdownAction<User>[] = []
27 27
28 private userToBan: User
29 private openedModal: NgbModalRef 28 private openedModal: NgbModalRef
30 29
31 constructor ( 30 constructor (
@@ -63,7 +62,6 @@ export class UserListComponent extends RestTable implements OnInit {
63 } 62 }
64 63
65 hideBanUserModal () { 64 hideBanUserModal () {
66 this.userToBan = undefined
67 this.openedModal.close() 65 this.openedModal.close()
68 } 66 }
69 67