MCPcopy Create free account

hub / github.com/SamuelZ12/longcut / functions

Functions698 in github.com/SamuelZ12/longcut

FunctionhandleBackgroundClick
(e: React.MouseEvent<HTMLDivElement>)
components/video-progress-bar.tsx:47
FunctionhandleCitationClick
(citation: Citation)
app/analyze/[videoId]/page.tsx:1091
FunctionhandleClick
()
components/topic-card.tsx:67
FunctionhandleCopyLink
()
components/auth-modal.tsx:35
FunctionhandleExplain
(event: Event)
components/ai-chat.tsx:1009
FunctionhandleExplainFromSelection
()
app/analyze/[videoId]/page.tsx:1683
FunctionhandleGoogleSignIn
()
components/auth-modal.tsx:109
FunctionhandleKeyDown
(e: React.KeyboardEvent)
components/note-editor.tsx:106
FunctionhandleKeyDown
(e: React.KeyboardEvent)
components/ai-chat.tsx:1090
FunctionhandleKeyUp
(event: KeyboardEvent)
components/selection-actions.tsx:124
FunctionhandleMouseUp
()
components/selection-actions.tsx:120
FunctionhandleOutsideClick
(e: MouseEvent)
components/language-selector.tsx:219
FunctionhandlePortal
()
app/pricing/pricing-content.tsx:112
FunctionhandleScroll
()
components/selection-actions.tsx:129
FunctionhandleScrollLeft
()
components/theme-selector.tsx:234
FunctionhandleScrollRight
()
components/theme-selector.tsx:245
FunctionhandleSeek
(time: number)
components/youtube-player.tsx:553
FunctionhandleSignIn
()
components/auth-modal.tsx:78
FunctionhandleSignUp
()
components/auth-modal.tsx:40
FunctionhandleSubmit
(event: FormEvent<HTMLFormElement>)
components/theme-selector.tsx:192
FunctionhandleSubmit
(e: React.FormEvent)
components/url-input-with-branding.tsx:39
FunctionhandleSubmit
(e: React.FormEvent)
components/url-input.tsx:53
FunctionhandleTimestampClick
(seconds: number)
components/chat-message.tsx:141
FunctionhandleTimestampClick
(seconds: number, _endSeconds?: number, isCitation: boolean = false, _citationText?: string, isWithinHighlight
app/analyze/[videoId]/page.tsx:1108
FunctionhandleToggleFavorite
()
components/video-header.tsx:29
FunctionhandleTopup
()
app/pricing/pricing-content.tsx:95
FunctionhandleUpdatePassword
()
app/settings/settings-form.tsx:401
FunctionhandleUpdateProfile
()
app/settings/settings-form.tsx:376
FunctionhandleVisibility
()
lib/hooks/use-subscription.ts:72
Functionhandler
(req: NextRequest)
app/api/check-video-cache/route.ts:8
Functionhandler
* Endpoint to get a CSRF token for authenticated sessions
app/api/csrf-token/route.ts:12
Functionhandler
(request: NextRequest)
app/api/transcript/route.ts:30
Functionhandler
(request: NextRequest)
app/api/video-info/route.ts:7
Functionhandler
(request: NextRequest)
app/api/quick-preview/route.ts:37
Functionhandler
(req: NextRequest)
app/api/generate-image/route.ts:169
Functionhandler
(req: NextRequest)
app/api/toggle-favorite/route.ts:8
Functionhandler
* GET /api/subscription/status * * Returns the current user's subscription status, usage statistics, and limits * * Response: * { * tier: 'fre
app/api/subscription/status/route.ts:29
Functionhandler
(req: NextRequest)
app/api/notes/route.ts:40
Functionhandler
(req: NextRequest)
app/api/notes/all/route.ts:47
Functionhandler
(req: NextRequest)
app/api/notes/enhance/route.ts:73
Functionhandler
(request: NextRequest)
app/api/generate-topics/route.ts:10
Functionhandler
(req: NextRequest)
app/api/update-video-analysis/route.ts:10
Functionhandler
(req: NextRequest)
app/api/link-video/route.ts:6
Functionhandler
(request: NextRequest)
app/api/translate/route.ts:24
Functionhandler
* GET /api/check-limit * * Checks if a user can generate a video based on their subscription tier and usage * * Response: * { * canGenerate: b
app/api/check-limit/route.ts:29
Functionhandler
()
app/api/random-video/route.ts:82
Functionhandler
* Verifies and creates a user_videos link if missing. * * This is a fallback mechanism for when the initial save in /api/video-analysis * fails but
app/api/verify-video-link/route.ts:13
Functionhandler
* POST /api/stripe/create-portal-session * * Creates a Stripe Customer Portal session for managing subscription * Users can update payment methods,
app/api/stripe/create-portal-session/route.ts:18
Functionhandler
* POST /api/stripe/create-checkout-session * * Creates a Stripe Checkout session for Pro subscription or Top-Up credits purchase * * Request body:
app/api/stripe/create-checkout-session/route.ts:35
Functionhandler
(req: NextRequest)
app/api/stripe/confirm-checkout/route.ts:16
Functionhandler
()
app/api/image-limit/route.ts:11
Functionhandler
(request: NextRequest)
app/api/top-quotes/route.ts:48
Functionhandler
(req: NextRequest)
app/api/webhooks/stripe/route.ts:16
Functionhandler
(request: NextRequest)
app/api/suggested-questions/route.ts:19
Functionhandler
(request: NextRequest)
app/api/generate-summary/route.ts:225
Functionhandler
(req: NextRequest)
app/api/video-analysis/route.ts:81
FunctionhasProSubscription
(userId: string)
lib/subscription-manager.ts:585
FunctionisTimestamp
(text: string)
lib/timestamp-utils.ts:78
FunctionisTranscriptEnglish
( transcript: unknown, options?: TranscriptLanguageOptions )
lib/transcript-language.ts:116
FunctionlistAvailableAIProviders
()
lib/ai-client.ts:75
MethodlogFailedAuth
* Logs a failed authentication attempt
lib/audit-logger.ts:118
MethodlogValidationFailure
* Logs validation failures that might indicate attack attempts
lib/audit-logger.ts:154
FunctionmapNoteWithVideo
(row: NoteWithVideoRow)
app/api/notes/all/route.ts:25
Functionmiddleware
(request: NextRequest)
middleware.ts:13
FunctionnextInPlayAll
()
contexts/play-all-context.tsx:36
Functionnoop
()
components/__tests__/highlights-panel.generate.test.tsx:8
FunctionnormalizeQuestion
(value: string)
app/api/suggested-questions/route.ts:143
FunctionopenBillingPortal
()
app/settings/settings-form.tsx:441
FunctionopenCustomInput
()
components/theme-selector.tsx:171
FunctionparseTimestampRange
(timestamp?: string | null)
lib/topic-utils.ts:114
Methodpeek
( key: string, config: RateLimitConfig )
lib/rate-limiter.ts:44
FunctionplayTopic
(topic: Topic)
components/youtube-player.tsx:536
MethodremoveSensitive
(obj: any)
lib/audit-logger.ts:180
Methodreset
(key: string, identifier?: string)
lib/rate-limiter.ts:193
FunctionresetPlayAll
()
contexts/play-all-context.tsx:22
Functionrobots
()
app/robots.ts:3
FunctionsafePromise
( promise: Promise<T> )
lib/promise-utils.ts:9
FunctionsanitizeFilename
(filename: string)
lib/sanitizer.ts:134
FunctionsanitizeForDatabase
(input: string)
lib/validation.ts:232
FunctionsanitizeHtml
(dirty: string)
lib/sanitizer.ts:28
FunctionsanitizeHtml
(html: string)
lib/validation.ts:227
FunctionsanitizeJson
(data: any)
lib/sanitizer.ts:69
FunctionsanitizeUrl
(url: string)
lib/sanitizer.ts:102
FunctionsetAll
(cookiesToSet)
lib/supabase/middleware.ts:17
FunctionsetAll
(cookiesToSet)
lib/supabase/server.ts:15
FunctionsignOut
()
contexts/auth-context.tsx:80
Functionsitemap
()
app/sitemap.ts:5
FunctionsplitLongSentence
(sentence: MergedSentence)
lib/transcript-sentence-merger.ts:52
FunctionstartPlayAll
()
contexts/play-all-context.tsx:27
FunctionstartsWithSentenceBeginning
(text: string)
lib/sentence-utils.ts:52
FunctionstopPlayAll
()
contexts/play-all-context.tsx:32
Methodtranslate
* Request a translation - will be automatically batched
lib/translation-batcher.ts:59
Methodtranslate
* Translate a single text
lib/translation/llm-translate-client.ts:36
FunctiontranslateWithContext
( texts: string[], targetLanguage: string, context: TranslationContext, client?: LLMTranslateClient )
lib/translation/llm-translate-client.ts:542
FunctionusePlayAll
()
contexts/play-all-context.tsx:58
FunctionvalidateStripeConfig
()
lib/stripe-client.ts:63
MethodverifyToken
* Verify a CSRF token against the stored session token
lib/csrf-protection.ts:131
FunctionwithTimeout
( promise: Promise<T>, timeoutMs: number, controller?: AbortController )
lib/promise-utils.ts:42
← previous601–698 of 698, ranked by callers