1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Remove barrels

They can prevent tree shaking
This commit is contained in:
Chocobozzz 2024-03-05 09:30:12 +01:00
parent 5e041ff7c2
commit 338633ce72
No known key found for this signature in database
GPG key ID: 583A612D890159BE
275 changed files with 670 additions and 715 deletions

View file

@ -1,13 +1,13 @@
import { Component, EventEmitter, Input, OnChanges, OnInit, Output, ViewChild } from '@angular/core'
import { AuthService, ConfirmService, Notifier, ServerService } from '@app/core'
import { Account, DropdownAction } from '@app/shared/shared-main'
import { BulkRemoveCommentsOfBody, User, UserRight } from '@peertube/peertube-models'
import { UserAdminService } from '../shared-users'
import { BlocklistService } from './blocklist.service'
import { BulkService } from './bulk.service'
import { UserBanModalComponent } from './user-ban-modal.component'
import { ActionDropdownComponent } from '../shared-main/buttons/action-dropdown.component'
import { ActionDropdownComponent, DropdownAction } from '../shared-main/buttons/action-dropdown.component'
import { NgIf } from '@angular/common'
import { Account } from '../shared-main/account/account.model'
import { UserAdminService } from '../shared-users/user-admin.service'
export type AccountMutedStatus =
Pick<Account, 'id' | 'nameWithHost' | 'host' | 'userId' |
@ -23,8 +23,7 @@ export type UserModerationDisplayType = {
selector: 'my-user-moderation-dropdown',
templateUrl: './user-moderation-dropdown.component.html',
standalone: true,
imports: [ NgIf, UserBanModalComponent, ActionDropdownComponent ],
providers: [ UserAdminService, BlocklistService, BulkService ]
imports: [ NgIf, UserBanModalComponent, ActionDropdownComponent ]
})
export class UserModerationDropdownComponent implements OnInit, OnChanges {
@ViewChild('userBanModal') userBanModal: UserBanModalComponent