Reorganize main shared
This commit is contained in:
parent
5e608d7c71
commit
2dbb83c11b
|
@ -1,6 +1,6 @@
|
|||
import { Component, Input } from '@angular/core'
|
||||
import { ServerStats } from '@peertube/peertube-models'
|
||||
import { BytesPipe } from '../../shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '../../shared/shared-main/common/bytes.pipe'
|
||||
import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'
|
||||
import { NgIf, DecimalPipe } from '@angular/common'
|
||||
|
||||
|
|
|
@ -8,12 +8,12 @@ import { MiniatureDisplayOptions, VideoMiniatureComponent } from '../../shared/s
|
|||
import { SubscribeButtonComponent } from '../../shared/shared-user-subscription/subscribe-button.component'
|
||||
import { RouterLink } from '@angular/router'
|
||||
import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { NgIf, NgFor } from '@angular/common'
|
||||
import { AccountService } from '@app/shared/shared-main/account/account.service'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'
|
||||
import { VideoService } from '@app/shared/shared-main/video/video.service'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { Account } from '@app/shared/shared-main/account/account.model'
|
||||
import { Video } from '@app/shared/shared-main/video/video.model'
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@ import { AuthService, MarkdownService, MetaService, Notifier, RedirectService, R
|
|||
import { Account } from '@app/shared/shared-main/account/account.model'
|
||||
import { AccountService } from '@app/shared/shared-main/account/account.service'
|
||||
import { DropdownAction } from '@app/shared/shared-main/buttons/action-dropdown.component'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'
|
||||
import { VideoService } from '@app/shared/shared-main/video/video.service'
|
||||
import { BlocklistService } from '@app/shared/shared-moderation/blocklist.service'
|
||||
import { AccountReportComponent } from '@app/shared/shared-moderation/report-modals'
|
||||
|
@ -16,8 +16,8 @@ import { Subscription } from 'rxjs'
|
|||
import { catchError, distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators'
|
||||
import { ActorAvatarComponent } from '../shared/shared-actor-image/actor-avatar.component'
|
||||
import { CopyButtonComponent } from '../shared/shared-main/buttons/copy-button.component'
|
||||
import { ListOverflowComponent, ListOverflowItem } from '../shared/shared-main/misc/list-overflow.component'
|
||||
import { SimpleSearchInputComponent } from '../shared/shared-main/misc/simple-search-input.component'
|
||||
import { ListOverflowComponent, ListOverflowItem } from '../shared/shared-main/menu/list-overflow.component'
|
||||
import { SimpleSearchInputComponent } from '../shared/shared-main/search/simple-search-input.component'
|
||||
import { AccountBlockBadgesComponent } from '../shared/shared-moderation/account-block-badges.component'
|
||||
import { UserModerationDropdownComponent } from '../shared/shared-moderation/user-moderation-dropdown.component'
|
||||
import { SubscribeButtonComponent } from '../shared/shared-user-subscription/subscribe-button.component'
|
||||
|
|
|
@ -2,10 +2,10 @@ import { NgClass } from '@angular/common'
|
|||
import { Component, OnInit } from '@angular/core'
|
||||
import { RouterOutlet } from '@angular/router'
|
||||
import { AuthService, ScreenService, ServerService } from '@app/core'
|
||||
import { ListOverflowItem } from '@app/shared/shared-main/misc/list-overflow.component'
|
||||
import { TopMenuDropdownParam } from '@app/shared/shared-main/misc/top-menu-dropdown.component'
|
||||
import { ListOverflowItem } from '@app/shared/shared-main/menu/list-overflow.component'
|
||||
import { TopMenuDropdownParam } from '@app/shared/shared-main/menu/top-menu-dropdown.component'
|
||||
import { UserRight, UserRightType } from '@peertube/peertube-models'
|
||||
import { TopMenuDropdownComponent } from '../shared/shared-main/misc/top-menu-dropdown.component'
|
||||
import { TopMenuDropdownComponent } from '../shared/shared-main/menu/top-menu-dropdown.component'
|
||||
|
||||
@Component({
|
||||
templateUrl: './admin.component.html',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Component, Input } from '@angular/core'
|
||||
import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../shared/shared-main/misc/help.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../shared/shared-main/buttons/help.component'
|
||||
import { NgClass, NgIf } from '@angular/common'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -5,11 +5,11 @@ import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'
|
|||
import { MenuService, ThemeService } from '@app/core'
|
||||
import { HTMLServerConfig } from '@peertube/peertube-models'
|
||||
import { ConfigService } from '../shared/config.service'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { SelectOptionsComponent } from '../../../shared/shared-forms/select/select-options.component'
|
||||
import { UserRealQuotaInfoComponent } from '../../shared/user-real-quota-info.component'
|
||||
import { MarkdownTextareaComponent } from '../../../shared/shared-forms/markdown-textarea.component'
|
||||
import { HelpComponent } from '../../../shared/shared-main/misc/help.component'
|
||||
import { HelpComponent } from '../../../shared/shared-main/buttons/help.component'
|
||||
import { PeertubeCheckboxComponent } from '../../../shared/shared-forms/peertube-checkbox.component'
|
||||
import { SelectCustomValueComponent } from '../../../shared/shared-forms/select/select-custom-value.component'
|
||||
import { NgFor, NgIf, NgClass } from '@angular/common'
|
||||
|
|
|
@ -16,8 +16,8 @@ import { CustomMarkupHelpComponent } from '../../../shared/shared-custom-markup/
|
|||
import { MarkdownTextareaComponent } from '../../../shared/shared-forms/markdown-textarea.component'
|
||||
import { PeertubeCheckboxComponent } from '../../../shared/shared-forms/peertube-checkbox.component'
|
||||
import { SelectCheckboxComponent } from '../../../shared/shared-forms/select/select-checkbox.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../shared/shared-main/misc/help.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../shared/shared-main/buttons/help.component'
|
||||
|
||||
@Component({
|
||||
selector: 'my-edit-instance-information',
|
||||
|
|
|
@ -8,7 +8,7 @@ import { SelectCustomValueComponent } from '../../../shared/shared-forms/select/
|
|||
import { RouterLink } from '@angular/router'
|
||||
import { SelectOptionsComponent } from '../../../shared/shared-forms/select/select-options.component'
|
||||
import { NgClass, NgIf, NgFor } from '@angular/common'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { PeertubeCheckboxComponent } from '../../../shared/shared-forms/peertube-checkbox.component'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -8,7 +8,7 @@ import { SelectOptionsItem } from 'src/types/select-options-item.model'
|
|||
import { PeertubeCheckboxComponent } from '../../../shared/shared-forms/peertube-checkbox.component'
|
||||
import { SelectCustomValueComponent } from '../../../shared/shared-forms/select/select-custom-value.component'
|
||||
import { SelectOptionsComponent } from '../../../shared/shared-forms/select/select-options.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { ConfigService } from '../shared/config.service'
|
||||
import { EditConfigurationService, ResolutionOption } from './edit-configuration.service'
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core'
|
|||
import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'
|
||||
import { formatICU } from '@app/helpers'
|
||||
import { ActorFollow } from '@peertube/peertube-models'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { DeleteButtonComponent } from '../../../shared/shared-main/buttons/delete-button.component'
|
||||
import { ButtonComponent } from '../../../shared/shared-main/buttons/button.component'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
|
|
|
@ -4,7 +4,7 @@ import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'
|
|||
import { ActorFollow } from '@peertube/peertube-models'
|
||||
import { FollowModalComponent } from './follow-modal.component'
|
||||
import { formatICU } from '@app/helpers'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { RedundancyCheckboxComponent } from '../shared/redundancy-checkbox.component'
|
||||
import { DeleteButtonComponent } from '../../../shared/shared-main/buttons/delete-button.component'
|
||||
import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'
|
||||
|
|
|
@ -6,7 +6,7 @@ import { VideoRedundanciesTarget, VideoRedundancy, VideosRedundancyStats } from
|
|||
import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage'
|
||||
import { ChartModule } from 'primeng/chart'
|
||||
import { VideoRedundancyInformationComponent } from './video-redundancy-information.component'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { DeleteButtonComponent } from '../../../shared/shared-main/buttons/delete-button.component'
|
||||
import { TableExpanderIconComponent } from '../../../shared/shared-tables/table-expander-icon.component'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
|
@ -14,7 +14,7 @@ import { NgIf, NgFor } from '@angular/common'
|
|||
import { TableModule } from 'primeng/table'
|
||||
import { FormsModule } from '@angular/forms'
|
||||
import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'
|
||||
import { BytesPipe } from '@app/shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '@app/shared/shared-main/common/bytes.pipe'
|
||||
import { RedundancyService } from '@app/shared/shared-main/video/redundancy.service'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Component, Input } from '@angular/core'
|
||||
import { FileRedundancyInformation, StreamingPlaylistRedundancyInformation } from '@peertube/peertube-models'
|
||||
import { BytesPipe } from '../../../shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '../../../shared/shared-main/common/bytes.pipe'
|
||||
import { DatePipe } from '@angular/common'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core'
|
||||
import { NgIf, DatePipe } from '@angular/common'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { ActorAvatarComponent } from '../../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Component } from '@angular/core'
|
||||
import { BatchDomainsModalComponent } from '../../../shared/shared-moderation/batch-domains-modal.component'
|
||||
import { NgIf, DatePipe } from '@angular/common'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'
|
||||
import { SharedModule } from 'primeng/api'
|
||||
|
|
|
@ -6,7 +6,7 @@ import { formatICU } from '@app/helpers'
|
|||
import { UserRegistration, UserRegistrationState } from '@peertube/peertube-models'
|
||||
import { AdminRegistrationService } from './admin-registration.service'
|
||||
import { ProcessRegistrationModalComponent } from './process-registration-modal.component'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { UserEmailInfoComponent } from '../../shared/user-email-info.component'
|
||||
import { TableExpanderIconComponent } from '../../../shared/shared-tables/table-expander-icon.component'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
|
|
|
@ -8,7 +8,7 @@ import { buildVideoEmbedLink, decorateVideoLink } from '@peertube/peertube-core-
|
|||
import { VideoBlacklist, VideoBlacklistType, VideoBlacklistType_Type } from '@peertube/peertube-models'
|
||||
import { buildVideoOrPlaylistEmbed } from '@root-helpers/video'
|
||||
import { EmbedComponent } from '../../../shared/shared-main/video/embed.component'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { VideoCellComponent } from '../../../shared/shared-tables/video-cell.component'
|
||||
import { ActionDropdownComponent, DropdownAction } from '../../../shared/shared-main/buttons/action-dropdown.component'
|
||||
import { TableExpanderIconComponent } from '../../../shared/shared-tables/table-expander-icon.component'
|
||||
|
|
|
@ -15,14 +15,14 @@ import {
|
|||
import { FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'
|
||||
import { UserCreate, UserRole } from '@peertube/peertube-models'
|
||||
import { UserEdit } from './user-edit'
|
||||
import { BytesPipe } from '../../../../shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '../../../../shared/shared-main/common/bytes.pipe'
|
||||
import { UserPasswordComponent } from './user-password.component'
|
||||
import { PeertubeCheckboxComponent } from '../../../../shared/shared-forms/peertube-checkbox.component'
|
||||
import { UserRealQuotaInfoComponent } from '../../../shared/user-real-quota-info.component'
|
||||
import { SelectCustomValueComponent } from '../../../../shared/shared-forms/select/select-custom-value.component'
|
||||
import { InputTextComponent } from '../../../../shared/shared-forms/input-text.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../../shared/shared-main/misc/help.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../../shared/shared-main/buttons/help.component'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { ActorAvatarEditComponent } from '../../../../shared/shared-actor-image-edit/actor-avatar-edit.component'
|
||||
import { NgIf, NgTemplateOutlet, NgClass, NgFor } from '@angular/common'
|
||||
|
|
|
@ -12,14 +12,14 @@ import {
|
|||
import { FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'
|
||||
import { User as UserType, UserAdminFlag, UserRole, UserUpdate } from '@peertube/peertube-models'
|
||||
import { UserEdit } from './user-edit'
|
||||
import { BytesPipe } from '../../../../shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '../../../../shared/shared-main/common/bytes.pipe'
|
||||
import { UserPasswordComponent } from './user-password.component'
|
||||
import { PeertubeCheckboxComponent } from '../../../../shared/shared-forms/peertube-checkbox.component'
|
||||
import { UserRealQuotaInfoComponent } from '../../../shared/user-real-quota-info.component'
|
||||
import { SelectCustomValueComponent } from '../../../../shared/shared-forms/select/select-custom-value.component'
|
||||
import { InputTextComponent } from '../../../../shared/shared-forms/input-text.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../../shared/shared-main/misc/help.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../../shared/shared-main/buttons/help.component'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { ActorAvatarEditComponent } from '../../../../shared/shared-actor-image-edit/actor-avatar-edit.component'
|
||||
import { NgIf, NgTemplateOutlet, NgClass, NgFor } from '@angular/common'
|
||||
|
|
|
@ -18,8 +18,8 @@ import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../../s
|
|||
import { PeertubeCheckboxComponent } from '../../../../shared/shared-forms/peertube-checkbox.component'
|
||||
import { SelectCheckboxComponent } from '../../../../shared/shared-forms/select/select-checkbox.component'
|
||||
import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'
|
||||
import { AutoColspanDirective } from '../../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { BytesPipe } from '../../../../shared/shared-main/angular/bytes.pipe'
|
||||
import { AutoColspanDirective } from '../../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { BytesPipe } from '../../../../shared/shared-main/common/bytes.pipe'
|
||||
import { ActionDropdownComponent, DropdownAction } from '../../../../shared/shared-main/buttons/action-dropdown.component'
|
||||
import {
|
||||
AccountMutedStatus,
|
||||
|
@ -28,7 +28,7 @@ import {
|
|||
} from '../../../../shared/shared-moderation/user-moderation-dropdown.component'
|
||||
import { TableExpanderIconComponent } from '../../../../shared/shared-tables/table-expander-icon.component'
|
||||
import { UserEmailInfoComponent } from '../../../shared/user-email-info.component'
|
||||
import { ProgressBarComponent } from '@app/shared/shared-main/misc/progress-bar.component'
|
||||
import { ProgressBarComponent } from '@app/shared/shared-main/common/progress-bar.component'
|
||||
|
||||
type UserForList = User & {
|
||||
rawVideoQuota: number
|
||||
|
|
|
@ -19,8 +19,8 @@ import { TableModule, TableRowExpandEvent } from 'primeng/table'
|
|||
import { finalize } from 'rxjs/operators'
|
||||
import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../shared/shared-forms/advanced-input-filter.component'
|
||||
import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { BytesPipe } from '../../../shared/shared-main/angular/bytes.pipe'
|
||||
import { AutoColspanDirective } from '../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { BytesPipe } from '../../../shared/shared-main/common/bytes.pipe'
|
||||
import { ActionDropdownComponent, DropdownAction } from '../../../shared/shared-main/buttons/action-dropdown.component'
|
||||
import { ButtonComponent } from '../../../shared/shared-main/buttons/button.component'
|
||||
import { EmbedComponent } from '../../../shared/shared-main/video/embed.component'
|
||||
|
|
|
@ -10,7 +10,7 @@ import { DeleteButtonComponent } from '../../../shared/shared-main/buttons/delet
|
|||
import { ButtonComponent } from '../../../shared/shared-main/buttons/button.component'
|
||||
import { EditButtonComponent } from '../../../shared/shared-main/buttons/edit-button.component'
|
||||
import { PluginCardComponent } from '../shared/plugin-card.component'
|
||||
import { InfiniteScrollerDirective } from '../../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { InfiniteScrollerDirective } from '../../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { NgIf, NgFor } from '@angular/common'
|
||||
import { PluginNavigationComponent } from '../shared/plugin-navigation.component'
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@ import { logger } from '@root-helpers/logger'
|
|||
import { ButtonComponent } from '../../../shared/shared-main/buttons/button.component'
|
||||
import { EditButtonComponent } from '../../../shared/shared-main/buttons/edit-button.component'
|
||||
import { PluginCardComponent } from '../shared/plugin-card.component'
|
||||
import { InfiniteScrollerDirective } from '../../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { AutofocusDirective } from '../../../shared/shared-main/angular/autofocus.directive'
|
||||
import { InfiniteScrollerDirective } from '../../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { AutofocusDirective } from '../../../shared/shared-main/common/autofocus.directive'
|
||||
import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'
|
||||
import { NgIf, NgFor } from '@angular/common'
|
||||
import { PluginNavigationComponent } from '../shared/plugin-navigation.component'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Component, Input, OnInit } from '@angular/core'
|
||||
import { ServerService } from '@app/core'
|
||||
import { HTMLServerConfig, VideoResolution } from '@peertube/peertube-models'
|
||||
import { BytesPipe } from '../../shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '../../shared/shared-main/common/bytes.pipe'
|
||||
import { NgIf } from '@angular/common'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -9,7 +9,7 @@ import { SharedModule, SortMeta } from 'primeng/api'
|
|||
import { TableModule } from 'primeng/table'
|
||||
import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../../../shared/shared-forms/advanced-input-filter.component'
|
||||
import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'
|
||||
import { AutoColspanDirective } from '../../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { ActionDropdownComponent, DropdownAction } from '../../../../shared/shared-main/buttons/action-dropdown.component'
|
||||
import { ButtonComponent } from '../../../../shared/shared-main/buttons/button.component'
|
||||
import { TableExpanderIconComponent } from '../../../../shared/shared-tables/table-expander-icon.component'
|
||||
|
|
|
@ -4,7 +4,7 @@ import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'
|
|||
import { Runner } from '@peertube/peertube-models'
|
||||
import { RunnerService } from '../runner.service'
|
||||
import { DatePipe } from '@angular/common'
|
||||
import { AutoColspanDirective } from '../../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { ActionDropdownComponent, DropdownAction } from '../../../../shared/shared-main/buttons/action-dropdown.component'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { TableModule } from 'primeng/table'
|
||||
|
|
|
@ -4,7 +4,7 @@ import { ConfirmService, Notifier, RestPagination, RestTable } from '@app/core'
|
|||
import { RunnerRegistrationToken } from '@peertube/peertube-models'
|
||||
import { RunnerService } from '../runner.service'
|
||||
import { DatePipe } from '@angular/common'
|
||||
import { AutoColspanDirective } from '../../../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { CopyButtonComponent } from '../../../../shared/shared-main/buttons/copy-button.component'
|
||||
import { ActionDropdownComponent, DropdownAction } from '../../../../shared/shared-main/buttons/action-dropdown.component'
|
||||
import { ButtonComponent } from '../../../../shared/shared-main/buttons/button.component'
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { NgIf } from '@angular/common'
|
||||
import { Component, OnInit } from '@angular/core'
|
||||
import { Title } from '@angular/platform-browser'
|
||||
import { Router } from '@angular/router'
|
||||
import { LoginLinkComponent } from '@app/shared/shared-main/users/login-link.component'
|
||||
import { HttpStatusCode, HttpStatusCodeType } from '@peertube/peertube-models'
|
||||
import { LoginLinkComponent } from '../shared/shared-main/angular/login-link.component'
|
||||
import { NgIf } from '@angular/common'
|
||||
|
||||
@Component({
|
||||
selector: 'my-error-page',
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
Sorry but there was an issue with the external login process. Please <a class="link-orange" routerLink="/about">contact an administrator</a>.
|
||||
</div>
|
||||
|
||||
<div *ngIf="error" class="alert alert-danger">
|
||||
<div *ngIf="error" class="alert alert-danger" role="alert">
|
||||
{{ error }}
|
||||
|
||||
<a *ngIf="error === 'User email is not verified.'" class="ms-1 link-orange" i18n routerLink="/verify-account/ask-send-email">
|
||||
|
|
|
@ -10,7 +10,7 @@ import { getExternalAuthHref } from '@peertube/peertube-core-utils'
|
|||
import { RegisteredExternalAuthConfig, ServerConfig, ServerErrorCode } from '@peertube/peertube-models'
|
||||
import { GlobalIconComponent } from '../shared/shared-icons/global-icon.component'
|
||||
import { InstanceBannerComponent } from '../shared/shared-instance/instance-banner.component'
|
||||
import { AutofocusDirective } from '../shared/shared-main/angular/autofocus.directive'
|
||||
import { AutofocusDirective } from '../shared/shared-main/common/autofocus.directive'
|
||||
import { PluginSelectorDirective } from '../shared/shared-main/plugins/plugin-selector.directive'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { NgIf, NgClass, NgTemplateOutlet, NgFor } from '@angular/common'
|
||||
|
|
|
@ -14,13 +14,13 @@ import { HttpStatusCode, VideoChannelCreate } from '@peertube/peertube-models'
|
|||
import { VideoChannelEdit } from './video-channel-edit'
|
||||
import { PeertubeCheckboxComponent } from '../../shared/shared-forms/peertube-checkbox.component'
|
||||
import { MarkdownTextareaComponent } from '../../shared/shared-forms/markdown-textarea.component'
|
||||
import { HelpComponent } from '../../shared/shared-main/misc/help.component'
|
||||
import { HelpComponent } from '../../shared/shared-main/buttons/help.component'
|
||||
import { ActorAvatarEditComponent } from '../../shared/shared-actor-image-edit/actor-avatar-edit.component'
|
||||
import { ActorBannerEditComponent } from '../../shared/shared-actor-image-edit/actor-banner-edit.component'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { NgIf, NgClass } from '@angular/common'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'
|
||||
|
||||
@Component({
|
||||
templateUrl: './video-channel-edit.component.html',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { FormReactive } from '@app/shared/shared-forms/form-reactive'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
|
||||
export abstract class VideoChannelEdit extends FormReactive {
|
||||
videoChannel: VideoChannel
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
VIDEO_CHANNEL_SUPPORT_VALIDATOR
|
||||
} from '@app/shared/form-validators/video-channel-validators'
|
||||
import { FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'
|
||||
import { shallowCopy } from '@peertube/peertube-core-utils'
|
||||
import { VideoChannelUpdate } from '@peertube/peertube-models'
|
||||
import { Subscription } from 'rxjs'
|
||||
|
@ -19,7 +19,7 @@ import { ActorAvatarEditComponent } from '../../shared/shared-actor-image-edit/a
|
|||
import { ActorBannerEditComponent } from '../../shared/shared-actor-image-edit/actor-banner-edit.component'
|
||||
import { MarkdownTextareaComponent } from '../../shared/shared-forms/markdown-textarea.component'
|
||||
import { PeertubeCheckboxComponent } from '../../shared/shared-forms/peertube-checkbox.component'
|
||||
import { HelpComponent } from '../../shared/shared-main/misc/help.component'
|
||||
import { HelpComponent } from '../../shared/shared-main/buttons/help.component'
|
||||
import { VideoChannelEdit } from './video-channel-edit'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Component } from '@angular/core'
|
||||
import { NgIf, DatePipe } from '@angular/common'
|
||||
import { AutoColspanDirective } from '../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Component } from '@angular/core'
|
||||
import { BatchDomainsModalComponent } from '../../shared/shared-moderation/batch-domains-modal.component'
|
||||
import { NgIf, DatePipe } from '@angular/common'
|
||||
import { AutoColspanDirective } from '../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'
|
||||
import { SharedModule } from 'primeng/api'
|
||||
|
|
|
@ -7,7 +7,7 @@ import { PeerTubeProblemDocument, ServerErrorCode, UserExport, UserExportState }
|
|||
import { concatMap, from, of, switchMap, toArray } from 'rxjs'
|
||||
import { PeertubeCheckboxComponent } from '../../shared/shared-forms/peertube-checkbox.component'
|
||||
import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'
|
||||
import { BytesPipe } from '../../shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '../../shared/shared-main/common/bytes.pipe'
|
||||
import { UserImportExportService } from './user-import-export.service'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -3,7 +3,7 @@ import { HttpErrorResponse } from '@angular/common/http'
|
|||
import { Component, Input, OnDestroy, OnInit } from '@angular/core'
|
||||
import { AuthService, CanComponentDeactivate, Notifier, ServerService } from '@app/core'
|
||||
import { buildHTTPErrorResponse, genericUploadErrorHandler, getUploadXRetryConfig } from '@app/helpers'
|
||||
import { BytesPipe } from '@app/shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '@app/shared/shared-main/common/bytes.pipe'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { HttpStatusCode, UserImport, UserImportState } from '@peertube/peertube-models'
|
||||
import { UploadState, UploaderX, UploadxService } from 'ngx-uploadx'
|
||||
|
|
|
@ -2,7 +2,7 @@ import { NgClass } from '@angular/common'
|
|||
import { Component, OnInit } from '@angular/core'
|
||||
import { RouterOutlet } from '@angular/router'
|
||||
import { AuthUser, PluginService, ScreenService } from '@app/core'
|
||||
import { TopMenuDropdownComponent, TopMenuDropdownParam } from '../shared/shared-main/misc/top-menu-dropdown.component'
|
||||
import { TopMenuDropdownComponent, TopMenuDropdownParam } from '../shared/shared-main/menu/top-menu-dropdown.component'
|
||||
|
||||
@Component({
|
||||
templateUrl: './my-account.component.html',
|
||||
|
|
|
@ -3,8 +3,8 @@ import { Component } from '@angular/core'
|
|||
import { RouterLink } from '@angular/router'
|
||||
import { AuthService, ComponentPagination, ConfirmService, Notifier, ScreenService, hasMoreItems } from '@app/core'
|
||||
import { formatICU } from '@app/helpers'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'
|
||||
import { maxBy, minBy } from '@peertube/peertube-core-utils'
|
||||
import { ChartData, ChartOptions, TooltipItem, TooltipModel } from 'chart.js'
|
||||
import { ChartModule } from 'primeng/chart'
|
||||
|
@ -12,12 +12,12 @@ import { Subject, first, map, switchMap } from 'rxjs'
|
|||
import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'
|
||||
import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'
|
||||
import { DeferLoadingDirective } from '../../shared/shared-main/angular/defer-loading.directive'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { NumberFormatterPipe } from '../../shared/shared-main/angular/number-formatter.pipe'
|
||||
import { DeferLoadingDirective } from '../../shared/shared-main/common/defer-loading.directive'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { NumberFormatterPipe } from '../../shared/shared-main/common/number-formatter.pipe'
|
||||
import { DeleteButtonComponent } from '../../shared/shared-main/buttons/delete-button.component'
|
||||
import { EditButtonComponent } from '../../shared/shared-main/buttons/edit-button.component'
|
||||
import { ChannelsSetupMessageComponent } from '../../shared/shared-main/misc/channels-setup-message.component'
|
||||
import { ChannelsSetupMessageComponent } from '../../shared/shared-main/channel/channels-setup-message.component'
|
||||
|
||||
type CustomChartData = (ChartData & { startDate: string, total: number })
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import { Subject } from 'rxjs'
|
|||
import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'
|
||||
import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { formatICU } from '@app/helpers'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -4,11 +4,11 @@ import { ComponentPagination, Notifier } from '@app/core'
|
|||
import { SubscribeButtonComponent } from '../../shared/shared-user-subscription/subscribe-button.component'
|
||||
import { RouterLink } from '@angular/router'
|
||||
import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'
|
||||
import { NgIf, NgFor } from '@angular/common'
|
||||
import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { UserSubscriptionService } from '@app/shared/shared-user-subscription/user-subscription.service'
|
||||
import { formatICU } from '@app/helpers'
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Component, OnInit, ViewChild } from '@angular/core'
|
|||
import { AuthService, ComponentPagination, ConfirmService, DisableForReuseHook, Notifier, User, UserService } from '@app/core'
|
||||
import { formatICU, immutableAssign } from '@app/helpers'
|
||||
import { DeleteButtonComponent } from '../../shared/shared-main/buttons/delete-button.component'
|
||||
import { PeerTubeTemplateDirective } from '../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { PeerTubeTemplateDirective } from '../../shared/shared-main/common/peertube-template.directive'
|
||||
import { FormsModule } from '@angular/forms'
|
||||
import { InputSwitchComponent } from '../../shared/shared-forms/input-switch.component'
|
||||
import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core'
|
|||
import { RouterOutlet } from '@angular/router'
|
||||
import { AuthService, AuthUser, ScreenService, ServerService } from '@app/core'
|
||||
import { HTMLServerConfig } from '@peertube/peertube-models'
|
||||
import { TopMenuDropdownComponent, TopMenuDropdownParam } from '../shared/shared-main/misc/top-menu-dropdown.component'
|
||||
import { TopMenuDropdownComponent, TopMenuDropdownParam } from '../shared/shared-main/menu/top-menu-dropdown.component'
|
||||
|
||||
@Component({
|
||||
templateUrl: './my-library.component.html',
|
||||
|
|
|
@ -9,7 +9,7 @@ import { SharedModule, SortMeta } from 'primeng/api'
|
|||
import { TableModule } from 'primeng/table'
|
||||
import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'
|
||||
import { AutoColspanDirective } from '../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { ButtonComponent } from '../../shared/shared-main/buttons/button.component'
|
||||
import { VideoCellComponent } from '../../shared/shared-tables/video-cell.component'
|
||||
import { MyAcceptOwnershipComponent } from './my-accept-ownership/my-accept-ownership.component'
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
import { SortMeta, SharedModule } from 'primeng/api'
|
||||
import { mergeMap } from 'rxjs'
|
||||
import { DatePipe, NgClass, NgIf } from '@angular/common'
|
||||
import { Component, OnInit } from '@angular/core'
|
||||
import { AuthService, Notifier, RestPagination, RestTable, ServerService } from '@app/core'
|
||||
import { HTMLServerConfig, VideoChannelSync, VideoChannelSyncState, VideoChannelSyncStateType } from '@peertube/peertube-models'
|
||||
import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { ActionDropdownComponent, DropdownAction } from '../../shared/shared-main/buttons/action-dropdown.component'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { RouterLink } from '@angular/router'
|
||||
import { AuthService, Notifier, RestPagination, RestTable, ServerService } from '@app/core'
|
||||
import { VideoChannelSyncService } from '@app/shared/shared-main/channel/video-channel-sync.service'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { HTMLServerConfig, VideoChannelSync, VideoChannelSyncState, VideoChannelSyncStateType } from '@peertube/peertube-models'
|
||||
import { SharedModule, SortMeta } from 'primeng/api'
|
||||
import { TableModule } from 'primeng/table'
|
||||
import { mergeMap } from 'rxjs'
|
||||
import { ActorAvatarComponent } from '../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'
|
||||
import { NgIf, NgClass, DatePipe } from '@angular/common'
|
||||
import { VideoChannelSyncService } from '@app/shared/shared-main/video-channel-sync/video-channel-sync.service'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service'
|
||||
import { ActionDropdownComponent, DropdownAction } from '../../shared/shared-main/buttons/action-dropdown.component'
|
||||
|
||||
@Component({
|
||||
templateUrl: './my-video-channel-syncs.component.html',
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
import { mergeMap } from 'rxjs'
|
||||
import { SelectChannelItem } from 'src/types'
|
||||
import { NgClass, NgIf } from '@angular/common'
|
||||
import { Component, OnInit } from '@angular/core'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { Router } from '@angular/router'
|
||||
import { AuthService, Notifier } from '@app/core'
|
||||
import { listUserChannelsForSelect } from '@app/helpers'
|
||||
import { VIDEO_CHANNEL_EXTERNAL_URL_VALIDATOR } from '@app/shared/form-validators/video-channel-validators'
|
||||
import { FormReactive } from '@app/shared/shared-forms/form-reactive'
|
||||
import { FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'
|
||||
import { VideoChannelSyncService } from '@app/shared/shared-main/channel/video-channel-sync.service'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'
|
||||
import { VideoChannelSyncCreate } from '@peertube/peertube-models'
|
||||
import { mergeMap } from 'rxjs'
|
||||
import { SelectChannelItem } from 'src/types'
|
||||
import { SelectChannelComponent } from '../../../shared/shared-forms/select/select-channel.component'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { NgIf, NgClass } from '@angular/common'
|
||||
import { VideoChannelSyncService } from '@app/shared/shared-main/video-channel-sync/video-channel-sync.service'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service'
|
||||
|
||||
@Component({
|
||||
selector: 'my-video-channel-sync-edit',
|
||||
|
|
|
@ -2,7 +2,7 @@ import { SortMeta, SharedModule } from 'primeng/api'
|
|||
import { Component, OnInit } from '@angular/core'
|
||||
import { Notifier, RestPagination, RestTable } from '@app/core'
|
||||
import { VideoImport, VideoImportState, VideoImportStateType } from '@peertube/peertube-models'
|
||||
import { AutoColspanDirective } from '../../shared/shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../../shared/shared-main/common/auto-colspan.directive'
|
||||
import { EditButtonComponent } from '../../shared/shared-main/buttons/edit-button.component'
|
||||
import { DeleteButtonComponent } from '../../shared/shared-main/buttons/delete-button.component'
|
||||
import { ButtonComponent } from '../../shared/shared-main/buttons/button.component'
|
||||
|
|
|
@ -15,7 +15,7 @@ import { MyVideoPlaylistEdit } from './my-video-playlist-edit'
|
|||
import { SelectChannelComponent } from '../../shared/shared-forms/select/select-channel.component'
|
||||
import { SelectOptionsComponent } from '../../shared/shared-forms/select/select-options.component'
|
||||
import { MarkdownTextareaComponent } from '../../shared/shared-forms/markdown-textarea.component'
|
||||
import { HelpComponent } from '../../shared/shared-main/misc/help.component'
|
||||
import { HelpComponent } from '../../shared/shared-main/buttons/help.component'
|
||||
import { PreviewUploadComponent } from '../../shared/shared-forms/preview-upload.component'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { NgIf, NgClass } from '@angular/common'
|
||||
|
|
|
@ -5,7 +5,7 @@ import { ActivatedRoute, Router } from '@angular/router'
|
|||
import { ComponentPagination, ConfirmService, HooksService, Notifier, ScreenService } from '@app/core'
|
||||
import { VideoPlaylistType } from '@peertube/peertube-models'
|
||||
import { VideoPlaylistElementMiniatureComponent } from '../../shared/shared-video-playlist/video-playlist-element-miniature.component'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { ActionDropdownComponent, DropdownAction } from '../../shared/shared-main/buttons/action-dropdown.component'
|
||||
import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'
|
||||
import { VideoPlaylistMiniatureComponent } from '../../shared/shared-video-playlist/video-playlist-miniature.component'
|
||||
|
|
|
@ -20,7 +20,7 @@ import { MarkdownTextareaComponent } from '../../shared/shared-forms/markdown-te
|
|||
import { PreviewUploadComponent } from '../../shared/shared-forms/preview-upload.component'
|
||||
import { SelectChannelComponent } from '../../shared/shared-forms/select/select-channel.component'
|
||||
import { SelectOptionsComponent } from '../../shared/shared-forms/select/select-options.component'
|
||||
import { HelpComponent } from '../../shared/shared-main/misc/help.component'
|
||||
import { HelpComponent } from '../../shared/shared-main/buttons/help.component'
|
||||
import { MyVideoPlaylistEdit } from './my-video-playlist-edit'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -6,10 +6,10 @@ import { VideoPlaylistType } from '@peertube/peertube-models'
|
|||
import { EditButtonComponent } from '../../shared/shared-main/buttons/edit-button.component'
|
||||
import { DeleteButtonComponent } from '../../shared/shared-main/buttons/delete-button.component'
|
||||
import { VideoPlaylistMiniatureComponent } from '../../shared/shared-video-playlist/video-playlist-miniature.component'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { RouterLink } from '@angular/router'
|
||||
import { AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'
|
||||
import { ChannelsSetupMessageComponent } from '../../shared/shared-main/misc/channels-setup-message.component'
|
||||
import { ChannelsSetupMessageComponent } from '../../shared/shared-main/channel/channels-setup-message.component'
|
||||
import { NgIf, NgFor } from '@angular/common'
|
||||
import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'
|
||||
import { VideoPlaylist } from '@app/shared/shared-video-playlist/video-playlist.model'
|
||||
|
|
|
@ -18,7 +18,7 @@ import { concat, Observable } from 'rxjs'
|
|||
import { tap, toArray } from 'rxjs/operators'
|
||||
import { AdvancedInputFilter, AdvancedInputFilterComponent } from '../../shared/shared-forms/advanced-input-filter.component'
|
||||
import { GlobalIconComponent } from '../../shared/shared-icons/global-icon.component'
|
||||
import { PeerTubeTemplateDirective } from '../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { PeerTubeTemplateDirective } from '../../shared/shared-main/common/peertube-template.directive'
|
||||
import { EditButtonComponent } from '../../shared/shared-main/buttons/edit-button.component'
|
||||
import {
|
||||
VideoActionsDisplayType,
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core'
|
|||
import { ActivatedRoute, Router } from '@angular/router'
|
||||
import { NgIf } from '@angular/common'
|
||||
import { Video } from '@app/shared/shared-main/video/video.model'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { SearchService } from '@app/shared/shared-search/search.service'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -6,7 +6,7 @@ import { AuthService, HooksService, MetaService, Notifier, ServerService, User,
|
|||
import { immutableAssign, SimpleMemoize } from '@app/helpers'
|
||||
import { validateHost } from '@app/shared/form-validators/host-validators'
|
||||
import { HTMLServerConfig, SearchTargetType } from '@peertube/peertube-models'
|
||||
import { NumberFormatterPipe } from '../shared/shared-main/angular/number-formatter.pipe'
|
||||
import { NumberFormatterPipe } from '../shared/shared-main/common/number-formatter.pipe'
|
||||
import { VideoPlaylistMiniatureComponent } from '../shared/shared-video-playlist/video-playlist-miniature.component'
|
||||
import { MiniatureDisplayOptions, VideoMiniatureComponent } from '../shared/shared-video-miniature/video-miniature.component'
|
||||
import { SubscribeButtonComponent } from '../shared/shared-user-subscription/subscribe-button.component'
|
||||
|
@ -14,8 +14,8 @@ import { ActorAvatarComponent } from '../shared/shared-actor-image/actor-avatar.
|
|||
import { SearchFiltersComponent } from './search-filters.component'
|
||||
import { NgbCollapse } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { NgIf, NgFor, NgTemplateOutlet } from '@angular/common'
|
||||
import { InfiniteScrollerDirective } from '../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { InfiniteScrollerDirective } from '../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { Video } from '@app/shared/shared-main/video/video.model'
|
||||
import { VideoPlaylist } from '@app/shared/shared-video-playlist/video-playlist.model'
|
||||
import { AdvancedSearch } from '@app/shared/shared-search/advanced-search.model'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Injectable } from '@angular/core'
|
||||
import { Router } from '@angular/router'
|
||||
import { AbstractLazyLoadResolver } from './abstract-lazy-load.resolver'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { SearchService } from '@app/shared/shared-search/search.service'
|
||||
|
||||
@Injectable()
|
||||
|
|
|
@ -7,14 +7,14 @@ import { HooksService } from '@app/core/plugins/hooks.service'
|
|||
import { ServerConfig, ServerStats, UserRegister } from '@peertube/peertube-models'
|
||||
import { SignupService } from '../shared/signup.service'
|
||||
import { SignupSuccessBeforeEmailComponent } from '../shared/signup-success-before-email.component'
|
||||
import { LoaderComponent } from '../../shared/shared-main/loaders/loader.component'
|
||||
import { LoaderComponent } from '../../shared/shared-main/common/loader.component'
|
||||
import { RegisterStepChannelComponent } from './steps/register-step-channel.component'
|
||||
import { RegisterStepUserComponent } from './steps/register-step-user.component'
|
||||
import { RegisterStepTermsComponent } from './steps/register-step-terms.component'
|
||||
import { RegisterStepAboutComponent } from './steps/register-step-about.component'
|
||||
import { SignupStepTitleComponent } from '../shared/signup-step-title.component'
|
||||
import { CustomStepperComponent } from './custom-stepper.component'
|
||||
import { SignupLabelComponent } from '../../shared/shared-main/account/signup-label.component'
|
||||
import { SignupLabelComponent } from '../../shared/shared-main/users/signup-label.component'
|
||||
import { NgIf } from '@angular/common'
|
||||
import { InstanceAboutAccordionComponent } from '@app/shared/shared-instance/instance-about-accordion.component'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Component, Input } from '@angular/core'
|
||||
import { ServerService } from '@app/core'
|
||||
import { ServerStats } from '@peertube/peertube-models'
|
||||
import { DaysDurationFormatterPipe } from '../../../shared/shared-main/angular/days-duration-formatter.pipe'
|
||||
import { DaysDurationFormatterPipe } from '../../../shared/shared-main/date/days-duration-formatter.pipe'
|
||||
import { NgIf } from '@angular/common'
|
||||
import { InstanceBannerComponent } from '../../../shared/shared-instance/instance-banner.component'
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import { SignupService } from '@app/+signup/shared/signup.service'
|
|||
import { VIDEO_CHANNEL_DISPLAY_NAME_VALIDATOR, VIDEO_CHANNEL_NAME_VALIDATOR } from '@app/shared/form-validators/video-channel-validators'
|
||||
import { FormReactive } from '@app/shared/shared-forms/form-reactive'
|
||||
import { FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'
|
||||
import { BytesPipe } from '../../../shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '../../../shared/shared-main/common/bytes.pipe'
|
||||
import { NgIf, NgClass } from '@angular/common'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -3,7 +3,7 @@ import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'
|
|||
import { FormReactive } from '@app/shared/shared-forms/form-reactive'
|
||||
import { FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'
|
||||
import { REGISTER_REASON_VALIDATOR, REGISTER_TERMS_VALIDATOR } from '../shared'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { PeertubeCheckboxComponent } from '../../../shared/shared-forms/peertube-checkbox.component'
|
||||
import { NgIf, NgClass } from '@angular/common'
|
||||
|
||||
|
|
|
@ -21,10 +21,10 @@ import { NgbNav, NgbNavItem, NgbNavLink, NgbNavLinkBase, NgbNavContent, NgbNavOu
|
|||
import { FormsModule } from '@angular/forms'
|
||||
import { SelectOptionsComponent } from '../../shared/shared-forms/select/select-options.component'
|
||||
import { EmbedComponent } from '../../shared/shared-main/video/embed.component'
|
||||
import { PeerTubeTemplateDirective } from '../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { HelpComponent } from '../../shared/shared-main/misc/help.component'
|
||||
import { PeerTubeTemplateDirective } from '../../shared/shared-main/common/peertube-template.directive'
|
||||
import { HelpComponent } from '../../shared/shared-main/buttons/help.component'
|
||||
import { NgFor, NgIf } from '@angular/common'
|
||||
import { NumberFormatterPipe } from '@app/shared/shared-main/angular/number-formatter.pipe'
|
||||
import { NumberFormatterPipe } from '@app/shared/shared-main/common/number-formatter.pipe'
|
||||
import { VideoDetails } from '@app/shared/shared-main/video/video-details.model'
|
||||
import { LiveVideoService } from '@app/shared/shared-video-live/live-video.service'
|
||||
|
||||
|
|
|
@ -2,10 +2,10 @@ import { Subject, Subscription } from 'rxjs'
|
|||
import { AfterViewInit, Component, OnDestroy, OnInit } from '@angular/core'
|
||||
import { ComponentPagination, hasMoreItems, HooksService, ScreenService } from '@app/core'
|
||||
import { VideoPlaylistMiniatureComponent } from '../../shared/shared-video-playlist/video-playlist-miniature.component'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { InfiniteScrollerDirective } from '../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { NgIf, NgFor } from '@angular/common'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'
|
||||
import { VideoPlaylist } from '@app/shared/shared-video-playlist/video-playlist.model'
|
||||
import { VideoPlaylistService } from '@app/shared/shared-video-playlist/video-playlist.service'
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { NgIf } from '@angular/common'
|
||||
import { AfterViewInit, Component, OnDestroy, OnInit, ViewChild } from '@angular/core'
|
||||
import { ComponentPaginationLight, DisableForReuseHook, HooksService, ScreenService } from '@app/core'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'
|
||||
import { VideoService } from '@app/shared/shared-main/video/video.service'
|
||||
import { VideoFilters } from '@app/shared/shared-video-miniature/video-filters.model'
|
||||
import { MiniatureDisplayOptions } from '@app/shared/shared-video-miniature/video-miniature.component'
|
||||
|
|
|
@ -3,8 +3,8 @@ import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core'
|
|||
import { ActivatedRoute, RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router'
|
||||
import { AuthService, Hotkey, HotkeysService, MarkdownService, MetaService, RestExtractor, ScreenService } from '@app/core'
|
||||
import { Account } from '@app/shared/shared-main/account/account.model'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { VideoChannelService } from '@app/shared/shared-main/channel/video-channel.service'
|
||||
import { VideoService } from '@app/shared/shared-main/video/video.service'
|
||||
import { BlocklistService } from '@app/shared/shared-moderation/blocklist.service'
|
||||
import { SupportModalComponent } from '@app/shared/shared-support-modal/support-modal.component'
|
||||
|
@ -15,7 +15,7 @@ import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators
|
|||
import { ActorAvatarComponent } from '../shared/shared-actor-image/actor-avatar.component'
|
||||
import { GlobalIconComponent } from '../shared/shared-icons/global-icon.component'
|
||||
import { CopyButtonComponent } from '../shared/shared-main/buttons/copy-button.component'
|
||||
import { ListOverflowComponent, ListOverflowItem } from '../shared/shared-main/misc/list-overflow.component'
|
||||
import { ListOverflowComponent, ListOverflowItem } from '../shared/shared-main/menu/list-overflow.component'
|
||||
import { AccountBlockBadgesComponent } from '../shared/shared-moderation/account-block-badges.component'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -6,7 +6,7 @@ import { FormReactive } from '@app/shared/shared-forms/form-reactive'
|
|||
import { FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'
|
||||
import { PeertubeCheckboxComponent } from '@app/shared/shared-forms/peertube-checkbox.component'
|
||||
import { TimestampInputComponent } from '@app/shared/shared-forms/timestamp-input.component'
|
||||
import { Nl2BrPipe } from '@app/shared/shared-main/angular/nl2br.pipe'
|
||||
import { Nl2BrPipe } from '@app/shared/shared-main/common/nl2br.pipe'
|
||||
import { VideoCaptionEdit, VideoCaptionWithPathEdit } from '@app/shared/shared-main/video-caption/video-caption-edit.model'
|
||||
import { VideoCaptionService } from '@app/shared/shared-main/video-caption/video-caption.service'
|
||||
import { EmbedComponent } from '@app/shared/shared-main/video/embed.component'
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
ServerService
|
||||
} from '@app/core'
|
||||
import { ReactiveFileComponent } from '@app/shared/shared-forms/reactive-file.component'
|
||||
import { BytesPipe } from '@app/shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '@app/shared/shared-main/common/bytes.pipe'
|
||||
import { EmbedComponent, EmbedVideoInput } from '@app/shared/shared-main/video/embed.component'
|
||||
import { HTMLServerConfig } from '@peertube/peertube-models'
|
||||
import { imageToDataURL } from '@root-helpers/images'
|
||||
|
|
|
@ -68,10 +68,10 @@ import { SelectOptionsComponent } from '../../../shared/shared-forms/select/sele
|
|||
import { SelectTagsComponent } from '../../../shared/shared-forms/select/select-tags.component'
|
||||
import { TimestampInputComponent } from '../../../shared/shared-forms/timestamp-input.component'
|
||||
import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { DeleteButtonComponent } from '../../../shared/shared-main/buttons/delete-button.component'
|
||||
import { EditButtonComponent } from '../../../shared/shared-main/buttons/edit-button.component'
|
||||
import { HelpComponent } from '../../../shared/shared-main/misc/help.component'
|
||||
import { HelpComponent } from '../../../shared/shared-main/buttons/help.component'
|
||||
import { EmbedComponent } from '../../../shared/shared-main/video/embed.component'
|
||||
import { LiveDocumentationLinkComponent } from '../../../shared/shared-video-live/live-documentation-link.component'
|
||||
import { VideoCaptionAddModalComponent } from './caption/video-caption-add-modal.component'
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Injectable } from '@angular/core'
|
|||
import { AuthService, Notifier, ServerService } from '@app/core'
|
||||
import { UploaderXFormData } from './uploaderx-form-data'
|
||||
import { getUploadXRetryConfig } from '@app/helpers'
|
||||
import { BytesPipe } from '@app/shared/shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '@app/shared/shared-main/common/bytes.pipe'
|
||||
import { VideoService } from '@app/shared/shared-main/video/video.service'
|
||||
|
||||
@Injectable()
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
VideoPrivacy
|
||||
} from '@peertube/peertube-models'
|
||||
import { VideoSend } from './video-send'
|
||||
import { TimeDurationFormatterPipe } from '../../../shared/shared-main/angular/time-duration-formatter.pipe'
|
||||
import { TimeDurationFormatterPipe } from '../../../shared/shared-main/date/time-duration-formatter.pipe'
|
||||
import { ButtonComponent } from '../../../shared/shared-main/buttons/button.component'
|
||||
import { VideoEditComponent } from '../shared/video-edit.component'
|
||||
import { SelectOptionsComponent } from '../../../shared/shared-forms/select/select-options.component'
|
||||
|
|
|
@ -14,8 +14,8 @@ import { VideoEditComponent } from '../shared/video-edit.component'
|
|||
import { SelectOptionsComponent } from '../../../shared/shared-forms/select/select-options.component'
|
||||
import { SelectChannelComponent } from '../../../shared/shared-forms/select/select-channel.component'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../shared/shared-main/misc/help.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../shared/shared-main/buttons/help.component'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'
|
||||
import { DragDropDirective } from './drag-drop.directive'
|
||||
|
|
|
@ -15,8 +15,8 @@ import { ButtonComponent } from '../../../shared/shared-main/buttons/button.comp
|
|||
import { SelectOptionsComponent } from '../../../shared/shared-forms/select/select-options.component'
|
||||
import { SelectChannelComponent } from '../../../shared/shared-forms/select/select-channel.component'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../shared/shared-main/misc/help.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../shared/shared-main/buttons/help.component'
|
||||
import { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'
|
||||
import { NgIf } from '@angular/common'
|
||||
import { VideoCaptionService } from '@app/shared/shared-main/video-caption/video-caption.service'
|
||||
|
|
|
@ -15,7 +15,7 @@ import { VideoImportTorrentComponent } from './video-add-components/video-import
|
|||
import { VideoImportUrlComponent } from './video-add-components/video-import-url.component'
|
||||
import { VideoUploadComponent } from './video-add-components/video-upload.component'
|
||||
import { NgbNav, NgbNavItem, NgbNavLink, NgbNavLinkBase, NgbNavContent, NgbNavOutlet } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { ChannelsSetupMessageComponent } from '../../shared/shared-main/misc/channels-setup-message.component'
|
||||
import { ChannelsSetupMessageComponent } from '../../shared/shared-main/channel/channels-setup-message.component'
|
||||
import { UserQuotaComponent } from '../../shared/shared-main/users/user-quota.component'
|
||||
import { NgIf, NgTemplateOutlet, NgClass } from '@angular/common'
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import { Observable } from 'rxjs'
|
||||
import { getLocaleDirection, NgClass, NgIf, NgFor } from '@angular/common'
|
||||
import { getLocaleDirection, NgClass, NgFor, NgIf } from '@angular/common'
|
||||
import {
|
||||
Component,
|
||||
ElementRef,
|
||||
|
@ -13,23 +12,24 @@ import {
|
|||
SimpleChanges,
|
||||
ViewChild
|
||||
} from '@angular/core'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { Notifier, User } from '@app/core'
|
||||
import { VIDEO_COMMENT_TEXT_VALIDATOR } from '@app/shared/form-validators/video-comment-validators'
|
||||
import { FormReactive } from '@app/shared/shared-forms/form-reactive'
|
||||
import { FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { VideoCommentCreate } from '@peertube/peertube-models'
|
||||
import { LoginLinkComponent } from '../../../../shared/shared-main/angular/login-link.component'
|
||||
import { RemoteSubscribeComponent } from '../../../../shared/shared-user-subscription/remote-subscribe.component'
|
||||
import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../../shared/shared-main/angular/peertube-template.directive'
|
||||
import { HelpComponent } from '../../../../shared/shared-main/misc/help.component'
|
||||
import { TextareaAutoResizeDirective } from '../../../../shared/shared-forms/textarea-autoresize.directive'
|
||||
import { ActorAvatarComponent } from '../../../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { LoginLinkComponent } from '@app/shared/shared-main/users/login-link.component'
|
||||
import { Video } from '@app/shared/shared-main/video/video.model'
|
||||
import { VideoComment } from '@app/shared/shared-video-comment/video-comment.model'
|
||||
import { VideoCommentService } from '@app/shared/shared-video-comment/video-comment.service'
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { VideoCommentCreate } from '@peertube/peertube-models'
|
||||
import { Observable } from 'rxjs'
|
||||
import { ActorAvatarComponent } from '../../../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { TextareaAutoResizeDirective } from '../../../../shared/shared-forms/textarea-autoresize.directive'
|
||||
import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'
|
||||
import { HelpComponent } from '../../../../shared/shared-main/buttons/help.component'
|
||||
import { PeerTubeTemplateDirective } from '../../../../shared/shared-main/common/peertube-template.directive'
|
||||
import { RemoteSubscribeComponent } from '../../../../shared/shared-user-subscription/remote-subscribe.component'
|
||||
|
||||
@Component({
|
||||
selector: 'my-video-comment-add',
|
||||
|
|
|
@ -11,7 +11,7 @@ import { VideoCommentThreadTree } from '@app/shared/shared-video-comment/video-c
|
|||
import { VideoComment } from '@app/shared/shared-video-comment/video-comment.model'
|
||||
import { User, UserRight } from '@peertube/peertube-models'
|
||||
import { ActorAvatarComponent } from '../../../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { FromNowPipe } from '../../../../shared/shared-main/angular/from-now.pipe'
|
||||
import { FromNowPipe } from '../../../../shared/shared-main/date/from-now.pipe'
|
||||
import { UserModerationDropdownComponent } from '../../../../shared/shared-moderation/user-moderation-dropdown.component'
|
||||
import { TimestampRouteTransformerDirective } from '../timestamp-route-transformer.directive'
|
||||
import { VideoCommentAddComponent } from './video-comment-add.component'
|
||||
|
|
|
@ -11,9 +11,9 @@ import { VideoCommentService } from '@app/shared/shared-video-comment/video-comm
|
|||
import { NgbDropdown, NgbDropdownButtonItem, NgbDropdownItem, NgbDropdownMenu, NgbDropdownToggle } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { PeerTubeProblemDocument, ServerErrorCode, VideoCommentPolicy } from '@peertube/peertube-models'
|
||||
import { Subject, Subscription } from 'rxjs'
|
||||
import { InfiniteScrollerDirective } from '../../../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { InfiniteScrollerDirective } from '../../../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { FeedComponent } from '../../../../shared/shared-main/feeds/feed.component'
|
||||
import { LoaderComponent } from '../../../../shared/shared-main/loaders/loader.component'
|
||||
import { LoaderComponent } from '../../../../shared/shared-main/common/loader.component'
|
||||
import { VideoCommentAddComponent } from './video-comment-add.component'
|
||||
import { VideoCommentComponent } from './video-comment.component'
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Component, Input, OnInit } from '@angular/core'
|
||||
import { HooksService } from '@app/core'
|
||||
import { VideoDetails } from '@app/shared/shared-main/video/video-details.model'
|
||||
import { TimeDurationFormatterPipe } from '../../../../shared/shared-main/angular/time-duration-formatter.pipe'
|
||||
import { TimeDurationFormatterPipe } from '../../../../shared/shared-main/date/time-duration-formatter.pipe'
|
||||
import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'
|
||||
import { RouterLink } from '@angular/router'
|
||||
import { NgIf, NgFor, DatePipe } from '@angular/common'
|
||||
|
|
|
@ -23,7 +23,7 @@ import debug from 'debug'
|
|||
import { debounceTime, distinctUntilChanged, Subject } from 'rxjs'
|
||||
import { SelectOptionsItem } from 'src/types'
|
||||
import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'
|
||||
import { Nl2BrPipe } from '../../../../shared/shared-main/angular/nl2br.pipe'
|
||||
import { Nl2BrPipe } from '../../../../shared/shared-main/common/nl2br.pipe'
|
||||
|
||||
const debugLogger = debug('peertube:watch:VideoTranscriptionComponent')
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import { VideoPlaylistPrivacy } from '@peertube/peertube-models'
|
|||
import { VideoPlaylistElementMiniatureComponent } from '../../../../shared/shared-video-playlist/video-playlist-element-miniature.component'
|
||||
import { GlobalIconComponent } from '../../../../shared/shared-icons/global-icon.component'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { InfiniteScrollerDirective } from '../../../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { InfiniteScrollerDirective } from '../../../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { NgIf, NgClass, NgFor } from '@angular/common'
|
||||
import { VideoPlaylist } from '@app/shared/shared-video-playlist/video-playlist.model'
|
||||
import { VideoPlaylistElement } from '@app/shared/shared-video-playlist/video-playlist-element.model'
|
||||
|
|
|
@ -7,7 +7,7 @@ import { VideosOverview } from './videos-overview.model'
|
|||
import { ActorAvatarComponent } from '../../../shared/shared-actor-image/actor-avatar.component'
|
||||
import { VideoMiniatureComponent } from '../../../shared/shared-video-miniature/video-miniature.component'
|
||||
import { RouterLink } from '@angular/router'
|
||||
import { InfiniteScrollerDirective } from '../../../shared/shared-main/angular/infinite-scroller.directive'
|
||||
import { InfiniteScrollerDirective } from '../../../shared/shared-main/common/infinite-scroller.directive'
|
||||
import { NgIf, NgFor } from '@angular/common'
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -18,9 +18,9 @@ import { scrollToTop } from '@app/helpers'
|
|||
import { ActorAvatarComponent } from '@app/shared/shared-actor-image/actor-avatar.component'
|
||||
import { InputSwitchComponent } from '@app/shared/shared-forms/input-switch.component'
|
||||
import { GlobalIconComponent } from '@app/shared/shared-icons/global-icon.component'
|
||||
import { SignupLabelComponent } from '@app/shared/shared-main/account/signup-label.component'
|
||||
import { LoginLinkComponent } from '@app/shared/shared-main/angular/login-link.component'
|
||||
import { PeertubeModalService } from '@app/shared/shared-main/peertube-modal/peertube-modal.service'
|
||||
import { LoginLinkComponent } from '@app/shared/shared-main/users/login-link.component'
|
||||
import { SignupLabelComponent } from '@app/shared/shared-main/users/signup-label.component'
|
||||
import { NgbDropdown, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { HTMLServerConfig, ServerConfig, UserRight, UserRightType, VideoConstant } from '@peertube/peertube-models'
|
||||
import debug from 'debug'
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Component, EventEmitter, OnDestroy, OnInit, Output, ViewChild } from '@
|
|||
import { NavigationEnd, Router, RouterLink, RouterLinkActive } from '@angular/router'
|
||||
import { Notifier, PeerTubeSocket, ScreenService } from '@app/core'
|
||||
import { GlobalIconComponent } from '@app/shared/shared-icons/global-icon.component'
|
||||
import { LoaderComponent } from '@app/shared/shared-main/loaders/loader.component'
|
||||
import { LoaderComponent } from '@app/shared/shared-main/common/loader.component'
|
||||
import { UserNotificationService } from '@app/shared/shared-main/users/user-notification.service'
|
||||
import { UserNotificationsComponent } from '@app/shared/standalone-notifications/user-notifications.component'
|
||||
import { NgbDropdown, NgbDropdownModule, NgbPopoverModule } from '@ng-bootstrap/ng-bootstrap'
|
||||
|
|
|
@ -9,7 +9,7 @@ import { AbuseMessageModalComponent } from './abuse-message-modal.component'
|
|||
import { ModerationCommentModalComponent } from './moderation-comment-modal.component'
|
||||
import { ProcessedAbuse } from './processed-abuse.model'
|
||||
import { AbuseDetailsComponent } from './abuse-details.component'
|
||||
import { AutoColspanDirective } from '../shared-main/angular/auto-colspan.directive'
|
||||
import { AutoColspanDirective } from '../shared-main/common/auto-colspan.directive'
|
||||
import { GlobalIconComponent } from '../shared-icons/global-icon.component'
|
||||
import { VideoCellComponent } from '../shared-tables/video-cell.component'
|
||||
import { ActorAvatarComponent } from '../shared-actor-image/actor-avatar.component'
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Account } from '../shared-main/account/account.model'
|
|||
import { objectKeysTyped } from '@peertube/peertube-core-utils'
|
||||
import { RouterLink } from '@angular/router'
|
||||
import { NgIf, NgClass, NgTemplateOutlet } from '@angular/common'
|
||||
import { VideoChannel } from '../shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannel } from '../shared-main/channel/video-channel.model'
|
||||
|
||||
export type ActorAvatarInput = {
|
||||
name: string
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
||||
import { CustomMarkupComponent } from './shared'
|
||||
import { NgClass } from '@angular/common'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
|
||||
/*
|
||||
* Markup component that creates a button
|
||||
|
|
|
@ -9,7 +9,7 @@ import { RouterLink } from '@angular/router'
|
|||
import { ActorAvatarComponent } from '../../shared-actor-image/actor-avatar.component'
|
||||
import { NgIf } from '@angular/common'
|
||||
import { VideoService } from '@app/shared/shared-main/video/video.service'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
import { Video } from '@app/shared/shared-main/video/video.model'
|
||||
import { FindInBulkService } from '@app/shared/shared-search/find-in-bulk.service'
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Component, Input } from '@angular/core'
|
|||
import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { RegisterClientFormFieldOptions } from '@peertube/peertube-models'
|
||||
import { MarkdownTextareaComponent } from './markdown-textarea.component'
|
||||
import { HelpComponent } from '../shared-main/misc/help.component'
|
||||
import { HelpComponent } from '../shared-main/buttons/help.component'
|
||||
import { InputTextComponent } from './input-text.component'
|
||||
import { PeertubeCheckboxComponent } from './peertube-checkbox.component'
|
||||
import { NgIf, NgFor } from '@angular/common'
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { AfterContentInit, Component, ContentChildren, forwardRef, Input, QueryList, TemplateRef } from '@angular/core'
|
||||
import { ControlValueAccessor, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms'
|
||||
import { HelpComponent } from '../shared-main/misc/help.component'
|
||||
import { HelpComponent } from '../shared-main/buttons/help.component'
|
||||
import { NgIf, NgTemplateOutlet } from '@angular/common'
|
||||
import { PeerTubeTemplateDirective } from '../shared-main/angular/peertube-template.directive'
|
||||
import { PeerTubeTemplateDirective } from '../shared-main/common/peertube-template.directive'
|
||||
|
||||
@Component({
|
||||
selector: 'my-peertube-checkbox',
|
||||
|
|
|
@ -5,7 +5,7 @@ import { imageToDataURL } from '@root-helpers/images'
|
|||
import { HTMLServerConfig } from '@peertube/peertube-models'
|
||||
import { NgIf, NgStyle } from '@angular/common'
|
||||
import { ReactiveFileComponent } from './reactive-file.component'
|
||||
import { BytesPipe } from '../shared-main/angular/bytes.pipe'
|
||||
import { BytesPipe } from '../shared-main/common/bytes.pipe'
|
||||
|
||||
@Component({
|
||||
selector: 'my-preview-upload',
|
||||
|
|
|
@ -3,7 +3,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR, FormsModule } from '@angular/f
|
|||
import { SelectChannelItem } from '../../../../types/select-options-item.model'
|
||||
import { NgFor } from '@angular/common'
|
||||
import { NgSelectModule } from '@ng-select/ng-select'
|
||||
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||
import { VideoChannel } from '@app/shared/shared-main/channel/video-channel.model'
|
||||
|
||||
@Component({
|
||||
selector: 'my-select-channel',
|
||||
|
|
|
@ -2,12 +2,12 @@ import { Component, OnInit } from '@angular/core'
|
|||
import { ServerService } from '@app/core'
|
||||
import { formatICU } from '@app/helpers'
|
||||
import { ServerConfig, ServerStats } from '@peertube/peertube-models'
|
||||
import { BytesPipe } from '../shared-main/angular/bytes.pipe'
|
||||
import { PeerTubeTemplateDirective } from '../shared-main/angular/peertube-template.directive'
|
||||
import { HelpComponent } from '../shared-main/misc/help.component'
|
||||
import { BytesPipe } from '../shared-main/common/bytes.pipe'
|
||||
import { PeerTubeTemplateDirective } from '../shared-main/common/peertube-template.directive'
|
||||
import { HelpComponent } from '../shared-main/buttons/help.component'
|
||||
import { FeatureBooleanComponent } from './feature-boolean.component'
|
||||
import { NgIf, NgFor } from '@angular/common'
|
||||
import { DaysDurationFormatterPipe } from '../shared-main/angular/days-duration-formatter.pipe'
|
||||
import { DaysDurationFormatterPipe } from '../shared-main/date/days-duration-formatter.pipe'
|
||||
|
||||
@Component({
|
||||
selector: 'my-instance-features-table',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { ChangeDetectionStrategy, Component, Input, OnChanges, OnInit, booleanAttribute } from '@angular/core'
|
||||
import { GlobalIconName } from '@app/shared/shared-icons/global-icon.component'
|
||||
import { GlobalIconComponent } from '../../shared-icons/global-icon.component'
|
||||
import { LoaderComponent } from '../loaders/loader.component'
|
||||
import { LoaderComponent } from '../common/loader.component'
|
||||
import { RouterLink } from '@angular/router'
|
||||
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { NgIf, NgClass, NgTemplateOutlet } from '@angular/common'
|
||||
|
|
|
@ -4,7 +4,7 @@ import { ENHANCED_RULES, TEXT_RULES } from '@peertube/peertube-core-utils'
|
|||
import { GlobalIconComponent } from '../../shared-icons/global-icon.component'
|
||||
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { NgIf, NgTemplateOutlet } from '@angular/common'
|
||||
import { PeerTubeTemplateDirective } from '../angular/peertube-template.directive'
|
||||
import { PeerTubeTemplateDirective } from '../common/peertube-template.directive'
|
||||
|
||||
@Component({
|
||||
selector: 'my-help',
|
|
@ -3,7 +3,7 @@ import { AuthService, User } from '@app/core'
|
|||
import { RouterLink } from '@angular/router'
|
||||
import { GlobalIconComponent } from '../../shared-icons/global-icon.component'
|
||||
import { NgIf } from '@angular/common'
|
||||
import { VideoChannel } from '../video-channel/video-channel.model'
|
||||
import { VideoChannel } from './video-channel.model'
|
||||
|
||||
@Component({
|
||||
selector: 'my-channels-setup-message',
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue