Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ONEENTRY-PLATFORM/nextjs-shop-demo
/ functions
Functions
528 in github.com/ONEENTRY-PLATFORM/nextjs-shop-demo
⨍
Functions
528
◇
Types & classes
38
↓ 132 callers
Function
waitForPageLoad
(page: Page)
tests/e2e/helpers/navigation-helpers.ts:73
↓ 58 callers
Function
getApi
()
app/api/api/api.ts:80
↓ 40 callers
Function
isError
(result: unknown)
app/api/api/api.ts:119
↓ 27 callers
Function
toLangCode
(lang: string)
app/types/enum.ts:16
↓ 22 callers
Function
ServerProvider
(key: string, defaultValue?: T)
app/store/providers/ServerProvider.tsx:14
↓ 20 callers
Function
getImageUrl
( name: string, attributeValues: Attrs, type: 'image' | 'preview' = 'image', )
app/api/hooks/useAttributesData.ts:188
↓ 19 callers
Function
setOpen
(_value: boolean)
app/store/providers/OpenDrawerContext.tsx:39
↓ 18 callers
Function
getReviewAuthorName
( userIdentifier?: string | null, fallback = 'Anonymous', )
app/utils/getReviewAuthorName.ts:38
↓ 17 callers
Function
compileRegex
(mask: string)
app/api/utils/compileRegex.ts:34
↓ 16 callers
Function
UsePrice
({ amount, lang, }: { amount: number | string; lang: string; })
components/utils/utils.ts:22
↓ 16 callers
Function
generatePageMetadata
({ handle = '', title, description, isVisible, imageUrl, imageWidth = 300, imageHeight = 300,
app/utils/generatePageMetadata.ts:48
↓ 16 callers
Function
setComponent
(_value: string)
app/store/providers/OpenDrawerContext.tsx:40
↓ 15 callers
Function
goToFirstProduct
(page: Page)
tests/e2e/helpers/navigation-helpers.ts:89
↓ 14 callers
Function
formatMs
(v: number)
app/api-test/statsUtils.ts:106
↓ 14 callers
Function
initial
()
tests/jest/app/store/reducers/CartSlice.test.ts:31
↓ 14 callers
Function
setTransition
(_value: string)
app/store/providers/OpenDrawerContext.tsx:43
↓ 13 callers
Function
handleApiError
(handle: string, error: unknown)
app/utils/errorHandler.ts:36
↓ 12 callers
Function
getCartBadge
(page: Page)
tests/e2e/helpers/cart-helpers.ts:46
↓ 11 callers
Function
getDictionary
( locale: Locale, )
app/[lang]/dictionaries.ts:47
↓ 11 callers
Function
signIn
( page: Page, email: string, password: string, )
tests/e2e/helpers/auth-helpers.ts:49
↓ 11 callers
Function
toQueryResult
( call: Promise<T | IError>, )
app/api/api/RTKApi.ts:57
↓ 10 callers
Function
onCheckout
* Returns true if the current page shows actual checkout content. * Used to skip tests when there is nothing to assert against: the URL is not
tests/e2e/checkout.spec.ts:107
↓ 9 callers
Function
addField
* Add a new field to the form. * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>}
app/store/reducers/FormFieldsSlice.ts:58
↓ 9 callers
Function
initial
()
tests/jest/app/store/reducers/FavoritesSlice.test.ts:11
↓ 9 callers
Function
openSignInModal
(page: Page)
tests/e2e/helpers/auth-helpers.ts:18
↓ 9 callers
Function
touchCart
( state: WritableDraft<InitialStateType>, id: number, ts: number, removed: boolean, )
app/store/reducers/CartSlice.ts:78
↓ 9 callers
Function
useCreateOrder
({ langCode, }: { langCode: string; })
app/api/hooks/useCreateOrder.ts:23
↓ 8 callers
Function
TOAST
(page: Page)
tests/e2e/toast-notifications.spec.ts:22
↓ 8 callers
Function
addData
* Add or update form data in the order. * @param {WritableDraft<InitialStateType>} state - Current state. * @param {PayloadAction<string>}
app/store/reducers/OrderSlice.ts:94
↓ 8 callers
Function
attrsWith
(value: unknown)
tests/jest/app/api/hooks/useAttributesData.test.ts:21
↓ 8 callers
Function
clearAuthState
(page: Page)
tests/e2e/helpers/auth-helpers.ts:133
↓ 8 callers
Function
initial
()
tests/jest/app/store/reducers/OrderSlice.test.ts:25
↓ 8 callers
Function
openCart
(page: Page)
tests/e2e/helpers/cart-helpers.ts:16
↓ 8 callers
Function
reset
()
components/shared/ErrorMessage.tsx:22
↓ 8 callers
Function
sanitizeHTML
(dirty: string)
components/utils/sanitize.ts:16
↓ 7 callers
Function
buildTimeIntervalValue
(interval?: Date[])
app/utils/orderFormData.ts:17
↓ 7 callers
Function
makeOrder
(paymentAccountIdentifier: string)
tests/jest/app/api/hooks/useCreateOrder.test.tsx:76
↓ 7 callers
Function
openFilterModal
* Helper: open the filter modal * @param {Page} page Page * @returns {Locator} modal
tests/e2e/filter-combinations.spec.ts:22
↓ 6 callers
Function
formatErrorMessage
( error: unknown, defaultMessage: string = 'An error occurred', )
app/utils/errorHandler.ts:93
↓ 6 callers
Function
getCartItemCount
(page: Page)
tests/e2e/helpers/cart-helpers.ts:56
↓ 6 callers
Function
initial
()
tests/jest/app/store/reducers/FormFieldsSlice.test.ts:11
↓ 6 callers
Function
typeAndWaitForResults
* Shared helper: type a query and wait for the results dropdown. * Returns true if the dropdown appeared, false if the search returned * no
tests/e2e/search.spec.ts:47
↓ 5 callers
Function
getFavoritesBadge
(page: Page)
tests/e2e/helpers/favorites-helpers.ts:15
↓ 5 callers
Function
getFavoritesItemCount
(page: Page)
tests/e2e/helpers/favorites-helpers.ts:28
↓ 4 callers
Function
applyFilters
* Helper: apply filters and wait for URL to update * @param {Page} page Page * @returns {void}
tests/e2e/filter-combinations.spec.ts:36
↓ 4 callers
Function
getBlurDataURL
( name: string, attributeValues: IAttributeValues | undefined, )
app/api/utils/getBlurDataURL.ts:59
↓ 4 callers
Function
getCartItemQuantity
( page: Page, itemIndex: number = 0, )
tests/e2e/helpers/cart-helpers.ts:133
↓ 4 callers
Function
getProductTitle
( product: IProductsEntity, langCode?: string, fallback: string = '', )
app/api/hooks/useProductsData.ts:11
↓ 4 callers
Function
mergeLedger
( base: Record<number, T>, incoming: Record<number, T>, )
app/store/utils/ledger.ts:46
↓ 4 callers
Function
pad
(n: number)
components/forms/CalendarForm.tsx:128
↓ 3 callers
Function
addPaymentMethod
* Set the payment account identifier for the order * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction
app/store/reducers/OrderSlice.ts:153
↓ 3 callers
Function
bucketFor
(time: number, success: boolean)
app/api-test/statsUtils.ts:92
↓ 3 callers
Function
cartActiveProducts
(ledger: CartLedger)
app/store/utils/ledger.ts:116
↓ 3 callers
Function
changeCartItemQuantity
( page: Page, itemIndex: number, action: 'increase' | 'decrease', )
tests/e2e/helpers/cart-helpers.ts:110
↓ 3 callers
Function
computeStats
(times: number[])
app/api-test/statsUtils.ts:31
↓ 3 callers
Function
favActiveIds
(ledger: FavLedger)
app/store/utils/ledger.ts:88
↓ 3 callers
Function
getChildPagesByParentUrl
( url: string, lang: string, )
app/api/server/pages/getChildPagesByParentUrl.ts:16
↓ 3 callers
Function
getProductById
( id: number, lang: string, )
app/api/server/products/getProductById.ts:15
↓ 3 callers
Function
getState
()
app/api/api/api.ts:71
↓ 3 callers
Function
getString
(name: string, attributeValues: Attrs)
app/api/hooks/useAttributesData.ts:15
↓ 3 callers
Function
getText
( name: string, attributeValues: Attrs, type: 'html' | 'plain' = 'plain', )
app/api/hooks/useAttributesData.ts:36
↓ 3 callers
Function
isCurrent
()
app/store/providers/AuthContext.tsx:242
↓ 3 callers
Function
logInUser
({ login, password, }: LogInProps)
app/api/server/users/logInUser.ts:16
↓ 3 callers
Function
normalizeCartLedger
( state: Record<string, unknown> | undefined, )
app/store/utils/ledger.ts:149
↓ 3 callers
Function
normalizeFavLedger
( state: Record<string, unknown> | undefined, )
app/store/utils/ledger.ts:129
↓ 3 callers
Function
onSubscribeEvents
(id: number)
app/api/hooks/useEvents.ts:13
↓ 3 callers
Function
onUnsubscribeEvents
(id: number)
app/api/hooks/useEvents.ts:44
↓ 3 callers
Function
percentile
(p: number)
app/api-test/statsUtils.ts:39
↓ 3 callers
Function
selectIsFavorites
( state: { favoritesReducer: { products: number[] } }, id: number, )
app/store/reducers/FavoritesSlice.ts:166
↓ 3 callers
Function
sendData
(data: IBodyPostFormData)
app/api/hooks/useFormsData.ts:37
↓ 3 callers
Function
setAction
(_value: string)
app/store/providers/OpenDrawerContext.tsx:41
↓ 3 callers
Function
setDeliveryData
* Set delivery data * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>} action - Pa
app/store/reducers/CartSlice.ts:384
↓ 3 callers
Function
typeError
(res: IError | unknown)
components/utils/utils.ts:160
↓ 3 callers
Function
useFormsData
()
app/api/hooks/useFormsData.ts:29
↓ 2 callers
Function
UseDate
({ fullDate, format = 'en', }: { fullDate: number | string | Date; format: string; })
components/utils/utils.ts:57
↓ 2 callers
Function
addDeliveryToCart
* Add delivery information to the cart * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>}
app/store/reducers/CartSlice.ts:373
↓ 2 callers
Function
addProducts
* Add products to the order * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>} act
app/store/reducers/OrderSlice.ts:119
↓ 2 callers
Function
addProductsToCart
* Add multiple products to the cart * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>}
app/store/reducers/CartSlice.ts:154
↓ 2 callers
Function
cartLedgerFromProducts
( products: IProducts[], ts = 0, )
app/store/utils/ledger.ts:100
↓ 2 callers
Function
checkToken
()
components/forms/inputs/FormReCaptcha.tsx:129
↓ 2 callers
Function
clearCart
(page: Page)
tests/e2e/helpers/cart-helpers.ts:175
↓ 2 callers
Function
createSession
(id: number)
app/api/hooks/useCreateOrder.ts:52
↓ 2 callers
Function
executeRecaptcha
()
components/forms/inputs/FormReCaptcha.tsx:37
↓ 2 callers
Function
favLedgerFromIds
(ids: number[], ts = 0)
app/store/utils/ledger.ts:75
↓ 2 callers
Function
fillAllTextInputs
* Fill every visible text input / textarea with a given value. * @param {Page} page Page instance * @param {string} value V
tests/e2e/form-submission.spec.ts:24
↓ 2 callers
Function
formatBytes
(v: number)
app/api-test/statsUtils.ts:114
↓ 2 callers
Function
getOrderStatusLabel
( marker: string | null | undefined, )
app/utils/orderStatusLabels.ts:21
↓ 2 callers
Function
getProducts
(props: { offset: number; limit: number; lang: string; params?: { handle?: string; searchParam
app/api/server/products/getProducts.ts:27
↓ 2 callers
Function
getSearchParams
( searchParams?: { search?: string; in_stock?: string; color?: string; minPrice?: string;
app/api/utils/getSearchParams.ts:14
↓ 2 callers
Function
getSubSegments
(target: string | null)
app/animations/navigationRoutes.ts:17
↓ 2 callers
Function
hasForm
* Returns true if ANY form exists on the current page. * @param {Page} page Page instance * @returns {Promise<boolean>} Promi
tests/e2e/form-submission.spec.ts:44
↓ 2 callers
Function
logOutUser
({ marker, }: LogOutProps)
app/api/server/users/logOutUser.ts:15
↓ 2 callers
Function
openSignUpForm
(page: Page)
tests/e2e/helpers/auth-helpers.ts:111
↓ 2 callers
Function
parsePrice
(value: string | null)
components/layout/filter/components/price/PricePickerFilter.tsx:55
↓ 2 callers
Function
removeCartItem
( page: Page, itemIndex: number = 0, )
tests/e2e/helpers/cart-helpers.ts:91
↓ 2 callers
Function
selectFavoritesItems
(state: { favoritesReducer: { products: number[] }; })
app/store/reducers/FavoritesSlice.ts:143
↓ 2 callers
Function
selectIsInCart
( state: { cartReducer: { productsData: IProducts[] }; }, productId: number, )
app/store/reducers/CartSlice.ts:479
↓ 2 callers
Function
setCartTransition
* Set the transition ID for animations * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>}
app/store/reducers/CartSlice.ts:405
↓ 2 callers
Function
setData
(_value: string)
app/store/providers/OpenDrawerContext.tsx:42
↓ 2 callers
Function
setFavoritesVersion
* Set the version of the favorites list. * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<number>}
app/store/reducers/FavoritesSlice.ts:118
next →
1–100 of 528, ranked by callers