aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/follows
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-29 11:33:28 +0200
committerChocobozzz <me@florianbigard.com>2021-10-29 11:52:58 +0200
commiteeae81428e933b923dc9d9b6c9ce5c9fcf0de1a7 (patch)
tree0c444d0c13df141ec7095fc141997a2b847c31d8 /client/src/app/+admin/follows
parent3c10840fa90fc88fc98e8169faf4745ff6c80893 (diff)
downloadPeerTube-eeae81428e933b923dc9d9b6c9ce5c9fcf0de1a7.tar.gz
PeerTube-eeae81428e933b923dc9d9b6c9ce5c9fcf0de1a7.tar.zst
PeerTube-eeae81428e933b923dc9d9b6c9ce5c9fcf0de1a7.zip
Remove useless components
Diffstat (limited to 'client/src/app/+admin/follows')
-rw-r--r--client/src/app/+admin/follows/followers-list/followers-list.component.ts2
-rw-r--r--client/src/app/+admin/follows/following-list/following-list.component.ts2
-rw-r--r--client/src/app/+admin/follows/follows.component.html1
-rw-r--r--client/src/app/+admin/follows/follows.component.scss11
-rw-r--r--client/src/app/+admin/follows/follows.component.ts8
-rw-r--r--client/src/app/+admin/follows/follows.routes.ts2
-rw-r--r--client/src/app/+admin/follows/index.ts1
-rw-r--r--client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html2
-rw-r--r--client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts2
9 files changed, 4 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 b867b4ba5..329e3bcc7 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
@@ -7,7 +7,7 @@ import { ActorFollow } from '@shared/models'
7@Component({ 7@Component({
8 selector: 'my-followers-list', 8 selector: 'my-followers-list',
9 templateUrl: './followers-list.component.html', 9 templateUrl: './followers-list.component.html',
10 styleUrls: [ '../follows.component.scss', './followers-list.component.scss' ] 10 styleUrls: [ './followers-list.component.scss' ]
11}) 11})
12export class FollowersListComponent extends RestTable implements OnInit { 12export class FollowersListComponent extends RestTable implements OnInit {
13 followers: ActorFollow[] = [] 13 followers: ActorFollow[] = []
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 383f66ffd..2c0f6db0c 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
@@ -7,7 +7,7 @@ import { FollowModalComponent } from './follow-modal.component'
7 7
8@Component({ 8@Component({
9 templateUrl: './following-list.component.html', 9 templateUrl: './following-list.component.html',
10 styleUrls: [ '../follows.component.scss', './following-list.component.scss' ] 10 styleUrls: [ './following-list.component.scss' ]
11}) 11})
12export class FollowingListComponent extends RestTable implements OnInit { 12export class FollowingListComponent extends RestTable implements OnInit {
13 @ViewChild('followModal') followModal: FollowModalComponent 13 @ViewChild('followModal') followModal: FollowModalComponent
diff --git a/client/src/app/+admin/follows/follows.component.html b/client/src/app/+admin/follows/follows.component.html
deleted file mode 100644
index 0680b43f9..000000000
--- a/client/src/app/+admin/follows/follows.component.html
+++ /dev/null
@@ -1 +0,0 @@
1<router-outlet></router-outlet>
diff --git a/client/src/app/+admin/follows/follows.component.scss b/client/src/app/+admin/follows/follows.component.scss
deleted file mode 100644
index 944135c5e..000000000
--- a/client/src/app/+admin/follows/follows.component.scss
+++ /dev/null
@@ -1,11 +0,0 @@
1@use '_mixins' as *;
2
3.form-sub-title {
4 @include margin-right(30px);
5
6 flex-grow: 0;
7}
8
9.badge {
10 @include table-badge;
11}
diff --git a/client/src/app/+admin/follows/follows.component.ts b/client/src/app/+admin/follows/follows.component.ts
deleted file mode 100644
index 1ec7e598b..000000000
--- a/client/src/app/+admin/follows/follows.component.ts
+++ /dev/null
@@ -1,8 +0,0 @@
1import { Component } from '@angular/core'
2
3@Component({
4 templateUrl: './follows.component.html',
5 styleUrls: [ './follows.component.scss' ]
6})
7export class FollowsComponent {
8}
diff --git a/client/src/app/+admin/follows/follows.routes.ts b/client/src/app/+admin/follows/follows.routes.ts
index 3843b42b5..1825ce278 100644
--- a/client/src/app/+admin/follows/follows.routes.ts
+++ b/client/src/app/+admin/follows/follows.routes.ts
@@ -4,12 +4,10 @@ import { UserRightGuard } from '@app/core'
4import { UserRight } from '@shared/models' 4import { UserRight } from '@shared/models'
5import { FollowersListComponent } from './followers-list' 5import { FollowersListComponent } from './followers-list'
6import { FollowingListComponent } from './following-list/following-list.component' 6import { FollowingListComponent } from './following-list/following-list.component'
7import { FollowsComponent } from './follows.component'
8 7
9export const FollowsRoutes: Routes = [ 8export const FollowsRoutes: Routes = [
10 { 9 {
11 path: 'follows', 10 path: 'follows',
12 component: FollowsComponent,
13 canActivate: [ UserRightGuard ], 11 canActivate: [ UserRightGuard ],
14 data: { 12 data: {
15 userRight: UserRight.MANAGE_SERVER_FOLLOW 13 userRight: UserRight.MANAGE_SERVER_FOLLOW
diff --git a/client/src/app/+admin/follows/index.ts b/client/src/app/+admin/follows/index.ts
index 285955468..b52ec7e8c 100644
--- a/client/src/app/+admin/follows/index.ts
+++ b/client/src/app/+admin/follows/index.ts
@@ -1,5 +1,4 @@
1export * from './followers-list' 1export * from './followers-list'
2export * from './following-list' 2export * from './following-list'
3export * from './video-redundancies-list' 3export * from './video-redundancies-list'
4export * from './follows.component'
5export * from './follows.routes' 4export * from './follows.routes'
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
index 6d6384829..d0095a01e 100644
--- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
+++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
@@ -86,7 +86,7 @@
86 86
87 87
88<div class="redundancies-charts" *ngIf="isDisplayingRemoteVideos()"> 88<div class="redundancies-charts" *ngIf="isDisplayingRemoteVideos()">
89 <div class="form-sub-title" i18n>Enabled strategies stats</div> 89 <h6 i18n>Enabled strategies stats</h6>
90 90
91 <div class="chart-blocks"> 91 <div class="chart-blocks">
92 92
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 2f87c6743..c862cd250 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
@@ -10,7 +10,7 @@ import { VideosRedundancyStats } from '@shared/models/server'
10@Component({ 10@Component({
11 selector: 'my-video-redundancies-list', 11 selector: 'my-video-redundancies-list',
12 templateUrl: './video-redundancies-list.component.html', 12 templateUrl: './video-redundancies-list.component.html',
13 styleUrls: [ '../follows.component.scss', './video-redundancies-list.component.scss' ] 13 styleUrls: [ './video-redundancies-list.component.scss' ]
14}) 14})
15export class VideoRedundanciesListComponent extends RestTable implements OnInit { 15export class VideoRedundanciesListComponent extends RestTable implements OnInit {
16 private static LOCAL_STORAGE_DISPLAY_TYPE = 'video-redundancies-list-display-type' 16 private static LOCAL_STORAGE_DISPLAY_TYPE = 'video-redundancies-list-display-type'