mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Refactor how we use icons
Inject them in an angular component so we can easily change their color
This commit is contained in:
@@ -10,5 +10,5 @@ export interface Actor {
|
||||
followersCount: number
|
||||
createdAt: Date | string
|
||||
updatedAt: Date | string
|
||||
avatar: Avatar
|
||||
avatar?: Avatar
|
||||
}
|
||||
|
||||
@@ -22,16 +22,22 @@ export interface VideoInfo {
|
||||
name: string
|
||||
}
|
||||
|
||||
export interface ActorInfo {
|
||||
id: number
|
||||
displayName: string
|
||||
name: string
|
||||
avatar?: {
|
||||
path: string
|
||||
}
|
||||
}
|
||||
|
||||
export interface UserNotification {
|
||||
id: number
|
||||
type: UserNotificationType
|
||||
read: boolean
|
||||
|
||||
video?: VideoInfo & {
|
||||
channel: {
|
||||
id: number
|
||||
displayName: string
|
||||
}
|
||||
channel: ActorInfo
|
||||
}
|
||||
|
||||
videoImport?: {
|
||||
@@ -45,10 +51,7 @@ export interface UserNotification {
|
||||
comment?: {
|
||||
id: number
|
||||
threadId: number
|
||||
account: {
|
||||
id: number
|
||||
displayName: string
|
||||
}
|
||||
account: ActorInfo
|
||||
video: VideoInfo
|
||||
}
|
||||
|
||||
@@ -62,18 +65,11 @@ export interface UserNotification {
|
||||
video: VideoInfo
|
||||
}
|
||||
|
||||
account?: {
|
||||
id: number
|
||||
displayName: string
|
||||
name: string
|
||||
}
|
||||
account?: ActorInfo
|
||||
|
||||
actorFollow?: {
|
||||
id: number
|
||||
follower: {
|
||||
name: string
|
||||
displayName: string
|
||||
}
|
||||
follower: ActorInfo
|
||||
following: {
|
||||
type: 'account' | 'channel'
|
||||
name: string
|
||||
|
||||
@@ -24,7 +24,7 @@ export interface VideoChannelAttribute {
|
||||
displayName: string
|
||||
url: string
|
||||
host: string
|
||||
avatar: Avatar
|
||||
avatar?: Avatar
|
||||
}
|
||||
|
||||
export interface AccountAttribute {
|
||||
@@ -34,7 +34,7 @@ export interface AccountAttribute {
|
||||
displayName: string
|
||||
url: string
|
||||
host: string
|
||||
avatar: Avatar
|
||||
avatar?: Avatar
|
||||
}
|
||||
|
||||
export interface Video {
|
||||
|
||||
Reference in New Issue
Block a user