feature[profile]: add profile page (#1953)

This commit is contained in:
Tuan Duong
2019-04-25 16:45:46 +07:00
committed by 花裤衩
parent f9f51986e6
commit c58e2078bc
13 changed files with 511 additions and 6 deletions

View File

@@ -58,3 +58,11 @@ export function numberFormatter(num, digits) {
export function toThousandFilter(num) {
return (+num || 0).toString().replace(/^-?\d+/g, m => m.replace(/(?=(?!\b)(\d{3})+$)/g, ','))
}
/**
* Upper case first char
* @param {String} string
*/
export function uppercaseFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1)
}