MCPcopy Create free account

hub / github.com/ONEENTRY-PLATFORM/nextjs-shop-demo / functions

Functions528 in github.com/ONEENTRY-PLATFORM/nextjs-shop-demo

↓ 132 callersFunctionwaitForPageLoad
(page: Page)
tests/e2e/helpers/navigation-helpers.ts:73
↓ 58 callersFunctiongetApi
()
app/api/api/api.ts:80
↓ 40 callersFunctionisError
(result: unknown)
app/api/api/api.ts:119
↓ 27 callersFunctiontoLangCode
(lang: string)
app/types/enum.ts:16
↓ 22 callersFunctionServerProvider
(key: string, defaultValue?: T)
app/store/providers/ServerProvider.tsx:14
↓ 20 callersFunctiongetImageUrl
( name: string, attributeValues: Attrs, type: 'image' | 'preview' = 'image', )
app/api/hooks/useAttributesData.ts:188
↓ 19 callersFunctionsetOpen
(_value: boolean)
app/store/providers/OpenDrawerContext.tsx:39
↓ 18 callersFunctiongetReviewAuthorName
( userIdentifier?: string | null, fallback = 'Anonymous', )
app/utils/getReviewAuthorName.ts:38
↓ 17 callersFunctioncompileRegex
(mask: string)
app/api/utils/compileRegex.ts:34
↓ 16 callersFunctionUsePrice
({ amount, lang, }: { amount: number | string; lang: string; })
components/utils/utils.ts:22
↓ 16 callersFunctiongeneratePageMetadata
({ handle = '', title, description, isVisible, imageUrl, imageWidth = 300, imageHeight = 300,
app/utils/generatePageMetadata.ts:48
↓ 16 callersFunctionsetComponent
(_value: string)
app/store/providers/OpenDrawerContext.tsx:40
↓ 15 callersFunctiongoToFirstProduct
(page: Page)
tests/e2e/helpers/navigation-helpers.ts:89
↓ 14 callersFunctionformatMs
(v: number)
app/api-test/statsUtils.ts:106
↓ 14 callersFunctioninitial
()
tests/jest/app/store/reducers/CartSlice.test.ts:31
↓ 14 callersFunctionsetTransition
(_value: string)
app/store/providers/OpenDrawerContext.tsx:43
↓ 13 callersFunctionhandleApiError
(handle: string, error: unknown)
app/utils/errorHandler.ts:36
↓ 12 callersFunctiongetCartBadge
(page: Page)
tests/e2e/helpers/cart-helpers.ts:46
↓ 11 callersFunctiongetDictionary
( locale: Locale, )
app/[lang]/dictionaries.ts:47
↓ 11 callersFunctionsignIn
( page: Page, email: string, password: string, )
tests/e2e/helpers/auth-helpers.ts:49
↓ 11 callersFunctiontoQueryResult
( call: Promise<T | IError>, )
app/api/api/RTKApi.ts:57
↓ 10 callersFunctiononCheckout
* 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 callersFunctionaddField
* Add a new field to the form. * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>}
app/store/reducers/FormFieldsSlice.ts:58
↓ 9 callersFunctioninitial
()
tests/jest/app/store/reducers/FavoritesSlice.test.ts:11
↓ 9 callersFunctionopenSignInModal
(page: Page)
tests/e2e/helpers/auth-helpers.ts:18
↓ 9 callersFunctiontouchCart
( state: WritableDraft<InitialStateType>, id: number, ts: number, removed: boolean, )
app/store/reducers/CartSlice.ts:78
↓ 9 callersFunctionuseCreateOrder
({ langCode, }: { langCode: string; })
app/api/hooks/useCreateOrder.ts:23
↓ 8 callersFunctionTOAST
(page: Page)
tests/e2e/toast-notifications.spec.ts:22
↓ 8 callersFunctionaddData
* Add or update form data in the order. * @param {WritableDraft<InitialStateType>} state - Current state. * @param {PayloadAction<string>}
app/store/reducers/OrderSlice.ts:94
↓ 8 callersFunctionattrsWith
(value: unknown)
tests/jest/app/api/hooks/useAttributesData.test.ts:21
↓ 8 callersFunctionclearAuthState
(page: Page)
tests/e2e/helpers/auth-helpers.ts:133
↓ 8 callersFunctioninitial
()
tests/jest/app/store/reducers/OrderSlice.test.ts:25
↓ 8 callersFunctionopenCart
(page: Page)
tests/e2e/helpers/cart-helpers.ts:16
↓ 8 callersFunctionreset
()
components/shared/ErrorMessage.tsx:22
↓ 8 callersFunctionsanitizeHTML
(dirty: string)
components/utils/sanitize.ts:16
↓ 7 callersFunctionbuildTimeIntervalValue
(interval?: Date[])
app/utils/orderFormData.ts:17
↓ 7 callersFunctionmakeOrder
(paymentAccountIdentifier: string)
tests/jest/app/api/hooks/useCreateOrder.test.tsx:76
↓ 7 callersFunctionopenFilterModal
* Helper: open the filter modal * @param {Page} page Page * @returns {Locator} modal
tests/e2e/filter-combinations.spec.ts:22
↓ 6 callersFunctionformatErrorMessage
( error: unknown, defaultMessage: string = 'An error occurred', )
app/utils/errorHandler.ts:93
↓ 6 callersFunctiongetCartItemCount
(page: Page)
tests/e2e/helpers/cart-helpers.ts:56
↓ 6 callersFunctioninitial
()
tests/jest/app/store/reducers/FormFieldsSlice.test.ts:11
↓ 6 callersFunctiontypeAndWaitForResults
* 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 callersFunctiongetFavoritesBadge
(page: Page)
tests/e2e/helpers/favorites-helpers.ts:15
↓ 5 callersFunctiongetFavoritesItemCount
(page: Page)
tests/e2e/helpers/favorites-helpers.ts:28
↓ 4 callersFunctionapplyFilters
* Helper: apply filters and wait for URL to update * @param {Page} page Page * @returns {void}
tests/e2e/filter-combinations.spec.ts:36
↓ 4 callersFunctiongetBlurDataURL
( name: string, attributeValues: IAttributeValues | undefined, )
app/api/utils/getBlurDataURL.ts:59
↓ 4 callersFunctiongetCartItemQuantity
( page: Page, itemIndex: number = 0, )
tests/e2e/helpers/cart-helpers.ts:133
↓ 4 callersFunctiongetProductTitle
( product: IProductsEntity, langCode?: string, fallback: string = '', )
app/api/hooks/useProductsData.ts:11
↓ 4 callersFunctionmergeLedger
( base: Record<number, T>, incoming: Record<number, T>, )
app/store/utils/ledger.ts:46
↓ 4 callersFunctionpad
(n: number)
components/forms/CalendarForm.tsx:128
↓ 3 callersFunctionaddPaymentMethod
* Set the payment account identifier for the order * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction
app/store/reducers/OrderSlice.ts:153
↓ 3 callersFunctionbucketFor
(time: number, success: boolean)
app/api-test/statsUtils.ts:92
↓ 3 callersFunctioncartActiveProducts
(ledger: CartLedger)
app/store/utils/ledger.ts:116
↓ 3 callersFunctionchangeCartItemQuantity
( page: Page, itemIndex: number, action: 'increase' | 'decrease', )
tests/e2e/helpers/cart-helpers.ts:110
↓ 3 callersFunctioncomputeStats
(times: number[])
app/api-test/statsUtils.ts:31
↓ 3 callersFunctionfavActiveIds
(ledger: FavLedger)
app/store/utils/ledger.ts:88
↓ 3 callersFunctiongetChildPagesByParentUrl
( url: string, lang: string, )
app/api/server/pages/getChildPagesByParentUrl.ts:16
↓ 3 callersFunctiongetProductById
( id: number, lang: string, )
app/api/server/products/getProductById.ts:15
↓ 3 callersFunctiongetState
()
app/api/api/api.ts:71
↓ 3 callersFunctiongetString
(name: string, attributeValues: Attrs)
app/api/hooks/useAttributesData.ts:15
↓ 3 callersFunctiongetText
( name: string, attributeValues: Attrs, type: 'html' | 'plain' = 'plain', )
app/api/hooks/useAttributesData.ts:36
↓ 3 callersFunctionisCurrent
()
app/store/providers/AuthContext.tsx:242
↓ 3 callersFunctionlogInUser
({ login, password, }: LogInProps)
app/api/server/users/logInUser.ts:16
↓ 3 callersFunctionnormalizeCartLedger
( state: Record<string, unknown> | undefined, )
app/store/utils/ledger.ts:149
↓ 3 callersFunctionnormalizeFavLedger
( state: Record<string, unknown> | undefined, )
app/store/utils/ledger.ts:129
↓ 3 callersFunctiononSubscribeEvents
(id: number)
app/api/hooks/useEvents.ts:13
↓ 3 callersFunctiononUnsubscribeEvents
(id: number)
app/api/hooks/useEvents.ts:44
↓ 3 callersFunctionpercentile
(p: number)
app/api-test/statsUtils.ts:39
↓ 3 callersFunctionselectIsFavorites
( state: { favoritesReducer: { products: number[] } }, id: number, )
app/store/reducers/FavoritesSlice.ts:166
↓ 3 callersFunctionsendData
(data: IBodyPostFormData)
app/api/hooks/useFormsData.ts:37
↓ 3 callersFunctionsetAction
(_value: string)
app/store/providers/OpenDrawerContext.tsx:41
↓ 3 callersFunctionsetDeliveryData
* Set delivery data * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>} action - Pa
app/store/reducers/CartSlice.ts:384
↓ 3 callersFunctiontypeError
(res: IError | unknown)
components/utils/utils.ts:160
↓ 3 callersFunctionuseFormsData
()
app/api/hooks/useFormsData.ts:29
↓ 2 callersFunctionUseDate
({ fullDate, format = 'en', }: { fullDate: number | string | Date; format: string; })
components/utils/utils.ts:57
↓ 2 callersFunctionaddDeliveryToCart
* Add delivery information to the cart * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>}
app/store/reducers/CartSlice.ts:373
↓ 2 callersFunctionaddProducts
* Add products to the order * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>} act
app/store/reducers/OrderSlice.ts:119
↓ 2 callersFunctionaddProductsToCart
* Add multiple products to the cart * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>}
app/store/reducers/CartSlice.ts:154
↓ 2 callersFunctioncartLedgerFromProducts
( products: IProducts[], ts = 0, )
app/store/utils/ledger.ts:100
↓ 2 callersFunctioncheckToken
()
components/forms/inputs/FormReCaptcha.tsx:129
↓ 2 callersFunctionclearCart
(page: Page)
tests/e2e/helpers/cart-helpers.ts:175
↓ 2 callersFunctioncreateSession
(id: number)
app/api/hooks/useCreateOrder.ts:52
↓ 2 callersFunctionexecuteRecaptcha
()
components/forms/inputs/FormReCaptcha.tsx:37
↓ 2 callersFunctionfavLedgerFromIds
(ids: number[], ts = 0)
app/store/utils/ledger.ts:75
↓ 2 callersFunctionfillAllTextInputs
* 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 callersFunctionformatBytes
(v: number)
app/api-test/statsUtils.ts:114
↓ 2 callersFunctiongetOrderStatusLabel
( marker: string | null | undefined, )
app/utils/orderStatusLabels.ts:21
↓ 2 callersFunctiongetProducts
(props: { offset: number; limit: number; lang: string; params?: { handle?: string; searchParam
app/api/server/products/getProducts.ts:27
↓ 2 callersFunctiongetSearchParams
( searchParams?: { search?: string; in_stock?: string; color?: string; minPrice?: string;
app/api/utils/getSearchParams.ts:14
↓ 2 callersFunctiongetSubSegments
(target: string | null)
app/animations/navigationRoutes.ts:17
↓ 2 callersFunctionhasForm
* 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 callersFunctionlogOutUser
({ marker, }: LogOutProps)
app/api/server/users/logOutUser.ts:15
↓ 2 callersFunctionopenSignUpForm
(page: Page)
tests/e2e/helpers/auth-helpers.ts:111
↓ 2 callersFunctionparsePrice
(value: string | null)
components/layout/filter/components/price/PricePickerFilter.tsx:55
↓ 2 callersFunctionremoveCartItem
( page: Page, itemIndex: number = 0, )
tests/e2e/helpers/cart-helpers.ts:91
↓ 2 callersFunctionselectFavoritesItems
(state: { favoritesReducer: { products: number[] }; })
app/store/reducers/FavoritesSlice.ts:143
↓ 2 callersFunctionselectIsInCart
( state: { cartReducer: { productsData: IProducts[] }; }, productId: number, )
app/store/reducers/CartSlice.ts:479
↓ 2 callersFunctionsetCartTransition
* Set the transition ID for animations * @param {WritableDraft<InitialStateType>} state - Current state * @param {PayloadAction<string>}
app/store/reducers/CartSlice.ts:405
↓ 2 callersFunctionsetData
(_value: string)
app/store/providers/OpenDrawerContext.tsx:42
↓ 2 callersFunctionsetFavoritesVersion
* 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