Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zalo-MiniApp/zaui-coffee
/ functions
Functions
99 in github.com/Zalo-MiniApp/zaui-coffee
⨍
Functions
99
◇
Types & classes
19
↓ 5 callers
Function
getConfig
(getter: (config: typeof appConfig) => T)
src/utils/config.ts:3
↓ 4 callers
Function
deg2rad
(deg)
src/utils/location.ts:16
↓ 3 callers
Function
isIdentical
( option1: SelectedOptions, option2: SelectedOptions, )
src/utils/product.ts:53
↓ 2 callers
Function
adjustHeight
(el: HTMLTextAreaElement)
src/components/elastic-textarea.tsx:42
↓ 2 callers
Function
areSameDay
(date1: Date, date2: Date)
src/utils/date.ts:1
↓ 2 callers
Function
calcFinalPrice
(product: Product, options?: SelectedOptions)
src/utils/product.ts:6
↓ 2 callers
Function
displayDate
(date: Date, hint?: boolean)
src/utils/date.ts:32
↓ 2 callers
Function
displayHalfAnHourTimeRange
(date: Date)
src/utils/date.ts:26
↓ 2 callers
Function
displayTime
(date: Date)
src/utils/date.ts:20
↓ 2 callers
Function
matchStatusBarColor
(visible: boolean)
src/utils/device.ts:3
↓ 2 callers
Function
tripUnit
(value: string)
src/utils/dom.ts:1
↓ 2 callers
Function
useMatchStatusTextColor
(visible?: boolean)
src/hooks.ts:7
↓ 2 callers
Function
useToBeImplemented
()
src/hooks.ts:65
↓ 2 callers
Function
useVirtualKeyboardVisible
()
src/hooks.ts:20
↓ 2 callers
Function
wait
(ms: number)
src/utils/async.ts:1
↓ 1 callers
Function
calculateDistance
(lat1, lon1, lat2, lon2)
src/utils/location.ts:1
↓ 1 callers
Function
check
()
src/pages/result.tsx:33
↓ 1 callers
Function
displayDistance
(d)
src/utils/location.ts:20
↓ 1 callers
Function
findElementWithScrollbar
(rootElement: Element = document.body)
src/components/scroll-restoration.tsx:7
↓ 1 callers
Function
getDefaultOptions
(product?: Product)
src/components/product/picker.tsx:24
↓ 1 callers
Function
getDummyImage
(filename: string)
src/utils/product.ts:49
↓ 1 callers
Function
gotoCategory
(categoryId: string)
src/pages/index/categories.tsx:13
↓ 1 callers
Function
isToday
(date: Date)
src/utils/date.ts:9
↓ 1 callers
Function
isTomorrow
(date: Date)
src/utils/date.ts:14
↓ 1 callers
Function
pay
(amount: number, description?: string)
src/utils/product.ts:82
↓ 1 callers
Function
useHandlePayment
()
src/hooks.ts:36
Function
ActionSheet
(props)
src/components/fullscreen-sheet.tsx:11
Function
Banner
()
src/pages/index/banner.tsx:7
Function
CartIcon
({ active })
src/components/cart-icon.tsx:6
Function
CartItems
()
src/pages/cart/cart-items.tsx:11
Function
CartPage
()
src/pages/cart/index.tsx:10
Function
CartPreview
()
src/pages/cart/preview.tsx:8
Function
Categories
()
src/pages/index/categories.tsx:8
Function
CategoryPage
()
src/pages/category.tsx:54
Function
CategoryPicker
()
src/pages/category.tsx:11
Function
CategoryProducts
({ categoryId })
src/pages/category.tsx:31
Function
CheckoutResultPage
()
src/pages/result.tsx:23
Function
ConfigProvider
({ children, cssVariables })
src/components/config-provider.tsx:7
Function
Delivery
()
src/pages/cart/delivery.tsx:11
Function
DisplayDay
({ value })
src/components/display/date.tsx:3
Function
DisplayPrice
({ children })
src/components/display/price.tsx:4
Function
DisplayPriceChange
({ children, option, })
src/components/display/price-change.tsx:6
Function
DisplaySelectedOptions
({ children, options })
src/components/display/selected-options.tsx:8
Function
Divider
({ size = 8, ...props })
src/components/divider.tsx:5
Function
ElasticTextarea
({ onChange, maxRows, ...props })
src/components/elastic-textarea.tsx:15
Function
FinalPrice
({ children, options })
src/components/display/final-price.tsx:10
Function
HomePage
()
src/pages/index/index.tsx:11
Function
IconCheck
(props: SVGProps<SVGSVGElement>)
src/components/payment-icon.tsx:4
Function
IconError
(props: SVGProps<SVGSVGElement>)
src/components/payment-icon.tsx:49
Function
IconPayment
()
src/components/payment-icon.tsx:99
Function
IconPaymentFail
()
src/components/payment-icon.tsx:202
Function
IconPaymentLoading
()
src/components/payment-icon.tsx:177
Function
IconPaymentSuccess
()
src/components/payment-icon.tsx:185
Function
ImageSkeleton
({ className, ...props })
src/components/skeletons.tsx:19
Function
Inquiry
()
src/pages/search/inquiry.tsx:8
Function
Inquiry
()
src/pages/index/inquiry.tsx:5
Function
Layout
()
src/components/layout.tsx:28
Function
ListItem
({ title, subtitle, onClick })
src/components/list-item.tsx:10
Function
ListRenderer
({ title, items, limit, renderLeft, renderRight, renderKey, onClick, noDivider, }: ListRendere
src/components/list-renderer.tsx:15
Function
MultipleOptionPicker
({ product, variant, value, onChange })
src/components/product/multiple-option-picker.tsx:11
Function
MyApp
()
src/components/app.tsx:8
Function
Navigation
()
src/components/navigation.tsx:32
Function
NotificationList
()
src/pages/notification.tsx:8
Function
NotificationPage
()
src/pages/notification.tsx:34
Function
Other
()
src/pages/profile.tsx:77
Function
PersonPicker
()
src/pages/cart/person-picker.tsx:10
Function
Personal
()
src/pages/profile.tsx:38
Function
ProductItem
({ product })
src/components/product/item.tsx:7
Function
ProductItemSkeleton
()
src/components/skeletons.tsx:31
Function
ProductList
()
src/pages/index/product-list.tsx:37
Function
ProductListContent
()
src/pages/index/product-list.tsx:9
Function
ProductListFallback
()
src/pages/index/product-list.tsx:23
Function
ProductPicker
({ children, product, selected, })
src/components/product/picker.tsx:37
Function
ProductSearchResultSkeleton
()
src/components/skeletons.tsx:54
Function
ProductSlideSkeleton
()
src/components/skeletons.tsx:41
Function
ProfilePage
()
src/pages/profile.tsx:116
Function
QuantityPicker
({ value, onChange })
src/components/product/quantity-picker.tsx:7
Function
Recommend
()
src/pages/index/recommend.tsx:77
Function
RecommendContent
()
src/pages/index/recommend.tsx:13
Function
RecommendFallback
()
src/pages/index/recommend.tsx:61
Function
RequestPersonPickerPhone
()
src/pages/cart/person-picker.tsx:24
Function
RequestStorePickerLocation
()
src/pages/cart/store-picker.tsx:63
Function
ScrollRestoration
()
src/components/scroll-restoration.tsx:27
Function
SearchPage
()
src/pages/search/index.tsx:6
Function
SearchResult
()
src/pages/search/result.tsx:64
Function
SearchResultContent
()
src/pages/search/result.tsx:9
Function
SearchResultFallback
()
src/pages/search/result.tsx:48
Function
Section
({ children, title, padding = "all", ...props })
src/components/section.tsx:11
Function
Sheet
(props)
src/components/fullscreen-sheet.tsx:6
Function
SingleOptionPicker
({ variant, value, onChange })
src/components/product/single-option-picker.tsx:9
Function
StorePicker
()
src/pages/cart/store-picker.tsx:19
Function
Subscription
()
src/pages/profile.tsx:9
Function
TermsAndPolicies
()
src/pages/cart/term-and-policies.tsx:4
Function
TextSkeleton
({ className, ...props })
src/components/skeletons.tsx:5
Function
TimePicker
()
src/pages/cart/time-picker.tsx:12
Function
Welcome
()
src/pages/index/welcome.tsx:7
Function
addToCart
()
src/components/product/picker.tsx:56
Function
detectKeyboardOpen
()
src/hooks.ts:24
Function
saveScrollPosition
(e: Event)
src/components/scroll-restoration.tsx:39