Sha256: b6d7606086262c85042f73a6f849289fa4b0f570e60a4a3370332cab9093e7a4
Contents?: true
Size: 1005 Bytes
Versions: 102
Compression:
Stored size: 1005 Bytes
Contents
// eslint-disable-next-line import/prefer-default-export export function getTypeIcon(type) { const typeIcon = { name: '', type: '' }; switch (type) { case 'yum': typeIcon.name = 'bundle'; typeIcon.type = 'pf'; break; case 'source_rpm': typeIcon.name = 'code'; typeIcon.type = 'fa'; break; case 'file': typeIcon.name = 'file'; typeIcon.type = 'fa'; break; case 'debug': typeIcon.name = 'bug'; typeIcon.type = 'fa'; break; case 'iso': typeIcon.name = 'file-image-o'; typeIcon.type = 'fa'; break; case 'beta': typeIcon.name = 'bold'; typeIcon.type = 'fa'; break; case 'kickstart': typeIcon.name = 'futbol-o'; typeIcon.type = 'fa'; break; case 'containerimage': typeIcon.name = 'cube'; typeIcon.type = 'fa'; break; default: typeIcon.name = 'question'; typeIcon.type = 'fa'; break; } return typeIcon; }
Version data entries
102 entries across 102 versions & 1 rubygems