MCPcopy Create free account

hub / github.com/adrianhajdin/pricewise / functions

Functions32 in github.com/adrianhajdin/pricewise

↓ 6 callersFunctionformatNumber
(num: number = 0)
lib/utils.ts:113
↓ 5 callersFunctionconnectToDB
()
lib/mongoose.ts:5
↓ 3 callersFunctiongetLowestPrice
(priceList: PriceHistoryItem[])
lib/utils.ts:75
↓ 2 callersFunctionextractPrice
(...elements: any)
lib/utils.ts:13
↓ 2 callersFunctiongenerateEmailBody
( product: EmailProductInfo, type: NotificationType )
lib/nodemailer/index.ts:13
↓ 2 callersFunctiongetAveragePrice
(priceList: PriceHistoryItem[])
lib/utils.ts:87
↓ 2 callersFunctiongetHighestPrice
(priceList: PriceHistoryItem[])
lib/utils.ts:63
↓ 2 callersFunctionscrapeAmazonProduct
(url: string)
lib/scraper/index.ts:7
↓ 2 callersFunctionsendEmail
(emailContent: EmailContent, sendTo: string[])
lib/nodemailer/index.ts:94
↓ 1 callersFunctionaddUserEmailToProduct
(productId: string, userEmail: string)
lib/actions/index.ts:96
↓ 1 callersFunctioncloseModal
()
components/Modal.tsx:30
↓ 1 callersFunctionextractCurrency
(element: any)
lib/utils.ts:34
↓ 1 callersFunctionextractDescription
($: any)
lib/utils.ts:40
↓ 1 callersFunctiongetAllProducts
()
lib/actions/index.ts:66
↓ 1 callersFunctiongetEmailNotifType
( scrapedProduct: Product, currentProduct: Product )
lib/utils.ts:94
↓ 1 callersFunctiongetProductById
(productId: string)
lib/actions/index.ts:52
↓ 1 callersFunctiongetSimilarProducts
(productId: string)
lib/actions/index.ts:78
↓ 1 callersFunctionisValidAmazonProductURL
(url: string)
components/Searchbar.tsx:6
↓ 1 callersFunctionscrapeAndStoreProduct
(productUrl: string)
lib/actions/index.ts:11
FunctionGET
(request: Request)
app/api/cron/route.ts:13
FunctionHeroCarousel
()
components/HeroCarousel.tsx:15
FunctionHome
()
app/page.tsx:7
FunctionModal
({ productId }: Props)
components/Modal.tsx:12
FunctionNavbar
()
components/Navbar.tsx:10
FunctionPriceInfoCard
({ title, iconSrc, value }: Props)
components/PriceInfoCard.tsx:9
FunctionProductCard
({ product }: Props)
components/ProductCard.tsx:10
FunctionProductDetails
({ params: { id } }: Props)
app/products/[id]/page.tsx:15
FunctionRootLayout
({ children, }: { children: React.ReactNode })
app/layout.tsx:17
FunctionSearchbar
()
components/Searchbar.tsx:25
FunctionhandleSubmit
(e: FormEvent<HTMLFormElement>)
components/Modal.tsx:17
FunctionhandleSubmit
(event: FormEvent<HTMLFormElement>)
components/Searchbar.tsx:29
FunctionopenModal
()
components/Modal.tsx:28