MCPcopy Create free account

hub / github.com/adrianhajdin/ecommerce / functions

Functions208 in github.com/adrianhajdin/ecommerce

↓ 21 callersFunctionmergeOpenGraph
(og?: Metadata['openGraph'])
src/app/_utilities/mergeOpenGraph.ts:15
↓ 12 callersFunctionuseAuth
()
src/app/_providers/Auth/index.tsx:218
↓ 10 callersFunctioncheckRole
(allRoles: User['roles'] = [], user?: User)
src/payload/collections/Users/checkRole.ts:3
↓ 8 callersFunctiongetMeUser
(args?: { nullUserRedirect?: string validUserRedirect?: string })
src/app/_utilities/getMeUser.ts:6
↓ 7 callersFunctionuseCart
()
src/app/_providers/Cart/index.tsx:33
↓ 5 callersFunctionLINK_FIELDS
({ disableAppearance, disableLabel }: Args = {})
src/app/_graphql/link.ts:6
↓ 5 callersFunctiondeepMerge
(target: T, source: R)
src/payload/utilities/deepMerge.ts:17
↓ 5 callersFunctionformatDateTime
(timestamp: string)
src/app/_utilities/formatDateTime.ts:1
↓ 5 callersFunctionlink
({ appearances, disableLabel = false, overrides = {} } = {})
src/payload/fields/link.ts:28
↓ 5 callersFunctionpriceFromJSON
(priceJSON: string, quantity: number = 1, raw?: boolean)
src/app/_components/Price/index.tsx:9
↓ 4 callersFunctionfetchSettings
()
src/app/_api/fetchGlobals.ts:5
↓ 4 callersFunctionrichText
( overrides, additions = { elements: [], leaves: [], }, )
src/payload/fields/richText/index.ts:22
↓ 3 callersFunctiongenerateMeta
(args: { doc: Page | Product })
src/app/_utilities/generateMeta.ts:6
↓ 3 callersFunctionisObject
(item: unknown)
src/payload/utilities/deepMerge.ts:8
↓ 3 callersFunctionuseFilter
()
src/app/_providers/Filter/index.tsx:39
↓ 2 callersFunctionfetchFooter
()
src/app/_api/fetchGlobals.ts:55
↓ 2 callersFunctionfetchHeader
()
src/app/_api/fetchGlobals.ts:30
↓ 2 callersFunctionformat
(val: string)
src/payload/utilities/formatSlug.ts:3
↓ 2 callersFunctiongetImplicitPreference
()
src/app/_providers/Theme/shared.ts:7
↓ 2 callersFunctionlinkGroup
({ overrides = {}, appearances } = {})
src/payload/fields/linkGroup.ts:13
↓ 2 callersFunctionpriceFromJSON
(priceJSON)
src/app/_components/Card/index.tsx:12
↓ 2 callersFunctionrevalidate
(args: { collection: string slug: string payload: Payload })
src/payload/utilities/revalidate.ts:3
↓ 2 callersFunctionseed
(payload: Payload)
src/payload/seed/index.ts:22
↓ 2 callersFunctionslugField
(fieldToUse = 'title', overrides = {})
src/payload/fields/slug.ts:8
↓ 2 callersFunctionuseTheme
()
src/app/_providers/Theme/index.tsx:59
↓ 1 callersFunctionarrayHasItems
src/app/_providers/Cart/index.tsx:35
↓ 1 callersFunctioneject
()
eject.ts:12
↓ 1 callersFunctionfetchMe
()
src/app/_providers/Auth/index.tsx:119
↓ 1 callersFunctionformatSlug
(fallback: string)
src/payload/utilities/formatSlug.ts:10
↓ 1 callersFunctiongetPaywallContent
()
src/app/_components/PaywallBlocks/index.tsx:34
↓ 1 callersFunctiongetStripeCustomers
()
src/payload/collections/Users/ui/CustomerSelect.tsx:18
↓ 1 callersFunctiongetStripeProducts
()
src/payload/collections/Products/ui/ProductSelect.tsx:18
↓ 1 callersFunctionmakeIntent
()
src/app/(pages)/checkout/CheckoutPage/index.tsx:50
↓ 1 callersFunctionmakeRequest
()
src/app/_components/CollectionArchive/index.tsx:115
↓ 1 callersFunctiononThemeChange
(themeToSet: Theme & 'auto')
src/app/_providers/Theme/ThemeSelector/index.tsx:17
↓ 1 callersFunctionperformLogout
()
src/app/(pages)/logout/LogoutPage/index.tsx:19
↓ 1 callersFunctionserialize
(children?: Children)
src/app/_components/RichText/serialize.tsx:24
↓ 1 callersFunctionstart
()
src/server.default.ts:25
↓ 1 callersFunctionstart
()
src/server.ts:18
↓ 1 callersFunctionsyncCartFromLocalStorage
()
src/app/_providers/Cart/index.tsx:70
↓ 1 callersFunctionsyncCartToPayload
()
src/app/_providers/Cart/index.tsx:158
↓ 1 callersFunctionthemeIsValid
(string: string | null)
src/app/_providers/Theme/types.ts:8
↓ 1 callersFunctiontoKebabCase
(string: string)
src/app/_utilities/toKebabCase.ts:1
FunctionAccount
()
src/app/(pages)/account/page.tsx:9
FunctionAccountForm
()
src/app/(pages)/account/AccountForm/index.tsx:21
FunctionAddToCartButton
src/app/_components/AddToCartButton/index.tsx:17
FunctionAdminBar
src/app/_components/AdminBar/index.tsx:16
FunctionArchiveBlock
src/app/_blocks/ArchiveBlock/index.tsx:14
FunctionAuthProvider
({ children })
src/app/_providers/Auth/index.tsx:35
FunctionBackgroundColor
src/app/_components/BackgroundColor/index.tsx:12
FunctionBeforeDashboard
()
src/payload/components/BeforeDashboard/index.tsx:11
FunctionBeforeLogin
()
src/payload/components/BeforeLogin/index.tsx:3
FunctionBlocks
src/app/_components/Blocks/index.tsx:25
FunctionButton
({ el: elFromProps = 'link', label, newTab, href, appearance, className: classNameFromProps, onC
src/app/_components/Button/index.tsx:22
FunctionButtonsPage
()
src/app/(pages)/styleguide/buttons/page.tsx:11
FunctionCMSLink
({ type, url, newTab, reference, label, appearance, children, className, invert, })
src/app/_components/Link/index.tsx:22
FunctionCallToActionBlock
({ links, richText, invertBackground })
src/app/_blocks/CallToAction/index.tsx:17
FunctionCallToActionPage
()
src/app/(pages)/styleguide/call-to-action/page.tsx:10
FunctionCard
src/app/_components/Card/index.tsx:44
FunctionCart
()
src/app/(pages)/cart/page.tsx:22
FunctionCartItem
({ product, title, metaImage, qty, addItemToCart })
src/app/(pages)/cart/CartItem/index.tsx:13
FunctionCartLink
src/app/_components/CartLink/index.tsx:12
FunctionCartPage
src/app/(pages)/cart/CartPage/index.tsx:22
FunctionCartProvider
src/app/_providers/Cart/index.tsx:44
FunctionCategories
({ categories }: { categories: Category[] })
src/app/_components/Categories/index.tsx:9
FunctionCategoryCard
({ category }: CategoryCardProps)
src/app/_components/Categories/CategoryCard/index.tsx:14
FunctionCheckbox
({ label, value, isSelected, onClickHandler })
src/app/_components/Checkbox/index.tsx:12
FunctionCheckout
()
src/app/(pages)/checkout/page.tsx:15
FunctionCheckoutForm
()
src/app/(pages)/checkout/CheckoutForm/index.tsx:15
FunctionCheckoutItem
({ product, title, metaImage, quantity, index })
src/app/(pages)/checkout/CheckoutItem/index.tsx:8
FunctionCheckoutPage
src/app/(pages)/checkout/CheckoutPage/index.tsx:26
FunctionChevron
({ className, rotate })
src/app/_components/Chevron/index.tsx:6
FunctionChevron
()
src/app/_components/icons/Chevron/index.tsx:3
FunctionCollectionArchive
src/app/_components/CollectionArchive/index.tsx:38
FunctionContentBlock
src/app/_blocks/Content/index.tsx:16
FunctionContentBlockPage
()
src/app/(pages)/styleguide/content-block/page.tsx:10
FunctionCreateAccount
()
src/app/(pages)/create-account/page.tsx:14
FunctionCreateAccountForm
()
src/app/(pages)/create-account/CreateAccountForm/index.tsx:22
FunctionCustomHero
({ richText, media, links })
src/app/_heros/CustomHero/index.tsx:11
FunctionCustomerSelect
src/payload/collections/Users/ui/CustomerSelect.tsx:6
FunctionFilterProvider
({ children }: { children: React.ReactNode })
src/app/_providers/Filter/index.tsx:21
FunctionFilters
({ categories }: { categories: Category[] })
src/app/(pages)/products/Filters/index.tsx:13
FunctionFooter
()
src/app/_components/Footer/index.tsx:8
FunctionFooterComponent
({ footer }: { footer: Footer })
src/app/_components/Footer/FooterComponent/index.tsx:15
FunctionGET
(request: NextRequest)
src/app/api/revalidate/route.ts:5
FunctionGET
( req: Request & { cookies: { get: (name: string) => { value: string } } }, )
src/app/api/preview/route.ts:6
FunctionGET
()
src/app/api/exit-preview/route.ts:3
FunctionHR
src/app/_components/HR/index.tsx:7
FunctionHeader
()
src/app/_components/Header/index.tsx:12
FunctionHeaderComponent
({ header }: { header: Header })
src/app/_components/Header/HeaderComponent/index.tsx:15
FunctionHeaderNav
({ header })
src/app/_components/Header/Nav/index.tsx:14
FunctionHero
src/app/_components/Hero/index.tsx:16
FunctionHighImpactHero
({ richText, media, links })
src/app/_heros/HighImpact/index.tsx:11
FunctionIcon
()
src/payload/fields/richText/largeBody/Icon/index.tsx:5
FunctionIcon
()
src/payload/fields/richText/label/Icon/index.tsx:5
FunctionImage
src/app/_components/Media/Image/index.tsx:13
FunctionInitTheme
()
src/app/_providers/Theme/InitTheme/index.tsx:5
FunctionInput
({ name, label, required, register, error, type = 'text', validate, disabled, })
src/app/_components/Input/index.tsx:17
FunctionLabel
({ children })
src/app/_components/Label/index.tsx:5
FunctionLabelElement
({ attributes, children })
src/payload/fields/richText/label/Element/index.tsx:11
next →1–100 of 208, ranked by callers