import { AdminRoutingModule } from './admin-routing.module'
import { AdminComponent } from './admin.component'
import {
- ConfigComponent,
EditAdvancedConfigurationComponent,
EditBasicConfigurationComponent,
EditConfigurationService,
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'
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'
VideoListComponent,
- FollowsComponent,
FollowersListComponent,
FollowingListComponent,
FollowModalComponent,
UserPasswordComponent,
UserListComponent,
- ModerationComponent,
VideoBlockListComponent,
AbuseListComponent,
VideoCommentListComponent,
PluginSearchComponent,
PluginShowInstalledComponent,
- SystemComponent,
JobsComponent,
LogsComponent,
DebugComponent,
- ConfigComponent,
-
EditCustomConfigComponent,
EditBasicConfigurationComponent,
EditVODTranscodingComponent,
+++ /dev/null
-import { Component } from '@angular/core'
-
-@Component({
- template: '<router-outlet></router-outlet>'
-})
-export class ConfigComponent {
-}
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
export * from './edit-custom-config'
-export * from './config.component'
export * from './config.routes'
@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[] = []
@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
+++ /dev/null
-<router-outlet></router-outlet>
+++ /dev/null
-@use '_mixins' as *;
-
-.form-sub-title {
- @include margin-right(30px);
-
- flex-grow: 0;
-}
-
-.badge {
- @include table-badge;
-}
+++ /dev/null
-import { Component } from '@angular/core'
-
-@Component({
- templateUrl: './follows.component.html',
- styleUrls: [ './follows.component.scss' ]
-})
-export class FollowsComponent {
-}
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
export * from './followers-list'
export * from './following-list'
export * from './video-redundancies-list'
-export * from './follows.component'
export * from './follows.routes'
<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">
@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'
export * from './abuse-list'
export * from './instance-blocklist'
export * from './video-block-list'
-export * from './moderation.component'
export * from './moderation.routes'
+++ /dev/null
-<router-outlet></router-outlet>
\ No newline at end of file
+++ /dev/null
-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
- }
-}
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'
export const ModerationRoutes: Routes = [
{
path: 'moderation',
- component: ModerationComponent,
children: [
{
path: '',
width: 24px;
height: 24px;
}
-
-.badge {
- @include table-badge;
-}
@include chip;
}
-.badge {
- @include table-badge;
-}
-
.progress {
@include progressbar($small: true);
export * from './debug'
export * from './jobs'
export * from './logs'
-export * from './system.component'
export * from './system.routes'
.job-error {
color: #ff0000;
}
-
-.badge {
- @include table-badge;
-}
+++ /dev/null
-<router-outlet></router-outlet>
+++ /dev/null
-import { Component } from '@angular/core'
-
-@Component({
- templateUrl: './system.component.html',
- styleUrls: []
-})
-export class SystemComponent {
-}
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: '',
@include chip;
}
-.badge {
- @include table-badge;
-}
-
.video-table-video {
display: inline-flex;
.video-import-error {
color: #ff0000;
}
-
-.badge {
- @include table-badge;
-}
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',
+++ /dev/null
-import { Component } from '@angular/core'
-
-@Component({
- template: '<router-outlet></router-outlet>'
-})
-export class VideosComponent {}
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: [
],
declarations: [
- VideosComponent,
-
VideoUserSubscriptionsComponent,
VideoOverviewComponent,
VideosListCommonPageComponent
],
- exports: [
- VideosComponent
- ],
+ exports: [],
providers: [
OverviewService
align-items: center;
margin-bottom: 30px;
- .form-sub-title {
- flex-grow: 1;
- }
-
.admin-sub-nav a {
@include disable-default-a-behaviour;
}
}
-.form-sub-title {
- font-size: 20px;
- font-weight: bold;
-}
-
// In tables, don't have a hover different background
table {
.action-button-edit,
.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;
border: 1px solid #a80000;
}
-//
+// data table customizations
@mixin glyphicon-light {
font-family: 'Glyphicons Halflings';
font-display: swap;
}
-// data table customizations
p-table {
.p-datatable-header {
border: none !important;
}
}
}
+
+ .badge {
+ @include table-badge;
+ }
}
// overflow data table