MCPcopy Create free account

hub / github.com/Manish-Tamang/newsletter-app / functions

Functions264 in github.com/Manish-Tamang/newsletter-app

↓ 223 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 27 callersFunctiontoast
({ ...props }: Toast)
hooks/use-toast.ts:145
↓ 9 callersFunctionexec
(command: string, value?: string)
components/newsletter-editor/EditorToolbar.tsx:11
↓ 6 callersFunctiongetNewsletterBlocksHtml
(storageKey: string = EMAIL_STORAGE_KEYS.campaignBlocks)
lib/email-content.ts:24
↓ 6 callersFunctionuseToast
()
hooks/use-toast.ts:174
↓ 5 callersFunctiondispatch
(action: Action)
components/ui/use-toast.ts:136
↓ 5 callersFunctiondispatch
(action: Action)
hooks/use-toast.ts:136
↓ 5 callersMethodisValidEmail
* Validate email address
lib/resend.ts:366
↓ 5 callersFunctionisValidEmailHtml
(html: string | null | undefined)
lib/email-content.ts:10
↓ 5 callersFunctiononChange
()
components/ui/use-mobile.tsx:10
↓ 5 callersFunctiontoast
({ ...props }: Toast)
components/ui/use-toast.ts:145
↓ 4 callersFunctionblocksToHtml
(blocks: NewsletterBlock[])
components/newsletter-editor/types.ts:197
↓ 4 callersFunctionstripHeavyContent
(html: string)
components/newsletter-editor/types.ts:224
↓ 4 callersFunctionstripInlineImageData
(html: string)
lib/email-content.ts:17
↓ 4 callersFunctionuseCarousel
()
components/ui/carousel.tsx:35
↓ 4 callersFunctionuseFormField
()
components/ui/form.tsx:44
↓ 4 callersFunctionuseSidebar
()
components/ui/sidebar.tsx:41
↓ 4 callersFunctionuseSubscribers
()
hooks/use-subscribers.ts:16
↓ 4 callersFunctionuseTemplates
()
hooks/use-templates.ts:47
↓ 3 callersMethodcheckApiStatus
* Check if the Resend API is properly configured and accessible
lib/resend.ts:374
↓ 3 callersFunctionfetchContacts
()
hooks/use-subscribers.ts:22
↓ 3 callersFunctiongetPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
components/ui/chart.tsx:320
↓ 3 callersFunctiongetPreviewContent
()
components/template-editor.tsx:128
↓ 3 callersFunctionloadSavedDesign
(storageKey: string)
lib/email-editor-storage.ts:20
↓ 3 callersMethodsendEmail
* Send a single email
lib/resend.ts:64
↓ 3 callersFunctionuseCampaigns
()
hooks/use-campaigns.ts:28
↓ 3 callersFunctionuseToast
()
components/ui/use-toast.ts:174
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
components/ui/use-toast.ts:61
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
hooks/use-toast.ts:61
↓ 2 callersFunctionautoOptimizeScreenshot
( screenshot: ScreenshotData, config: Partial<typeof DEFAULT_SCREENSHOT_CONFIG> = {} )
lib/screenshot.ts:409
↓ 2 callersFunctioncaptureEmailPreviewScreenshot
( emailContent: string, options: Partial<ScreenshotCaptureOptions> = {} )
lib/screenshot.ts:200
↓ 2 callersFunctioncaptureTemplateScreenshot
( element: HTMLElement, options: Partial<ScreenshotCaptureOptions> = {} )
lib/screenshot.ts:131
↓ 2 callersFunctiondeleteTemplate
(id: string)
hooks/use-templates.ts:151
↓ 2 callersFunctionfetchAudiences
()
hooks/use-subscribers.ts:43
↓ 2 callersFunctiongenerateBlockId
()
components/newsletter-editor/types.ts:193
↓ 2 callersFunctiongetContactName
(contact: Contact)
components/subscribers-table.tsx:26
↓ 2 callersFunctiongetPreviewContent
()
components/template-preview-editor.tsx:90
↓ 2 callersFunctiongetTemplate
(id: string)
hooks/use-templates.ts:183
↓ 2 callersFunctionhandleFile
(_file: File)
components/newsletter-editor/blocks/ImageBlock.tsx:16
↓ 2 callersFunctionhandleLinkChange
(platform: string, enabled: boolean, url: string)
components/newsletter-editor/blocks/SocialsBlock.tsx:27
↓ 2 callersFunctionhandleLogoUpload
(file: File)
components/newsletter-editor/blocks/HeaderBlock.tsx:39
↓ 2 callersFunctionloadDraftFromStorage
( storageKey: string )
lib/email-content.ts:75
↓ 2 callersFunctionresizeImageToFit
* Resizes an image to fit within maximum dimensions while maintaining aspect ratio
lib/screenshot.ts:13
↓ 2 callersFunctionresolveContentForSend
()
app/campaigns/new/page.tsx:43
↓ 2 callersFunctionsaveDraftToStorage
( storageKey: string, data: Record<string, unknown> )
lib/email-content.ts:60
↓ 2 callersFunctionscreenshotToDataUrl
(screenshot: ScreenshotData)
lib/screenshot.ts:344
↓ 2 callersFunctionupdateTemplate
(id: string, templateData: UpdateTemplateData)
hooks/use-templates.ts:113
↓ 2 callersFunctionuseChart
()
components/ui/chart.tsx:27
↓ 2 callersFunctionvalidateScreenshot
( screenshot: ScreenshotData, config: Partial<typeof DEFAULT_SCREENSHOT_CONFIG> = {} )
lib/screenshot.ts:286
↓ 1 callersFunctionaddContact
(email: string, firstName?: string, lastName?: string)
hooks/use-subscribers.ts:64
↓ 1 callersMethodaddContact
* Add a new contact to Resend
lib/resend.ts:280
↓ 1 callersFunctioncheckApiStatus
()
app/settings/page.tsx:26
↓ 1 callersFunctioncompressScreenshot
( screenshot: ScreenshotData, quality: number = 0.8 )
lib/screenshot.ts:354
↓ 1 callersFunctioncreateCampaign
(campaignData: CreateCampaignData)
hooks/use-campaigns.ts:56
↓ 1 callersFunctioncreateCorsSafeContent
* Creates a simplified version of HTML content without external images for CORS-safe screenshot capture
lib/screenshot.ts:93
↓ 1 callersFunctioncreateTemplate
(templateData: CreateTemplateData)
hooks/use-templates.ts:75
↓ 1 callersFunctiondeleteCampaign
(id: number)
hooks/use-campaigns.ts:132
↓ 1 callersFunctiondeleteContact
(contactId: string)
hooks/use-subscribers.ts:99
↓ 1 callersMethoddeleteContact
* Delete a contact from Resend
lib/resend.ts:326
↓ 1 callersFunctiondismiss
()
components/ui/use-toast.ts:153
↓ 1 callersFunctiondismiss
()
hooks/use-toast.ts:153
↓ 1 callersFunctionfetchCampaigns
()
hooks/use-campaigns.ts:34
↓ 1 callersFunctionfetchTemplate
()
app/templates/[id]/page.tsx:32
↓ 1 callersFunctionfetchTemplate
()
app/templates/[id]/edit/page.tsx:26
↓ 1 callersFunctionfetchTemplates
()
hooks/use-templates.ts:53
↓ 1 callersFunctionformatHtml
(html: string)
components/html-code-editor.tsx:25
↓ 1 callersFunctiongenId
()
components/ui/use-toast.ts:30
↓ 1 callersFunctiongenId
()
hooks/use-toast.ts:30
↓ 1 callersFunctiongetApiStatusBadge
()
app/settings/page.tsx:66
↓ 1 callersFunctiongetAudienceStats
(audienceId: string)
app/subscribers/lists/page.tsx:17
↓ 1 callersMethodgetAudiences
* Get all audiences from Resend
lib/resend.ts:242
↓ 1 callersMethodgetContacts
* Get all contacts from Resend
lib/resend.ts:186
↓ 1 callersFunctiongetStatusBadge
(contact: Contact)
components/subscribers-table.tsx:33
↓ 1 callersFunctiongetStatusBadge
(status: string)
app/campaigns/page.tsx:32
↓ 1 callersFunctionhandleApplyUrl
()
components/newsletter-editor/blocks/ImageBlock.tsx:12
↓ 1 callersFunctionhandleEdit
(template: Template)
app/templates/page.tsx:25
↓ 1 callersFunctionhandleUseTemplate
(template: Template)
app/templates/page.tsx:39
↓ 1 callersFunctionisRateLimited
(ip: string)
app/api/proxy-image/route.ts:6
↓ 1 callersFunctionloadEmailEditor
()
hooks/use-email-editor.ts:10
↓ 1 callersFunctionreducer
(state: State, action: Action)
components/ui/use-toast.ts:77
↓ 1 callersFunctionreducer
(state: State, action: Action)
hooks/use-toast.ts:77
↓ 1 callersFunctionrenderBlock
()
components/newsletter-editor/BlockRenderer.tsx:50
↓ 1 callersFunctionrenderPaginationItems
()
app/subscribers/page.tsx:58
↓ 1 callersFunctionresolveContent
()
components/template-preview-editor.tsx:35
↓ 1 callersFunctionresolveContent
()
components/template-editor.tsx:83
↓ 1 callersFunctionresolveEmailHtml
(options: { content: string rawHtml: string useRawHtml: boolean blocksStorageKey?: string })
lib/email-content.ts:40
↓ 1 callersFunctionsendCampaign
(campaignData: CampaignData)
hooks/use-email.ts:101
↓ 1 callersMethodsendCampaign
* Send a campaign to multiple subscribers
lib/resend.ts:106
↓ 1 callersFunctionsendTestEmail
(to: string, subject: string, content: string)
hooks/use-email.ts:64
↓ 1 callersMethodsendTestEmail
* Send a test email
lib/resend.ts:154
↓ 1 callersMethodtransformAudienceData
* Transform raw audience data from Resend API to our Audience interface
lib/resend.ts:230
↓ 1 callersMethodtransformContactData
* Transform raw contact data from Resend API to our Contact interface
lib/resend.ts:170
↓ 1 callersFunctiontriggerUpload
()
components/newsletter-editor/blocks/ImageBlock.tsx:53
↓ 1 callersFunctionuseCampaignContent
()
hooks/use-campaign-content.ts:12
↓ 1 callersFunctionuseDashboardMetrics
()
hooks/use-dashboard-metrics.ts:7
↓ 1 callersFunctionuseEmail
()
hooks/use-email.ts:28
↓ 1 callersFunctionuseEmailEditor
()
hooks/use-email-editor.ts:5
↓ 1 callersFunctionuseIsMobile
()
components/ui/use-mobile.tsx:5
FunctionAddBlockMenu
({ onAdd, alwaysVisible }: AddBlockMenuProps)
components/newsletter-editor/AddBlockMenu.tsx:25
FunctionAddSubscriberDialog
({ isOpen, onOpenChange, onAddSubscriber, isLoading = false }: AddSubscriberDialogProps)
components/add-subscriber-dialog.tsx:26
next →1–100 of 264, ranked by callers