Created
December 31, 2024 15:35
-
-
Save Klerith/b893d08799253ff5d570a57c04aeb06a to your computer and use it in GitHub Desktop.
Data para el ejercicio de Pipes personalizados del curso de Angular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum Color { | |
red, | |
black, | |
blue, | |
green, | |
} | |
export enum Creator { | |
DC, | |
Marvel, | |
} | |
export interface Hero { | |
id: number; | |
name: string; | |
canFly: boolean; | |
color: Color; | |
creator: Creator; | |
} | |
export const ColorMap = { | |
[Color.red]: '#E57373', | |
[Color.black]: '#424242', | |
[Color.blue]: '#64B5F6', | |
[Color.green]: '#81C784', | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Start of Selection | |
export const heroes: Hero[] = [ | |
{ | |
id: 1, | |
name: 'Superman', | |
canFly: true, | |
color: Color.blue, | |
creator: Creator.DC, | |
}, | |
{ | |
id: 2, | |
name: 'Batman', | |
canFly: false, | |
color: Color.black, | |
creator: Creator.DC, | |
}, | |
{ | |
id: 3, | |
name: 'Robin', | |
canFly: false, | |
color: Color.green, | |
creator: Creator.DC, | |
}, | |
{ | |
id: 4, | |
name: 'Daredevil', | |
canFly: false, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 5, | |
name: 'Linterna Verde', | |
canFly: true, | |
color: Color.green, | |
creator: Creator.DC, | |
}, | |
{ | |
id: 6, | |
name: 'Aquaman', | |
canFly: false, | |
color: Color.blue, | |
creator: Creator.DC, | |
}, | |
{ | |
id: 7, | |
name: 'Flash', | |
canFly: false, | |
color: Color.red, | |
creator: Creator.DC, | |
}, | |
{ | |
id: 8, | |
name: 'Wolverine', | |
canFly: false, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 9, | |
name: 'Magneto', | |
canFly: false, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 10, | |
name: 'Hulk', | |
canFly: false, | |
color: Color.green, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 11, | |
name: 'Thor', | |
canFly: true, | |
color: Color.blue, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 12, | |
name: 'Capitan America', | |
canFly: false, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 13, | |
name: 'Ironman', | |
canFly: true, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 14, | |
name: 'Spiderman', | |
canFly: false, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 15, | |
name: 'Doctor Strange', | |
canFly: true, | |
color: Color.green, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 16, | |
name: 'Capitan Marvel', | |
canFly: false, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 17, | |
name: 'Antman', | |
canFly: false, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 18, | |
name: 'Wasp', | |
canFly: true, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 19, | |
name: 'Black Widow', | |
canFly: false, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 20, | |
name: 'Black Panther', | |
canFly: false, | |
color: Color.black, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 21, | |
name: 'Hawkeye', | |
canFly: false, | |
color: Color.red, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 22, | |
name: 'Nightwing', | |
canFly: false, | |
color: Color.blue, | |
creator: Creator.DC, | |
}, | |
{ | |
id: 23, | |
name: 'Storm', | |
canFly: true, | |
color: Color.blue, | |
creator: Creator.Marvel, | |
}, | |
{ | |
id: 24, | |
name: 'Supergirl', | |
canFly: true, | |
color: Color.blue, | |
creator: Creator.DC, | |
}, | |
{ | |
id: 25, | |
name: 'Wonder Woman', | |
canFly: true, | |
color: Color.red, | |
creator: Creator.DC, | |
}, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment