diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-24 10:40:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-24 10:40:38 +0200 |
commit | 6937f26a5e8b17c7a27f267bce2682ab01611f2f (patch) | |
tree | 5d9b160e257a2bd116e67c9363b798f422ead44c /client/src/app/+admin | |
parent | 01448622992b12318a2fff508e501732b59dd6be (diff) | |
parent | 0b4e5fe32708afce54212810738aa4d0c3dc178d (diff) | |
download | PeerTube-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')
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 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { Router } from '@angular/router' | ||
3 | import { ConfigService } from '@app/+admin/config/shared/config.service' | 2 | import { ConfigService } from '@app/+admin/config/shared/config.service' |
4 | import { ConfirmService } from '@app/core' | 3 | import { ConfirmService } from '@app/core' |
5 | import { ServerService } from '@app/core/server/server.service' | 4 | import { 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' | |||
3 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
4 | import { CustomConfig } from '../../../../../../shared/models/server/custom-config.model' | 4 | import { CustomConfig } from '../../../../../../shared/models/server/custom-config.model' |
5 | import { environment } from '../../../../environments/environment' | 5 | import { environment } from '../../../../environments/environment' |
6 | import { RestExtractor, RestService } from '../../../shared' | 6 | import { RestExtractor } from '../../../shared' |
7 | 7 | ||
8 | @Injectable() | 8 | @Injectable() |
9 | export class ConfigService { | 9 | export 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 @@ | |||
1 | import { Component, Input } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | import { AuthService } from '@app/core' | ||
3 | import { RestExtractor } from '@app/shared/rest' | ||
4 | import { RedirectService } from '@app/core/routing/redirect.service' | ||
5 | import { NotificationsService } from 'angular2-notifications' | 2 | import { NotificationsService } from 'angular2-notifications' |
6 | import { I18n } from '@ngx-translate/i18n-polyfill' | 3 | import { I18n } from '@ngx-translate/i18n-polyfill' |
7 | import { RedundancyService } from '@app/+admin/follows/shared/redundancy.service' | 4 | import { 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 @@ | |||
1 | import { catchError, map } from 'rxjs/operators' | 1 | import { catchError, map } from 'rxjs/operators' |
2 | import { HttpClient } from '@angular/common/http' | 2 | import { HttpClient } from '@angular/common/http' |
3 | import { Injectable } from '@angular/core' | 3 | import { Injectable } from '@angular/core' |
4 | import { RestExtractor, RestService } from '@app/shared' | 4 | import { RestExtractor } from '@app/shared' |
5 | import { environment } from '../../../../environments/environment' | 5 | import { 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' | |||
5 | import { Job } from '../../../../../../shared/index' | 5 | import { Job } from '../../../../../../shared/index' |
6 | import { JobState } from '../../../../../../shared/models' | 6 | import { JobState } from '../../../../../../shared/models' |
7 | import { RestPagination, RestTable } from '../../../shared' | 7 | import { RestPagination, RestTable } from '../../../shared' |
8 | import { RestExtractor } from '../../../shared/rest/rest-extractor.service' | ||
9 | import { JobService } from '../shared' | 8 | import { JobService } from '../shared' |
10 | import { I18n } from '@ngx-translate/i18n-polyfill' | 9 | import { 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 | ||