Remove useless components

This commit is contained in:
Chocobozzz 2021-10-29 11:33:28 +02:00
parent 3c10840fa9
commit eeae81428e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
31 changed files with 12 additions and 134 deletions

View File

@ -16,7 +16,6 @@ import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'
import { AdminRoutingModule } from './admin-routing.module' import { AdminRoutingModule } from './admin-routing.module'
import { AdminComponent } from './admin.component' import { AdminComponent } from './admin.component'
import { import {
ConfigComponent,
EditAdvancedConfigurationComponent, EditAdvancedConfigurationComponent,
EditBasicConfigurationComponent, EditBasicConfigurationComponent,
EditConfigurationService, EditConfigurationService,
@ -27,13 +26,12 @@ import {
EditVODTranscodingComponent EditVODTranscodingComponent
} from './config' } from './config'
import { ConfigService } from './config/shared/config.service' 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 { FollowingListComponent } from './follows/following-list/following-list.component'
import { RedundancyCheckboxComponent } from './follows/shared/redundancy-checkbox.component' import { RedundancyCheckboxComponent } from './follows/shared/redundancy-checkbox.component'
import { VideoRedundancyInformationComponent } from './follows/video-redundancies-list/video-redundancy-information.component' import { VideoRedundancyInformationComponent } from './follows/video-redundancies-list/video-redundancy-information.component'
import { AbuseListComponent, VideoBlockListComponent } from './moderation' import { AbuseListComponent, VideoBlockListComponent } from './moderation'
import { InstanceAccountBlocklistComponent, InstanceServerBlocklistComponent } from './moderation/instance-blocklist' import { InstanceAccountBlocklistComponent, InstanceServerBlocklistComponent } from './moderation/instance-blocklist'
import { ModerationComponent } from './moderation/moderation.component'
import { VideoCommentListComponent } from './moderation/video-comment-list' import { VideoCommentListComponent } from './moderation/video-comment-list'
import { UserCreateComponent, UserListComponent, UserPasswordComponent, UserUpdateComponent, VideoListComponent } from './overview' import { UserCreateComponent, UserListComponent, UserPasswordComponent, UserUpdateComponent, VideoListComponent } from './overview'
import { PluginListInstalledComponent } from './plugins/plugin-list-installed/plugin-list-installed.component' 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 { PluginShowInstalledComponent } from './plugins/plugin-show-installed/plugin-show-installed.component'
import { PluginsComponent } from './plugins/plugins.component' import { PluginsComponent } from './plugins/plugins.component'
import { PluginApiService } from './plugins/shared/plugin-api.service' 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 { DebugComponent, DebugService } from './system/debug'
import { JobsComponent } from './system/jobs/jobs.component' import { JobsComponent } from './system/jobs/jobs.component'
@ -71,7 +69,6 @@ import { JobsComponent } from './system/jobs/jobs.component'
VideoListComponent, VideoListComponent,
FollowsComponent,
FollowersListComponent, FollowersListComponent,
FollowingListComponent, FollowingListComponent,
FollowModalComponent, FollowModalComponent,
@ -84,7 +81,6 @@ import { JobsComponent } from './system/jobs/jobs.component'
UserPasswordComponent, UserPasswordComponent,
UserListComponent, UserListComponent,
ModerationComponent,
VideoBlockListComponent, VideoBlockListComponent,
AbuseListComponent, AbuseListComponent,
VideoCommentListComponent, VideoCommentListComponent,
@ -97,13 +93,10 @@ import { JobsComponent } from './system/jobs/jobs.component'
PluginSearchComponent, PluginSearchComponent,
PluginShowInstalledComponent, PluginShowInstalledComponent,
SystemComponent,
JobsComponent, JobsComponent,
LogsComponent, LogsComponent,
DebugComponent, DebugComponent,
ConfigComponent,
EditCustomConfigComponent, EditCustomConfigComponent,
EditBasicConfigurationComponent, EditBasicConfigurationComponent,
EditVODTranscodingComponent, EditVODTranscodingComponent,

View File

@ -1,7 +0,0 @@
import { Component } from '@angular/core'
@Component({
template: '<router-outlet></router-outlet>'
})
export class ConfigComponent {
}

View File

@ -2,12 +2,10 @@ import { Routes } from '@angular/router'
import { EditCustomConfigComponent } from '@app/+admin/config/edit-custom-config' import { EditCustomConfigComponent } from '@app/+admin/config/edit-custom-config'
import { UserRightGuard } from '@app/core' import { UserRightGuard } from '@app/core'
import { UserRight } from '@shared/models' import { UserRight } from '@shared/models'
import { ConfigComponent } from './config.component'
export const ConfigRoutes: Routes = [ export const ConfigRoutes: Routes = [
{ {
path: 'config', path: 'config',
component: ConfigComponent,
canActivate: [ UserRightGuard ], canActivate: [ UserRightGuard ],
data: { data: {
userRight: UserRight.MANAGE_CONFIGURATION userRight: UserRight.MANAGE_CONFIGURATION

View File

@ -1,3 +1,2 @@
export * from './edit-custom-config' export * from './edit-custom-config'
export * from './config.component'
export * from './config.routes' export * from './config.routes'

View File

@ -7,7 +7,7 @@ import { ActorFollow } from '@shared/models'
@Component({ @Component({
selector: 'my-followers-list', selector: 'my-followers-list',
templateUrl: './followers-list.component.html', 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 { export class FollowersListComponent extends RestTable implements OnInit {
followers: ActorFollow[] = [] followers: ActorFollow[] = []

View File

@ -7,7 +7,7 @@ import { FollowModalComponent } from './follow-modal.component'
@Component({ @Component({
templateUrl: './following-list.component.html', 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 { export class FollowingListComponent extends RestTable implements OnInit {
@ViewChild('followModal') followModal: FollowModalComponent @ViewChild('followModal') followModal: FollowModalComponent

View File

@ -1 +0,0 @@
<router-outlet></router-outlet>

View File

@ -1,11 +0,0 @@
@use '_mixins' as *;
.form-sub-title {
@include margin-right(30px);
flex-grow: 0;
}
.badge {
@include table-badge;
}

View File

@ -1,8 +0,0 @@
import { Component } from '@angular/core'
@Component({
templateUrl: './follows.component.html',
styleUrls: [ './follows.component.scss' ]
})
export class FollowsComponent {
}

View File

@ -4,12 +4,10 @@ import { UserRightGuard } from '@app/core'
import { UserRight } from '@shared/models' import { UserRight } from '@shared/models'
import { FollowersListComponent } from './followers-list' import { FollowersListComponent } from './followers-list'
import { FollowingListComponent } from './following-list/following-list.component' import { FollowingListComponent } from './following-list/following-list.component'
import { FollowsComponent } from './follows.component'
export const FollowsRoutes: Routes = [ export const FollowsRoutes: Routes = [
{ {
path: 'follows', path: 'follows',
component: FollowsComponent,
canActivate: [ UserRightGuard ], canActivate: [ UserRightGuard ],
data: { data: {
userRight: UserRight.MANAGE_SERVER_FOLLOW userRight: UserRight.MANAGE_SERVER_FOLLOW

View File

@ -1,5 +1,4 @@
export * from './followers-list' export * from './followers-list'
export * from './following-list' export * from './following-list'
export * from './video-redundancies-list' export * from './video-redundancies-list'
export * from './follows.component'
export * from './follows.routes' export * from './follows.routes'

View File

@ -86,7 +86,7 @@
<div class="redundancies-charts" *ngIf="isDisplayingRemoteVideos()"> <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"> <div class="chart-blocks">

View File

@ -10,7 +10,7 @@ import { VideosRedundancyStats } from '@shared/models/server'
@Component({ @Component({
selector: 'my-video-redundancies-list', selector: 'my-video-redundancies-list',
templateUrl: './video-redundancies-list.component.html', 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 { export class VideoRedundanciesListComponent extends RestTable implements OnInit {
private static LOCAL_STORAGE_DISPLAY_TYPE = 'video-redundancies-list-display-type' private static LOCAL_STORAGE_DISPLAY_TYPE = 'video-redundancies-list-display-type'

View File

@ -1,5 +1,4 @@
export * from './abuse-list' export * from './abuse-list'
export * from './instance-blocklist' export * from './instance-blocklist'
export * from './video-block-list' export * from './video-block-list'
export * from './moderation.component'
export * from './moderation.routes' export * from './moderation.routes'

View File

@ -1 +0,0 @@
<router-outlet></router-outlet>

View File

@ -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
}
}

View File

@ -1,7 +1,6 @@
import { Routes } from '@angular/router' import { Routes } from '@angular/router'
import { AbuseListComponent } from '@app/+admin/moderation/abuse-list' import { AbuseListComponent } from '@app/+admin/moderation/abuse-list'
import { InstanceAccountBlocklistComponent, InstanceServerBlocklistComponent } from '@app/+admin/moderation/instance-blocklist' 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 { VideoBlockListComponent } from '@app/+admin/moderation/video-block-list'
import { VideoCommentListComponent } from './video-comment-list' import { VideoCommentListComponent } from './video-comment-list'
import { UserRightGuard } from '@app/core' import { UserRightGuard } from '@app/core'
@ -10,7 +9,6 @@ import { UserRight } from '@shared/models'
export const ModerationRoutes: Routes = [ export const ModerationRoutes: Routes = [
{ {
path: 'moderation', path: 'moderation',
component: ModerationComponent,
children: [ children: [
{ {
path: '', path: '',

View File

@ -5,7 +5,3 @@ my-global-icon {
width: 24px; width: 24px;
height: 24px; height: 24px;
} }
.badge {
@include table-badge;
}

View File

@ -43,10 +43,6 @@ my-global-icon {
@include chip; @include chip;
} }
.badge {
@include table-badge;
}
.progress { .progress {
@include progressbar($small: true); @include progressbar($small: true);

View File

@ -1,5 +1,4 @@
export * from './debug' export * from './debug'
export * from './jobs' export * from './jobs'
export * from './logs' export * from './logs'
export * from './system.component'
export * from './system.routes' export * from './system.routes'

View File

@ -55,7 +55,3 @@ pre {
.job-error { .job-error {
color: #ff0000; color: #ff0000;
} }
.badge {
@include table-badge;
}

View File

@ -1 +0,0 @@
<router-outlet></router-outlet>

View File

@ -1,8 +0,0 @@
import { Component } from '@angular/core'
@Component({
templateUrl: './system.component.html',
styleUrls: []
})
export class SystemComponent {
}

View File

@ -4,12 +4,10 @@ import { UserRight } from '@shared/models'
import { DebugComponent } from './debug' import { DebugComponent } from './debug'
import { JobsComponent } from './jobs/jobs.component' import { JobsComponent } from './jobs/jobs.component'
import { LogsComponent } from './logs' import { LogsComponent } from './logs'
import { SystemComponent } from './system.component'
export const SystemRoutes: Routes = [ export const SystemRoutes: Routes = [
{ {
path: 'system', path: 'system',
component: SystemComponent,
children: [ children: [
{ {
path: '', path: '',

View File

@ -6,10 +6,6 @@
@include chip; @include chip;
} }
.badge {
@include table-badge;
}
.video-table-video { .video-table-video {
display: inline-flex; display: inline-flex;

View File

@ -8,7 +8,3 @@ pre {
.video-import-error { .video-import-error {
color: #ff0000; color: #ff0000;
} }
.badge {
@include table-badge;
}

View File

@ -4,12 +4,10 @@ import { LoginGuard } from '@app/core'
import { VideosListCommonPageComponent } from './video-list' import { VideosListCommonPageComponent } from './video-list'
import { VideoOverviewComponent } from './video-list/overview/video-overview.component' import { VideoOverviewComponent } from './video-list/overview/video-overview.component'
import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component' import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component'
import { VideosComponent } from './videos.component'
const videosRoutes: Routes = [ const videosRoutes: Routes = [
{ {
path: '', path: '',
component: VideosComponent,
children: [ children: [
{ {
path: 'overview', path: 'overview',

View File

@ -1,6 +0,0 @@
import { Component } from '@angular/core'
@Component({
template: '<router-outlet></router-outlet>'
})
export class VideosComponent {}

View File

@ -9,7 +9,6 @@ import { OverviewService, VideosListCommonPageComponent } from './video-list'
import { VideoOverviewComponent } from './video-list/overview/video-overview.component' import { VideoOverviewComponent } from './video-list/overview/video-overview.component'
import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component' import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component'
import { VideosRoutingModule } from './videos-routing.module' import { VideosRoutingModule } from './videos-routing.module'
import { VideosComponent } from './videos.component'
@NgModule({ @NgModule({
imports: [ imports: [
@ -24,16 +23,12 @@ import { VideosComponent } from './videos.component'
], ],
declarations: [ declarations: [
VideosComponent,
VideoUserSubscriptionsComponent, VideoUserSubscriptionsComponent,
VideoOverviewComponent, VideoOverviewComponent,
VideosListCommonPageComponent VideosListCommonPageComponent
], ],
exports: [ exports: [],
VideosComponent
],
providers: [ providers: [
OverviewService OverviewService

View File

@ -262,10 +262,6 @@ my-input-toggle-hidden ::ng-deep input {
align-items: center; align-items: center;
margin-bottom: 30px; margin-bottom: 30px;
.form-sub-title {
flex-grow: 1;
}
.admin-sub-nav a { .admin-sub-nav a {
@include disable-default-a-behaviour; @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 // In tables, don't have a hover different background
table { table {
.action-button-edit, .action-button-edit,
@ -412,13 +403,6 @@ ngx-loading-bar {
.admin-sub-header { .admin-sub-header {
flex-direction: column; flex-direction: column;
.form-sub-title {
@include margin-right(0 !important);
margin-bottom: 10px;
text-align: center;
}
.admin-sub-nav { .admin-sub-nav {
display: block; display: block;
overflow-x: auto; overflow-x: auto;

View File

@ -495,7 +495,7 @@ body p-selectbutton.ng-dirty.ng-invalid .p-button {
border: 1px solid #a80000; border: 1px solid #a80000;
} }
// // data table customizations
@mixin glyphicon-light { @mixin glyphicon-light {
font-family: 'Glyphicons Halflings'; font-family: 'Glyphicons Halflings';
@ -504,7 +504,6 @@ body p-selectbutton.ng-dirty.ng-invalid .p-button {
font-display: swap; font-display: swap;
} }
// data table customizations
p-table { p-table {
.p-datatable-header { .p-datatable-header {
border: none !important; border: none !important;
@ -759,6 +758,10 @@ p-table {
} }
} }
} }
.badge {
@include table-badge;
}
} }
// overflow data table // overflow data table