Guide line Module Frontend
1. Helper
getAppsyncToken
handle get token from cookie or default token
|
dataURLtoFile
parse base64 to file like input form
|
getYears
data years from->to
|
getMonths
data month from->to
|
getHours
data hour from->to
|
getMinutes
data hour from->to
|
daysInMonth
data days in month
date type string exp: 1990-01-01
|
scrollToTop
handle scroll to top
|
formatDate
formatDate exp: 1990-01-01 -> 1990年1月1
|
getExpiredToken
get expired access_token
|
renderObjectSelected
handle render data value select
value =>
{ value: value, name: value }
|
renderObjectSelectedV2
handle render data value select
value, options, key => return option tương ứng
|
numberWithCommas
format number comma between
|
groupByViaObject
|
findArray
find item in array
|
stripHtml
Remove html tag
|
checkOnlyNumber
check only number of string
|
convertBase64
text to base64
|
2. Vuejs
Vue 3
Vue-copper |
Spinner |
Pagination |
AlertError |