MCPcopy Create free account

hub / github.com/Shopify/hydrogen-demo-store / functions

Functions245 in github.com/Shopify/hydrogen-demo-store

↓ 24 callersMethodget
()
app/lib/session.server.ts:45
↓ 13 callersFunctiongetInputStyleClasses
(isError?: string | null)
app/lib/utils.ts:229
↓ 11 callersMethodset
()
app/lib/session.server.ts:58
↓ 10 callersFunctiontruncate
* Truncate a string to a given length, adding an ellipsis if it was truncated * @param str - The string to truncate * @param num - The maximum lengt
app/lib/seo.server.ts:486
↓ 9 callersFunctionmissingClass
(string?: string, prefix?: string)
app/lib/utils.ts:34
↓ 5 callersFunctiongetImageLoadingPriority
( index: number, maxEagerLoadCount = DEFAULT_GRID_IMG_LOAD_EAGER_COUNT, )
app/lib/const.ts:5
↓ 4 callersFunctiondoLogout
(context: AppLoadContext)
app/routes/($locale).account_.logout.ts:9
↓ 4 callersFunctionnormalizePrice
(price: string | null)
tests/utils.ts:20
↓ 4 callersFunctionusePrefixPathWithLocale
(path: string)
app/lib/utils.ts:272
↓ 3 callersFunctionformatPrice
( price: string | number, currency = 'USD', locale = 'en-US', )
tests/utils.ts:4
↓ 3 callersFunctiongetFeaturedData
( storefront: LoaderFunctionArgs['context']['storefront'], variables: {pageBy?: number} = {}, )
app/routes/($locale).featured-products.tsx:13
↓ 3 callersMethodhas
()
app/lib/session.server.ts:41
↓ 2 callersFunctionfilterInputToParams
( rawInput: string | ProductFilter, params: URLSearchParams, )
app/components/SortFilter.tsx:293
↓ 2 callersFunctionformDataHas
(formData: FormData, key: string)
app/routes/($locale).account.edit.tsx:39
↓ 2 callersFunctionformatText
(input?: string | React.ReactNode)
app/lib/utils.ts:43
↓ 2 callersFunctiongetExcerpt
(text: string)
app/lib/utils.ts:58
↓ 2 callersFunctionisDiscounted
(price: MoneyV2, compareAtPrice: MoneyV2)
app/lib/utils.ts:71
↓ 2 callersFunctionparseAsCurrency
(value: number, locale: I18nLocale)
app/lib/utils.ts:289
↓ 2 callersFunctionparseMenu
( menu: MenuFragment, primaryDomain: string, env: Env, customPrefixes = {}, )
app/lib/utils.ts:204
↓ 2 callersFunctionstatusMessage
(status: FulfillmentStatus)
app/lib/utils.ts:235
↓ 2 callersFunctionuseDrawer
(openDefault = false)
app/components/Drawer.tsx:100
↓ 2 callersFunctionuseIsHomePath
()
app/lib/utils.ts:281
↓ 1 callersFunctionaddLinksToStackTrace
(stackTrace: string)
app/components/GenericError.tsx:49
↓ 1 callersFunctioncollectionJsonLd
({ url, collection, }: { url: Request['url']; collection: CollectionRequiredFields; })
app/lib/seo.server.ts:197
↓ 1 callersFunctioncollectionsJsonLd
({ url, collections, }: { url: Request['url']; collections: CollectionListRequiredFields; })
app/lib/seo.server.ts:278
↓ 1 callersMethodcommit
()
app/lib/session.server.ts:67
↓ 1 callersFunctionfilterMarkup
(filter: Filter, option: Filter['values'][0])
app/components/SortFilter.tsx:83
↓ 1 callersFunctiongetAppliedFilterLink
( filter: AppliedFilter, params: URLSearchParams, location: Location, )
app/components/SortFilter.tsx:179
↓ 1 callersFunctiongetCountryUrlPath
({ countryLocale, defaultLocalePrefix, pathWithoutLocale, }: { countryLocale: Locale; pathWithoutLoc
app/components/CountrySelector.tsx:165
↓ 1 callersFunctiongetFilterLink
( rawInput: string | ProductFilter, params: URLSearchParams, location: ReturnType<typeof useLocation>, )
app/components/SortFilter.tsx:205
↓ 1 callersFunctiongetHeroPlaceholder
(heros: any[])
app/lib/placeholders.ts:195
↓ 1 callersFunctiongetLayoutData
({storefront, env}: AppLoadContext)
app/root.tsx:276
↓ 1 callersFunctiongetLocaleFromRequest
(request: Request)
app/lib/utils.ts:256
↓ 1 callersFunctiongetMultipleRandom
(arr: any[], infos: number)
app/lib/placeholders.ts:236
↓ 1 callersFunctiongetNoResultRecommendations
( storefront: LoaderFunctionArgs['context']['storefront'], )
app/routes/($locale).search.tsx:190
↓ 1 callersFunctiongetProductPlaceholder
()
app/lib/placeholders.ts:243
↓ 1 callersFunctiongetRecommendedProducts
( storefront: Storefront, productId: string, )
app/routes/($locale).products.$productHandle.tsx:615
↓ 1 callersFunctiongetSiteMapLinks
(resource: string, count: number, baseUrl: string)
app/lib/sitemap.ts:151
↓ 1 callersFunctiongetSitemap
(options: GetSiteMapOptions)
app/lib/sitemap.ts:95
↓ 1 callersFunctiongetSitemapIndex
({ storefront, request, types = ['products', 'pages', 'collections', 'metaObjects', 'articles'], custo
app/lib/sitemap.ts:28
↓ 1 callersFunctiongetSortLink
( sort: SortParam, params: URLSearchParams, location: Location, )
app/components/SortFilter.tsx:194
↓ 1 callersFunctiongetSortValuesFromParam
(sortParam: SortParam | null)
app/routes/($locale).collections.$collectionHandle.tsx:329
↓ 1 callersFunctionhandleRequest
( request: Request, responseStatusCode: number, responseHeaders: Headers, remixContext: EntryContext,
app/entry.server.tsx:7
↓ 1 callersMethodinit
(request: Request, secrets: string[])
app/lib/session.server.ts:23
↓ 1 callersFunctionisLocalPath
(url: string)
app/lib/utils.ts:301
↓ 1 callersFunctionisNewArrival
(date: string, daysOld = 30)
app/lib/utils.ts:64
↓ 1 callersFunctionloadCriticalData
* Load data necessary for rendering content above the fold. This is the critical data * needed to render the page. If it's unavailable, the whole pag
app/root.tsx:98
↓ 1 callersFunctionloadCriticalData
* Load data necessary for rendering content above the fold. This is the critical data * needed to render the page. If it's unavailable, the whole pag
app/routes/($locale).products.$productHandle.tsx:62
↓ 1 callersFunctionloadCriticalData
* Load data necessary for rendering content above the fold. This is the critical data * needed to render the page. If it's unavailable, the whole pag
app/routes/($locale)._index.tsx:46
↓ 1 callersFunctionloadDeferredData
* Load data for rendering content below the fold. This data is deferred and will be * fetched after the initial page load. If it's unavailable, the p
app/root.tsx:129
↓ 1 callersFunctionloadDeferredData
* Load data for rendering content below the fold. This data is deferred and will be * fetched after the initial page load. If it's unavailable, the p
app/routes/($locale).products.$productHandle.tsx:113
↓ 1 callersFunctionloadDeferredData
* Load data for rendering content below the fold. This data is deferred and will be * fetched after the initial page load. If it's unavailable, the p
app/routes/($locale)._index.tsx:66
↓ 1 callersFunctionparseItem
(primaryDomain: string, env: Env, customPrefixes = {})
app/lib/utils.ts:149
↓ 1 callersFunctionproductJsonLd
({ product, selectedVariant, url, }: { product: ProductRequiredFields; selectedVariant: SelectedVari
app/lib/seo.server.ts:98
↓ 1 callersFunctionrenderAlternateTag
(url: string, locale: string)
app/lib/sitemap.ts:206
↓ 1 callersFunctionrenderUrlTag
({ url, updatedAt, locales, type, getLink, baseUrl, handle, getChangeFreq, metaobjectType, }
app/lib/sitemap.ts:160
↓ 1 callersFunctionresolveToFromType
( { customPrefixes, pathname, type, }: { customPrefixes: Record<string, string>; pathn
app/lib/utils.ts:78
↓ 1 callersFunctionrobotsTxtData
({url}: {url: string})
app/routes/[robots.txt].tsx:16
↓ 1 callersFunctionuseCartFetchers
(actionName: string)
app/hooks/useCartFetchers.tsx:4
↓ 1 callersFunctionuseIsHydrated
()
app/hooks/useIsHydrated.tsx:4
FunctionAccount
({customer, heading, featuredDataPromise}: AccountType)
app/routes/($locale).account.tsx:106
FunctionAccountAddressBook
({ customer, addresses, }: { customer: CustomerDetailsFragment; addresses: CustomerAddress[]; })
app/components/AccountAddressBook.tsx:9
FunctionAccountDetails
({ customer, }: { customer: CustomerDetailsFragment; })
app/components/AccountDetails.tsx:4
FunctionAccountDetailsEdit
()
app/routes/($locale).account.edit.tsx:104
FunctionAccountLink
({className}: {className?: string})
app/components/PageLayout.tsx:324
FunctionAccountOrderHistory
({orders}: OrderCardsProps)
app/routes/($locale).account.tsx:148
FunctionAddToCartButton
({ children, lines, className = '', variant = 'primary', width = 'full', disabled, ...props }: {
app/components/AddToCartButton.tsx:6
FunctionAddress
({ address, defaultAddress, }: { address: CustomerAddress; defaultAddress?: boolean; })
app/components/AccountAddressBook.tsx:53
FunctionAllProducts
()
app/routes/($locale).products._index.tsx:70
FunctionApp
()
app/root.tsx:181
FunctionAppliedFilters
({filters = []}: {filters: AppliedFilter[]})
app/components/SortFilter.tsx:151
FunctionArticle
()
app/routes/($locale).journal.$journalHandle.tsx:59
FunctionArticleCard
({ blogHandle, article, loading, }: { blogHandle: string; article: ArticleFragment; loading?: HTML
app/routes/($locale).journal._index.tsx:81
FunctionAuthenticated
()
app/routes/($locale).account.tsx:71
FunctionBadge
({ openCart, dark, count, }: { count: number; dark: boolean; openCart: () => void; })
app/components/PageLayout.tsx:364
FunctionCart
({ layout, onClose, cart, }: { layout: Layouts; onClose?: () => void; cart: CartReturn | null; })
app/components/Cart.tsx:29
FunctionCartCheckoutActions
({checkoutUrl}: {checkoutUrl: string})
app/components/Cart.tsx:186
FunctionCartCount
({ isHome, openCart, }: { isHome: boolean; openCart: () => void; })
app/components/PageLayout.tsx:339
FunctionCartDetails
({ layout, cart, }: { layout: Layouts; cart: CartType | null; })
app/components/Cart.tsx:48
FunctionCartDiscounts
* Temporary discount UI * @param discountCodes the current discount codes applied to the cart * @todo rework when a design is ready
app/components/Cart.tsx:80
FunctionCartDrawer
({isOpen, onClose}: {isOpen: boolean; onClose: () => void})
app/components/PageLayout.tsx:107
FunctionCartEmpty
({ hidden = false, layout = 'drawer', onClose, }: { hidden: boolean; layout?: Layouts; onClose?: (
app/components/Cart.tsx:429
FunctionCartLineItem
({line}: {line: CartLine})
app/components/Cart.tsx:242
FunctionCartLinePrice
({ line, priceType = 'regular', ...passthroughProps }: { line: CartLine; priceType?: 'regular' | 'co
app/components/Cart.tsx:406
FunctionCartLineQuantityAdjust
({line}: {line: CartLine})
app/components/Cart.tsx:329
FunctionCartLines
({ layout = 'drawer', lines: cartLines, }: { layout: Layouts; lines: CartType['lines'] | undefined; })
app/components/Cart.tsx:153
FunctionCartLoading
()
app/components/CartLoading.tsx:1
FunctionCartRoute
()
app/routes/($locale).cart.tsx:85
FunctionCartSummary
({ cost, layout, children = null, }: { children?: React.ReactNode; cost: CartCost; layout: Layouts
app/components/Cart.tsx:201
FunctionChangeLocaleForm
({ children, buyerIdentity, redirectTo, }: { children: React.ReactNode; buyerIdentity: CartBuyerIden
app/components/CountrySelector.tsx:140
FunctionCollection
()
app/routes/($locale).collections.$collectionHandle.tsx:144
FunctionCollectionCard
({ collection, loading, }: { collection: Collection; loading?: HTMLImageElement['loading']; })
app/routes/($locale).collections._index.tsx:92
FunctionCollections
()
app/routes/($locale).collections._index.tsx:52
FunctionCompareAtPrice
({ data, className, }: { data: MoneyV2; className?: string; })
app/components/ProductCard.tsx:123
FunctionComponent
()
app/routes/$.tsx:5
FunctionComponent
()
app/routes/($locale).cart.$lines.tsx:67
FunctionCountriesApiRoute
()
app/routes/($locale).api.countries.tsx:20
FunctionCountry
({ closeDropdown, countryLocale, countryUrlPath, isSelected, }: { closeDropdown: () => void; count
app/components/CountrySelector.tsx:100
FunctionCountrySelector
()
app/components/CountrySelector.tsx:15
FunctionDesktopHeader
({ isHome, menu, openCart, title, }: { isHome: boolean; openCart: () => void; menu?: EnhancedMen
app/components/PageLayout.tsx:248
next →1–100 of 245, ranked by callers