aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/follows
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+admin/follows')
-rw-r--r--client/src/app/+admin/follows/followers-list/followers-list.component.ts11
-rw-r--r--client/src/app/+admin/follows/following-list/following-list.component.ts14
-rw-r--r--client/src/app/+admin/follows/follows.routes.ts9
-rw-r--r--client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts2
-rw-r--r--client/src/app/+admin/follows/video-redundancies-list/index.ts1
-rw-r--r--client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts12
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 @@
1import { Component, OnInit } from '@angular/core'
2import { ConfirmService, Notifier } from '@app/core'
3import { SortMeta } from 'primeng/api' 1import { SortMeta } from 'primeng/api'
4import { ActorFollow } from '../../../../../../shared/models/actors/follow.model' 2import { Component, OnInit } from '@angular/core'
5import { RestPagination, RestTable } from '../../../shared' 3import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'
6import { FollowService } from '@app/shared/instance/follow.service' 4import { InstanceFollowService } from '@app/shared/shared-instance'
7import { I18n } from '@ngx-translate/i18n-polyfill' 5import { I18n } from '@ngx-translate/i18n-polyfill'
6import { 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 @@
1import { Component, OnInit, ViewChild } from '@angular/core'
2import { Notifier } from '@app/core'
3import { SortMeta } from 'primeng/api' 1import { SortMeta } from 'primeng/api'
4import { ActorFollow } from '../../../../../../shared/models/actors/follow.model' 2import { Component, OnInit, ViewChild } from '@angular/core'
5import { ConfirmService } from '../../../core/confirm/confirm.service' 3import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'
6import { RestPagination, RestTable } from '../../../shared' 4import { InstanceFollowService } from '@app/shared/shared-instance'
7import { FollowService } from '@app/shared/instance/follow.service' 5import { BatchDomainsModalComponent } from '@app/shared/shared-moderation'
8import { I18n } from '@ngx-translate/i18n-polyfill' 6import { I18n } from '@ngx-translate/i18n-polyfill'
9import { BatchDomainsModalComponent } from '@app/+admin/config/shared/batch-domains-modal.component' 7import { 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 @@
1import { Routes } from '@angular/router' 1import { Routes } from '@angular/router'
2 2import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list'
3import { UserRightGuard } from '../../core' 3import { UserRightGuard } from '@app/core'
4import { FollowsComponent } from './follows.component' 4import { UserRight } from '@shared/models'
5import { FollowersListComponent } from './followers-list' 5import { FollowersListComponent } from './followers-list'
6import { UserRight } from '../../../../../shared'
7import { FollowingListComponent } from './following-list/following-list.component' 6import { FollowingListComponent } from './following-list/following-list.component'
8import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list' 7import { FollowsComponent } from './follows.component'
9 8
10export const FollowsRoutes: Routes = [ 9export 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 @@
1import { Component, Input } from '@angular/core' 1import { Component, Input } from '@angular/core'
2import { Notifier } from '@app/core' 2import { Notifier } from '@app/core'
3import { RedundancyService } from '@app/shared/shared-main'
3import { I18n } from '@ngx-translate/i18n-polyfill' 4import { I18n } from '@ngx-translate/i18n-polyfill'
4import { 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 @@
1export * from './video-redundancies-list.component' 1export * from './video-redundancies-list.component'
2export * 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 @@
1import { Component, OnInit } from '@angular/core' 1import { BytesPipe } from 'ngx-pipes'
2import { Notifier, ServerService } from '@app/core'
3import { SortMeta } from 'primeng/api' 2import { SortMeta } from 'primeng/api'
4import { ConfirmService } from '../../../core/confirm/confirm.service' 3import { Component, OnInit } from '@angular/core'
5import { RestPagination, RestTable } from '../../../shared' 4import { ConfirmService, Notifier, RestPagination, RestTable, ServerService } from '@app/core'
5import { peertubeLocalStorage } from '@app/helpers/peertube-web-storage'
6import { RedundancyService } from '@app/shared/shared-main'
6import { I18n } from '@ngx-translate/i18n-polyfill' 7import { I18n } from '@ngx-translate/i18n-polyfill'
7import { VideoRedundanciesTarget, VideoRedundancy } from '@shared/models' 8import { VideoRedundanciesTarget, VideoRedundancy } from '@shared/models'
8import { peertubeLocalStorage } from '@app/shared/misc/peertube-web-storage'
9import { VideosRedundancyStats } from '@shared/models/server' 9import { VideosRedundancyStats } from '@shared/models/server'
10import { BytesPipe } from 'ngx-pipes'
11import { 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',