Fix circular dep issue
This commit is contained in:
parent
c418d48300
commit
69524f6ed1
|
@ -183,7 +183,7 @@
|
||||||
|
|
||||||
<div class="pt-3 border-top video-info-channel d-flex">
|
<div class="pt-3 border-top video-info-channel d-flex">
|
||||||
<div class="video-info-channel-left d-flex">
|
<div class="video-info-channel-left d-flex">
|
||||||
<avatar-channel [video]="video" [genericChannel]="isChannelDisplayNameGeneric()"></avatar-channel>
|
<my-video-avatar-channel [video]="video" [genericChannel]="isChannelDisplayNameGeneric()"></my-video-avatar-channel>
|
||||||
|
|
||||||
<div class="video-info-channel-left-links ml-1">
|
<div class="video-info-channel-left-links ml-1">
|
||||||
<ng-container *ngIf="!isChannelDisplayNameGeneric()">
|
<ng-container *ngIf="!isChannelDisplayNameGeneric()">
|
||||||
|
|
|
@ -2,4 +2,4 @@ export * from './account.model'
|
||||||
export * from './account.service'
|
export * from './account.service'
|
||||||
export * from './actor-avatar-info.component'
|
export * from './actor-avatar-info.component'
|
||||||
export * from './actor.model'
|
export * from './actor.model'
|
||||||
export * from './avatar.component'
|
export * from './video-avatar-channel.component'
|
||||||
|
|
|
@ -2,12 +2,14 @@ import { Component, Input, OnInit } from '@angular/core'
|
||||||
import { Video } from '../video/video.model'
|
import { Video } from '../video/video.model'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'avatar-channel',
|
selector: 'my-video-avatar-channel',
|
||||||
templateUrl: './avatar.component.html',
|
templateUrl: './video-avatar-channel.component.html',
|
||||||
styleUrls: [ './avatar.component.scss' ]
|
styleUrls: [ './video-avatar-channel.component.scss' ]
|
||||||
})
|
})
|
||||||
export class AvatarComponent implements OnInit {
|
export class VideoAvatarChannelComponent implements OnInit {
|
||||||
@Input() video: Video
|
@Input() video: Video
|
||||||
|
@Input() byAccount: string
|
||||||
|
|
||||||
@Input() size: 'md' | 'sm' = 'md'
|
@Input() size: 'md' | 'sm' = 'md'
|
||||||
@Input() genericChannel: boolean
|
@Input() genericChannel: boolean
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
NgbTooltipModule
|
NgbTooltipModule
|
||||||
} from '@ng-bootstrap/ng-bootstrap'
|
} from '@ng-bootstrap/ng-bootstrap'
|
||||||
import { SharedGlobalIconModule } from '../shared-icons'
|
import { SharedGlobalIconModule } from '../shared-icons'
|
||||||
import { AccountService, ActorAvatarInfoComponent, AvatarComponent } from './account'
|
import { AccountService, ActorAvatarInfoComponent, VideoAvatarChannelComponent } from './account'
|
||||||
import {
|
import {
|
||||||
BytesPipe,
|
BytesPipe,
|
||||||
DurationFormatterPipe,
|
DurationFormatterPipe,
|
||||||
|
@ -57,7 +57,7 @@ import { VideoChannelService } from './video-channel'
|
||||||
],
|
],
|
||||||
|
|
||||||
declarations: [
|
declarations: [
|
||||||
AvatarComponent,
|
VideoAvatarChannelComponent,
|
||||||
ActorAvatarInfoComponent,
|
ActorAvatarInfoComponent,
|
||||||
|
|
||||||
FromNowPipe,
|
FromNowPipe,
|
||||||
|
@ -106,7 +106,7 @@ import { VideoChannelService } from './video-channel'
|
||||||
|
|
||||||
PrimeSharedModule,
|
PrimeSharedModule,
|
||||||
|
|
||||||
AvatarComponent,
|
VideoAvatarChannelComponent,
|
||||||
ActorAvatarInfoComponent,
|
ActorAvatarInfoComponent,
|
||||||
|
|
||||||
FromNowPipe,
|
FromNowPipe,
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
|
import { AuthUser } from '@app/core'
|
||||||
|
import { Account } from '@app/shared/shared-main/account/account.model'
|
||||||
|
import { Actor } from '@app/shared/shared-main/account/actor.model'
|
||||||
|
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||||
import {
|
import {
|
||||||
AbuseState,
|
AbuseState,
|
||||||
ActorInfo,
|
ActorInfo,
|
||||||
FollowState,
|
FollowState,
|
||||||
UserNotification as UserNotificationServer,
|
UserNotification as UserNotificationServer,
|
||||||
UserNotificationType,
|
UserNotificationType,
|
||||||
VideoInfo,
|
UserRight,
|
||||||
UserRight
|
VideoInfo
|
||||||
} from '@shared/models'
|
} from '@shared/models'
|
||||||
import { Account, Actor, VideoChannel } from '@app/shared/shared-main'
|
|
||||||
import { AuthUser } from '@app/core'
|
|
||||||
|
|
||||||
export class UserNotification implements UserNotificationServer {
|
export class UserNotification implements UserNotificationServer {
|
||||||
id: number
|
id: number
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
import { AuthUser } from '@app/core'
|
import { AuthUser } from '@app/core'
|
||||||
import { User } from '@app/core/users/user.model'
|
import { User } from '@app/core/users/user.model'
|
||||||
import { durationToString, getAbsoluteAPIUrl, getAbsoluteEmbedUrl } from '@app/helpers'
|
import { durationToString, getAbsoluteAPIUrl, getAbsoluteEmbedUrl } from '@app/helpers'
|
||||||
|
import { Account } from '@app/shared/shared-main/account/account.model'
|
||||||
|
import { Actor } from '@app/shared/shared-main/account/actor.model'
|
||||||
|
import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model'
|
||||||
import { peertubeTranslate } from '@shared/core-utils/i18n'
|
import { peertubeTranslate } from '@shared/core-utils/i18n'
|
||||||
import {
|
import {
|
||||||
Avatar,
|
Avatar,
|
||||||
|
@ -12,7 +15,6 @@ import {
|
||||||
VideoScheduleUpdate,
|
VideoScheduleUpdate,
|
||||||
VideoState
|
VideoState
|
||||||
} from '@shared/models'
|
} from '@shared/models'
|
||||||
import { Account, Actor, VideoChannel } from '@app/shared/shared-main'
|
|
||||||
|
|
||||||
export class Video implements VideoServerModel {
|
export class Video implements VideoServerModel {
|
||||||
byVideoChannel: string
|
byVideoChannel: string
|
||||||
|
|
Loading…
Reference in New Issue