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
[v-cloak] { | |
visibility: hidden; | |
display: block; | |
padding: 50px 0; | |
} | |
@keyframes spinner { | |
to { | |
transform: rotate(360deg); | |
} |
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 default function abbreviateNumber(value) { | |
let newValue = value; | |
const suffixes = ["", "K", "M", "B","T"]; | |
let suffixNum = 0; | |
while (newValue >= 1000) { | |
newValue /= 1000; | |
suffixNum++; | |
} | |
newValue = newValue.toPrecision(3); |