Refactor how we use icons

Inject them in an angular component so we can easily change their color
This commit is contained in:
Chocobozzz
2019-01-16 16:05:40 +01:00
parent 848f499def
commit 457bb213b2
116 changed files with 670 additions and 894 deletions

View File

@@ -10,5 +10,5 @@ export interface Actor {
followersCount: number
createdAt: Date | string
updatedAt: Date | string
avatar: Avatar
avatar?: Avatar
}

View File

@@ -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

View File

@@ -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 {