]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove useless components
authorChocobozzz <me@florianbigard.com>
Fri, 29 Oct 2021 09:33:28 +0000 (11:33 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 29 Oct 2021 09:52:58 +0000 (11:52 +0200)
31 files changed:
client/src/app/+admin/admin.module.ts
client/src/app/+admin/config/config.component.ts [deleted file]
client/src/app/+admin/config/config.routes.ts
client/src/app/+admin/config/index.ts
client/src/app/+admin/follows/followers-list/followers-list.component.ts
client/src/app/+admin/follows/following-list/following-list.component.ts
client/src/app/+admin/follows/follows.component.html [deleted file]
client/src/app/+admin/follows/follows.component.scss [deleted file]
client/src/app/+admin/follows/follows.component.ts [deleted file]
client/src/app/+admin/follows/follows.routes.ts
client/src/app/+admin/follows/index.ts
client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts
client/src/app/+admin/moderation/index.ts
client/src/app/+admin/moderation/moderation.component.html [deleted file]
client/src/app/+admin/moderation/moderation.component.ts [deleted file]
client/src/app/+admin/moderation/moderation.routes.ts
client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss
client/src/app/+admin/overview/users/user-list/user-list.component.scss
client/src/app/+admin/system/index.ts
client/src/app/+admin/system/jobs/jobs.component.scss
client/src/app/+admin/system/system.component.html [deleted file]
client/src/app/+admin/system/system.component.ts [deleted file]
client/src/app/+admin/system/system.routes.ts
client/src/app/+my-library/my-ownership/my-ownership.component.scss
client/src/app/+my-library/my-video-imports/my-video-imports.component.scss
client/src/app/+videos/videos-routing.module.ts
client/src/app/+videos/videos.component.ts [deleted file]
client/src/app/+videos/videos.module.ts
client/src/sass/application.scss
client/src/sass/primeng-custom.scss

index d04c11a2050ff001939b5fa78c2dfa2a11bd0ef8..0cb4d10565fa57b9279c1bb6a385f867954ff824 100644 (file)
@@ -16,7 +16,6 @@ import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'
 import { AdminRoutingModule } from './admin-routing.module'
 import { AdminComponent } from './admin.component'
 import {
-  ConfigComponent,
   EditAdvancedConfigurationComponent,
   EditBasicConfigurationComponent,
   EditConfigurationService,
@@ -27,13 +26,12 @@ import {
   EditVODTranscodingComponent
 } from './config'
 import { ConfigService } from './config/shared/config.service'
-import { FollowersListComponent, FollowModalComponent, FollowsComponent, VideoRedundanciesListComponent } from './follows'
+import { FollowersListComponent, FollowModalComponent, VideoRedundanciesListComponent } from './follows'
 import { FollowingListComponent } from './follows/following-list/following-list.component'
 import { RedundancyCheckboxComponent } from './follows/shared/redundancy-checkbox.component'
 import { VideoRedundancyInformationComponent } from './follows/video-redundancies-list/video-redundancy-information.component'
 import { AbuseListComponent, VideoBlockListComponent } from './moderation'
 import { InstanceAccountBlocklistComponent, InstanceServerBlocklistComponent } from './moderation/instance-blocklist'
-import { ModerationComponent } from './moderation/moderation.component'
 import { VideoCommentListComponent } from './moderation/video-comment-list'
 import { UserCreateComponent, UserListComponent, UserPasswordComponent, UserUpdateComponent, VideoListComponent } from './overview'
 import { PluginListInstalledComponent } from './plugins/plugin-list-installed/plugin-list-installed.component'
@@ -41,7 +39,7 @@ import { PluginSearchComponent } from './plugins/plugin-search/plugin-search.com
 import { PluginShowInstalledComponent } from './plugins/plugin-show-installed/plugin-show-installed.component'
 import { PluginsComponent } from './plugins/plugins.component'
 import { PluginApiService } from './plugins/shared/plugin-api.service'
-import { JobService, LogsComponent, LogsService, SystemComponent } from './system'
+import { JobService, LogsComponent, LogsService } from './system'
 import { DebugComponent, DebugService } from './system/debug'
 import { JobsComponent } from './system/jobs/jobs.component'
 
@@ -71,7 +69,6 @@ import { JobsComponent } from './system/jobs/jobs.component'
 
     VideoListComponent,
 
-    FollowsComponent,
     FollowersListComponent,
     FollowingListComponent,
     FollowModalComponent,
@@ -84,7 +81,6 @@ import { JobsComponent } from './system/jobs/jobs.component'
     UserPasswordComponent,
     UserListComponent,
 
-    ModerationComponent,
     VideoBlockListComponent,
     AbuseListComponent,
     VideoCommentListComponent,
@@ -97,13 +93,10 @@ import { JobsComponent } from './system/jobs/jobs.component'
     PluginSearchComponent,
     PluginShowInstalledComponent,
 
-    SystemComponent,
     JobsComponent,
     LogsComponent,
     DebugComponent,
 
-    ConfigComponent,
-
     EditCustomConfigComponent,
     EditBasicConfigurationComponent,
     EditVODTranscodingComponent,
diff --git a/client/src/app/+admin/config/config.component.ts b/client/src/app/+admin/config/config.component.ts
deleted file mode 100644 (file)
index e0eb772..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-import { Component } from '@angular/core'
-
-@Component({
-  template: '<router-outlet></router-outlet>'
-})
-export class ConfigComponent {
-}
index 1b76b29cc14acc086225640ea28c95f7de7138f2..6d255ac4638437a4968f4571b656e39f3e6a1a13 100644 (file)
@@ -2,12 +2,10 @@ import { Routes } from '@angular/router'
 import { EditCustomConfigComponent } from '@app/+admin/config/edit-custom-config'
 import { UserRightGuard } from '@app/core'
 import { UserRight } from '@shared/models'
-import { ConfigComponent } from './config.component'
 
 export const ConfigRoutes: Routes = [
   {
     path: 'config',
-    component: ConfigComponent,
     canActivate: [ UserRightGuard ],
     data: {
       userRight: UserRight.MANAGE_CONFIGURATION
index b47ebf8db614202d982a6f087ad277e1c6ed492c..898e925461ce7cd1c93c0385ff4d8b8ebf084fe4 100644 (file)
@@ -1,3 +1,2 @@
 export * from './edit-custom-config'
-export * from './config.component'
 export * from './config.routes'
index b867b4ba5cf9eddf950b4146e11ad3e371f71997..329e3bcc7071bd0ace53255f541deec7f90cd487 100644 (file)
@@ -7,7 +7,7 @@ import { ActorFollow } from '@shared/models'
 @Component({
   selector: 'my-followers-list',
   templateUrl: './followers-list.component.html',
-  styleUrls: [ '../follows.component.scss', './followers-list.component.scss' ]
+  styleUrls: [ './followers-list.component.scss' ]
 })
 export class FollowersListComponent extends RestTable implements OnInit {
   followers: ActorFollow[] = []
index 383f66ffde6baf3f1b22c51eff04841a6398525f..2c0f6db0c900d9f36eb8d7fd34723fa03fb6869c 100644 (file)
@@ -7,7 +7,7 @@ import { FollowModalComponent } from './follow-modal.component'
 
 @Component({
   templateUrl: './following-list.component.html',
-  styleUrls: [ '../follows.component.scss', './following-list.component.scss' ]
+  styleUrls: [ './following-list.component.scss' ]
 })
 export class FollowingListComponent extends RestTable implements OnInit {
   @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 (file)
index 0680b43..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<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 (file)
index 944135c..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-@use '_mixins' as *;
-
-.form-sub-title {
-  @include margin-right(30px);
-
-  flex-grow: 0;
-}
-
-.badge {
-  @include table-badge;
-}
diff --git a/client/src/app/+admin/follows/follows.component.ts b/client/src/app/+admin/follows/follows.component.ts
deleted file mode 100644 (file)
index 1ec7e59..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-import { Component } from '@angular/core'
-
-@Component({
-  templateUrl: './follows.component.html',
-  styleUrls: [ './follows.component.scss' ]
-})
-export class FollowsComponent {
-}
index 3843b42b5e14a2d1a4c7372ab747f0b5d7424aaf..1825ce2789c9ea767d55506ce7b6f9f7194bd3ac 100644 (file)
@@ -4,12 +4,10 @@ import { UserRightGuard } from '@app/core'
 import { UserRight } from '@shared/models'
 import { FollowersListComponent } from './followers-list'
 import { FollowingListComponent } from './following-list/following-list.component'
-import { FollowsComponent } from './follows.component'
 
 export const FollowsRoutes: Routes = [
   {
     path: 'follows',
-    component: FollowsComponent,
     canActivate: [ UserRightGuard ],
     data: {
       userRight: UserRight.MANAGE_SERVER_FOLLOW
index 285955468a36e9d5f6cb7c4cd358ea11dd4e2ff2..b52ec7e8c703d3bdae6de17460f697b84ef6ee3a 100644 (file)
@@ -1,5 +1,4 @@
 export * from './followers-list'
 export * from './following-list'
 export * from './video-redundancies-list'
-export * from './follows.component'
 export * from './follows.routes'
index 6d6384829f6c9286e64ec869dc77c3a83c3a2e8c..d0095a01eb63c2a3ab3951aff78e1670a377bf5c 100644 (file)
@@ -86,7 +86,7 @@
 
 
 <div class="redundancies-charts" *ngIf="isDisplayingRemoteVideos()">
-  <div class="form-sub-title" i18n>Enabled strategies stats</div>
+  <h6 i18n>Enabled strategies stats</h6>
 
   <div class="chart-blocks">
 
index 2f87c67436b60c9d3c278764875b916bc5fe498c..c862cd2506a9d5b2339a49ce768f6fe0f07e48b6 100644 (file)
@@ -10,7 +10,7 @@ import { VideosRedundancyStats } from '@shared/models/server'
 @Component({
   selector: 'my-video-redundancies-list',
   templateUrl: './video-redundancies-list.component.html',
-  styleUrls: [ '../follows.component.scss', './video-redundancies-list.component.scss' ]
+  styleUrls: [ './video-redundancies-list.component.scss' ]
 })
 export class VideoRedundanciesListComponent extends RestTable implements OnInit {
   private static LOCAL_STORAGE_DISPLAY_TYPE = 'video-redundancies-list-display-type'
index 53e4bc9913245fbb69357d72f0c42417558b7027..9dab270ccbea293ada736cd726f6a74daf12a35d 100644 (file)
@@ -1,5 +1,4 @@
 export * from './abuse-list'
 export * from './instance-blocklist'
 export * from './video-block-list'
-export * from './moderation.component'
 export * from './moderation.routes'
diff --git a/client/src/app/+admin/moderation/moderation.component.html b/client/src/app/+admin/moderation/moderation.component.html
deleted file mode 100644 (file)
index 90c6b64..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<router-outlet></router-outlet>
\ No newline at end of file
diff --git a/client/src/app/+admin/moderation/moderation.component.ts b/client/src/app/+admin/moderation/moderation.component.ts
deleted file mode 100644 (file)
index 44dd11c..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-import { Component, OnInit } from '@angular/core'
-import { ServerService } from '@app/core'
-
-@Component({
-  templateUrl: './moderation.component.html',
-  styleUrls: [ ]
-})
-export class ModerationComponent implements OnInit {
-  autoBlockVideosEnabled = false
-
-  constructor (
-    private serverService: ServerService
-  ) { }
-
-  ngOnInit (): void {
-    const serverConfig = this.serverService.getHTMLConfig()
-
-    this.autoBlockVideosEnabled = serverConfig.autoBlacklist.videos.ofUsers.enabled
-  }
-}
index 2e28f0911736b7d9fe7d58b49405a960594a5912..5c39ff366c7e137bb804be3ff17347ed11c2fe4d 100644 (file)
@@ -1,7 +1,6 @@
 import { Routes } from '@angular/router'
 import { AbuseListComponent } from '@app/+admin/moderation/abuse-list'
 import { InstanceAccountBlocklistComponent, InstanceServerBlocklistComponent } from '@app/+admin/moderation/instance-blocklist'
-import { ModerationComponent } from '@app/+admin/moderation/moderation.component'
 import { VideoBlockListComponent } from '@app/+admin/moderation/video-block-list'
 import { VideoCommentListComponent } from './video-comment-list'
 import { UserRightGuard } from '@app/core'
@@ -10,7 +9,6 @@ import { UserRight } from '@shared/models'
 export const ModerationRoutes: Routes = [
   {
     path: 'moderation',
-    component: ModerationComponent,
     children: [
       {
         path: '',
index 6152d9651ea9277834f747386a559bed363b6a52..9cae08e8571fbc4eddaa60862853634ecdfc8fc1 100644 (file)
@@ -5,7 +5,3 @@ my-global-icon {
   width: 24px;
   height: 24px;
 }
-
-.badge {
-  @include table-badge;
-}
index e425306b5bb110ae3b40a1e2be19cc0f28dae114..335bd2995f066bb02812ea51c447f6d3615531d7 100644 (file)
@@ -43,10 +43,6 @@ my-global-icon {
   @include chip;
 }
 
-.badge {
-  @include table-badge;
-}
-
 .progress {
   @include progressbar($small: true);
 
index 8cced0cdbfa63d9654c43f43132fcf64c84ce2eb..b398832cc5d76fbdfac8d45c1e732d2b67f97d54 100644 (file)
@@ -1,5 +1,4 @@
 export * from './debug'
 export * from './jobs'
 export * from './logs'
-export * from './system.component'
 export * from './system.routes'
index 4d564f4b74d654c2494845bc62dcb24a5579387e..eadaf7904ad829b840256b185dd4b971a61bb756 100644 (file)
@@ -55,7 +55,3 @@ pre {
 .job-error {
   color: #ff0000;
 }
-
-.badge {
-  @include table-badge;
-}
diff --git a/client/src/app/+admin/system/system.component.html b/client/src/app/+admin/system/system.component.html
deleted file mode 100644 (file)
index 0680b43..0000000
+++ /dev/null
@@ -1 +0,0 @@
-<router-outlet></router-outlet>
diff --git a/client/src/app/+admin/system/system.component.ts b/client/src/app/+admin/system/system.component.ts
deleted file mode 100644 (file)
index b63160b..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-import { Component } from '@angular/core'
-
-@Component({
-  templateUrl: './system.component.html',
-  styleUrls: []
-})
-export class SystemComponent {
-}
index 72ab6705ad0703af827432d73dc7e9fd013b405b..d180aa3b96e9d12315b92af5272ae5ca7e3dd8d5 100644 (file)
@@ -4,12 +4,10 @@ import { UserRight } from '@shared/models'
 import { DebugComponent } from './debug'
 import { JobsComponent } from './jobs/jobs.component'
 import { LogsComponent } from './logs'
-import { SystemComponent } from './system.component'
 
 export const SystemRoutes: Routes = [
   {
     path: 'system',
-    component: SystemComponent,
     children: [
       {
         path: '',
index 296659ea03b164333de14fdc2c12365b3b440727..d32477270781b464ed777c45eed7c95ef2442872 100644 (file)
@@ -6,10 +6,6 @@
   @include chip;
 }
 
-.badge {
-  @include table-badge;
-}
-
 .video-table-video {
   display: inline-flex;
 
index 2fc94e23a6010e77185f1a08518ccf01dbef06d6..7acacd47f53d83feeb756c280ef1850cedce8a50 100644 (file)
@@ -8,7 +8,3 @@ pre {
 .video-import-error {
   color: #ff0000;
 }
-
-.badge {
-  @include table-badge;
-}
index 7db519615edfa51932e234574d2ddccd10e7c64a..8c777fbb6a5fe40ad49b6d362239e9e251dd9ca7 100644 (file)
@@ -4,12 +4,10 @@ import { LoginGuard } from '@app/core'
 import { VideosListCommonPageComponent } from './video-list'
 import { VideoOverviewComponent } from './video-list/overview/video-overview.component'
 import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component'
-import { VideosComponent } from './videos.component'
 
 const videosRoutes: Routes = [
   {
     path: '',
-    component: VideosComponent,
     children: [
       {
         path: 'overview',
diff --git a/client/src/app/+videos/videos.component.ts b/client/src/app/+videos/videos.component.ts
deleted file mode 100644 (file)
index 585a3ad..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-import { Component } from '@angular/core'
-
-@Component({
-  template: '<router-outlet></router-outlet>'
-})
-export class VideosComponent {}
index 523533c1115231e4eba08d334cd5bc43d3cbc8cd..f06f4be2b9d6ccbe25fbbcb40f9d8e3bdf565f8a 100644 (file)
@@ -9,7 +9,6 @@ import { OverviewService, VideosListCommonPageComponent } from './video-list'
 import { VideoOverviewComponent } from './video-list/overview/video-overview.component'
 import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component'
 import { VideosRoutingModule } from './videos-routing.module'
-import { VideosComponent } from './videos.component'
 
 @NgModule({
   imports: [
@@ -24,16 +23,12 @@ import { VideosComponent } from './videos.component'
   ],
 
   declarations: [
-    VideosComponent,
-
     VideoUserSubscriptionsComponent,
     VideoOverviewComponent,
     VideosListCommonPageComponent
   ],
 
-  exports: [
-    VideosComponent
-  ],
+  exports: [],
 
   providers: [
     OverviewService
index e0e8fc8285c129aae44df6d87b8b17f700fc193c..1f8166d8a85da95e40d7617c8102f8df0eee6bac 100644 (file)
@@ -262,10 +262,6 @@ my-input-toggle-hidden ::ng-deep input {
   align-items: center;
   margin-bottom: 30px;
 
-  .form-sub-title {
-    flex-grow: 1;
-  }
-
   .admin-sub-nav a {
     @include disable-default-a-behaviour;
 
@@ -289,11 +285,6 @@ my-input-toggle-hidden ::ng-deep input {
   }
 }
 
-.form-sub-title {
-  font-size: 20px;
-  font-weight: bold;
-}
-
 // In tables, don't have a hover different background
 table {
   .action-button-edit,
@@ -412,13 +403,6 @@ ngx-loading-bar {
     .admin-sub-header {
       flex-direction: column;
 
-      .form-sub-title {
-        @include margin-right(0 !important);
-
-        margin-bottom: 10px;
-        text-align: center;
-      }
-
       .admin-sub-nav {
         display: block;
         overflow-x: auto;
index 7aba69e4a43e4e0333c3191430795cfaeb553cbf..66b4056cbf083ef43d4e6d22e65e6496709d3331 100644 (file)
@@ -495,7 +495,7 @@ body p-selectbutton.ng-dirty.ng-invalid .p-button {
   border: 1px solid #a80000;
 }
 
-//
+// data table customizations
 
 @mixin glyphicon-light {
   font-family: 'Glyphicons Halflings';
@@ -504,7 +504,6 @@ body p-selectbutton.ng-dirty.ng-invalid .p-button {
   font-display: swap;
 }
 
-// data table customizations
 p-table {
   .p-datatable-header {
     border: none !important;
@@ -759,6 +758,10 @@ p-table {
       }
     }
   }
+
+  .badge {
+    @include table-badge;
+  }
 }
 
 // overflow data table