Buckets:
| import escapeClassName from './escapeClassName' | |
| import escapeCommas from './escapeCommas' | |
| export function asClass(name) { | |
| return escapeCommas(`.${escapeClassName(name)}`) | |
| } | |
| export default function nameClass(classPrefix, key) { | |
| return asClass(formatClass(classPrefix, key)) | |
| } | |
| export function formatClass(classPrefix, key) { | |
| if (key === 'DEFAULT') { | |
| return classPrefix | |
| } | |
| if (key === '-' || key === '-DEFAULT') { | |
| return `-${classPrefix}` | |
| } | |
| if (key.startsWith('-')) { | |
| return `-${classPrefix}${key}` | |
| } | |
| if (key.startsWith('/')) { | |
| return `${classPrefix}${key}` | |
| } | |
| return `${classPrefix}-${key}` | |
| } | |
Xet Storage Details
- Size:
- 634 Bytes
- Xet hash:
- 3a5c6929c53275a749f6f693d26cdf76f44fe447ce4e7d371b428cdfe35bb744
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.