diff options
Diffstat (limited to 'client/src/app/+admin/follows')
6 files changed, 22 insertions, 27 deletions
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.ts b/client/src/app/+admin/follows/followers-list/followers-list.component.ts index 17352a601..63135f898 100644 --- a/client/src/app/+admin/follows/followers-list/followers-list.component.ts +++ b/client/src/app/+admin/follows/followers-list/followers-list.component.ts | |||
@@ -1,10 +1,9 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | ||
2 | import { ConfirmService, Notifier } from '@app/core' | ||
3 | import { SortMeta } from 'primeng/api' | 1 | import { SortMeta } from 'primeng/api' |
4 | import { ActorFollow } from '../../../../../../shared/models/actors/follow.model' | 2 | import { Component, OnInit } from '@angular/core' |
5 | import { RestPagination, RestTable } from '../../../shared' | 3 | import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core' |
6 | import { FollowService } from '@app/shared/instance/follow.service' | 4 | import { InstanceFollowService } from '@app/shared/shared-instance' |
7 | import { I18n } from '@ngx-translate/i18n-polyfill' | 5 | import { I18n } from '@ngx-translate/i18n-polyfill' |
6 | import { ActorFollow } from '@shared/models' | ||
8 | 7 | ||
9 | @Component({ | 8 | @Component({ |
10 | selector: 'my-followers-list', | 9 | selector: 'my-followers-list', |
@@ -21,7 +20,7 @@ export class FollowersListComponent extends RestTable implements OnInit { | |||
21 | private confirmService: ConfirmService, | 20 | private confirmService: ConfirmService, |
22 | private notifier: Notifier, | 21 | private notifier: Notifier, |
23 | private i18n: I18n, | 22 | private i18n: I18n, |
24 | private followService: FollowService | 23 | private followService: InstanceFollowService |
25 | ) { | 24 | ) { |
26 | super() | 25 | super() |
27 | } | 26 | } |
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.ts b/client/src/app/+admin/follows/following-list/following-list.component.ts index 6ddbf02d6..dae8923b5 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.ts +++ b/client/src/app/+admin/follows/following-list/following-list.component.ts | |||
@@ -1,12 +1,10 @@ | |||
1 | import { Component, OnInit, ViewChild } from '@angular/core' | ||
2 | import { Notifier } from '@app/core' | ||
3 | import { SortMeta } from 'primeng/api' | 1 | import { SortMeta } from 'primeng/api' |
4 | import { ActorFollow } from '../../../../../../shared/models/actors/follow.model' | 2 | import { Component, OnInit, ViewChild } from '@angular/core' |
5 | import { ConfirmService } from '../../../core/confirm/confirm.service' | 3 | import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core' |
6 | import { RestPagination, RestTable } from '../../../shared' | 4 | import { InstanceFollowService } from '@app/shared/shared-instance' |
7 | import { FollowService } from '@app/shared/instance/follow.service' | 5 | import { BatchDomainsModalComponent } from '@app/shared/shared-moderation' |
8 | import { I18n } from '@ngx-translate/i18n-polyfill' | 6 | import { I18n } from '@ngx-translate/i18n-polyfill' |
9 | import { BatchDomainsModalComponent } from '@app/+admin/config/shared/batch-domains-modal.component' | 7 | import { ActorFollow } from '@shared/models' |
10 | 8 | ||
11 | @Component({ | 9 | @Component({ |
12 | selector: 'my-followers-list', | 10 | selector: 'my-followers-list', |
@@ -24,7 +22,7 @@ export class FollowingListComponent extends RestTable implements OnInit { | |||
24 | constructor ( | 22 | constructor ( |
25 | private notifier: Notifier, | 23 | private notifier: Notifier, |
26 | private confirmService: ConfirmService, | 24 | private confirmService: ConfirmService, |
27 | private followService: FollowService, | 25 | private followService: InstanceFollowService, |
28 | private i18n: I18n | 26 | private i18n: I18n |
29 | ) { | 27 | ) { |
30 | super() | 28 | super() |
diff --git a/client/src/app/+admin/follows/follows.routes.ts b/client/src/app/+admin/follows/follows.routes.ts index 8270ae444..817074536 100644 --- a/client/src/app/+admin/follows/follows.routes.ts +++ b/client/src/app/+admin/follows/follows.routes.ts | |||
@@ -1,11 +1,10 @@ | |||
1 | import { Routes } from '@angular/router' | 1 | import { Routes } from '@angular/router' |
2 | 2 | import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list' | |
3 | import { UserRightGuard } from '../../core' | 3 | import { UserRightGuard } from '@app/core' |
4 | import { FollowsComponent } from './follows.component' | 4 | import { UserRight } from '@shared/models' |
5 | import { FollowersListComponent } from './followers-list' | 5 | import { FollowersListComponent } from './followers-list' |
6 | import { UserRight } from '../../../../../shared' | ||
7 | import { FollowingListComponent } from './following-list/following-list.component' | 6 | import { FollowingListComponent } from './following-list/following-list.component' |
8 | import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list' | 7 | import { FollowsComponent } from './follows.component' |
9 | 8 | ||
10 | export const FollowsRoutes: Routes = [ | 9 | export const FollowsRoutes: Routes = [ |
11 | { | 10 | { |
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 9d7883d97..662143abc 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,7 @@ | |||
1 | import { Component, Input } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | import { Notifier } from '@app/core' | 2 | import { Notifier } from '@app/core' |
3 | import { RedundancyService } from '@app/shared/shared-main' | ||
3 | import { I18n } from '@ngx-translate/i18n-polyfill' | 4 | import { I18n } from '@ngx-translate/i18n-polyfill' |
4 | import { RedundancyService } from '@app/shared/video/redundancy.service' | ||
5 | 5 | ||
6 | @Component({ | 6 | @Component({ |
7 | selector: 'my-redundancy-checkbox', | 7 | selector: 'my-redundancy-checkbox', |
diff --git a/client/src/app/+admin/follows/video-redundancies-list/index.ts b/client/src/app/+admin/follows/video-redundancies-list/index.ts index 6a7c7f483..07e734b1a 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/index.ts +++ b/client/src/app/+admin/follows/video-redundancies-list/index.ts | |||
@@ -1 +1,2 @@ | |||
1 | export * from './video-redundancies-list.component' | 1 | export * from './video-redundancies-list.component' |
2 | export * from './video-redundancy-information.component' | ||
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts index 267a1f58e..0048882bc 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts | |||
@@ -1,14 +1,12 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { BytesPipe } from 'ngx-pipes' |
2 | import { Notifier, ServerService } from '@app/core' | ||
3 | import { SortMeta } from 'primeng/api' | 2 | import { SortMeta } from 'primeng/api' |
4 | import { ConfirmService } from '../../../core/confirm/confirm.service' | 3 | import { Component, OnInit } from '@angular/core' |
5 | import { RestPagination, RestTable } from '../../../shared' | 4 | import { ConfirmService, Notifier, RestPagination, RestTable, ServerService } from '@app/core' |
5 | import { peertubeLocalStorage } from '@app/helpers/peertube-web-storage' | ||
6 | import { RedundancyService } from '@app/shared/shared-main' | ||
6 | import { I18n } from '@ngx-translate/i18n-polyfill' | 7 | import { I18n } from '@ngx-translate/i18n-polyfill' |
7 | import { VideoRedundanciesTarget, VideoRedundancy } from '@shared/models' | 8 | import { VideoRedundanciesTarget, VideoRedundancy } from '@shared/models' |
8 | import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage' | ||
9 | import { VideosRedundancyStats } from '@shared/models/server' | 9 | import { VideosRedundancyStats } from '@shared/models/server' |
10 | import { BytesPipe } from 'ngx-pipes' | ||
11 | import { RedundancyService } from '@app/shared/video/redundancy.service' | ||
12 | 10 | ||
13 | @Component({ | 11 | @Component({ |
14 | selector: 'my-video-redundancies-list', | 12 | selector: 'my-video-redundancies-list', |