Below are charts describing all of the common labels and colors across the ManageIQ repos.
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
This is for all .liquid files within directory | |
find . -name '*.liquid' | xargs wc -l |
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
// Function that takes the message and returns the BG color, Error Type, and message. | |
const label = ([raw]) => { | |
const [color, label, ...message] = raw.split(' ') | |
return [ | |
`%c${label}%c ${message.join(' ')}`, | |
`color: white; background-color: ${color}; padding: 0 0.5rem 0 0.5rem;`, | |
'' | |
] | |
} |
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
// from Paul Irish! | |
// Generate a random hex value | |
'#'+Math.floor(Math.random()*16777215).toString(16); |
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
background-image: | |
radial-gradient( | |
circle at top right, | |
cyan, transparent | |
), | |
radial-gradient( | |
circle at bottom left, | |
deeppink, transparent | |
) | |
; |