Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SamuelZ12/longcut
/ functions
Functions
698 in github.com/SamuelZ12/longcut
⨍
Functions
698
◇
Types & classes
143
Function
handleBackgroundClick
(e: React.MouseEvent<HTMLDivElement>)
components/video-progress-bar.tsx:47
Function
handleCitationClick
(citation: Citation)
app/analyze/[videoId]/page.tsx:1091
Function
handleClick
()
components/topic-card.tsx:67
Function
handleCopyLink
()
components/auth-modal.tsx:35
Function
handleExplain
(event: Event)
components/ai-chat.tsx:1009
Function
handleExplainFromSelection
()
app/analyze/[videoId]/page.tsx:1683
Function
handleGoogleSignIn
()
components/auth-modal.tsx:109
Function
handleKeyDown
(e: React.KeyboardEvent)
components/note-editor.tsx:106
Function
handleKeyDown
(e: React.KeyboardEvent)
components/ai-chat.tsx:1090
Function
handleKeyUp
(event: KeyboardEvent)
components/selection-actions.tsx:124
Function
handleMouseUp
()
components/selection-actions.tsx:120
Function
handleOutsideClick
(e: MouseEvent)
components/language-selector.tsx:219
Function
handlePortal
()
app/pricing/pricing-content.tsx:112
Function
handleScroll
()
components/selection-actions.tsx:129
Function
handleScrollLeft
()
components/theme-selector.tsx:234
Function
handleScrollRight
()
components/theme-selector.tsx:245
Function
handleSeek
(time: number)
components/youtube-player.tsx:553
Function
handleSignIn
()
components/auth-modal.tsx:78
Function
handleSignUp
()
components/auth-modal.tsx:40
Function
handleSubmit
(event: FormEvent<HTMLFormElement>)
components/theme-selector.tsx:192
Function
handleSubmit
(e: React.FormEvent)
components/url-input-with-branding.tsx:39
Function
handleSubmit
(e: React.FormEvent)
components/url-input.tsx:53
Function
handleTimestampClick
(seconds: number)
components/chat-message.tsx:141
Function
handleTimestampClick
(seconds: number, _endSeconds?: number, isCitation: boolean = false, _citationText?: string, isWithinHighlight
app/analyze/[videoId]/page.tsx:1108
Function
handleToggleFavorite
()
components/video-header.tsx:29
Function
handleTopup
()
app/pricing/pricing-content.tsx:95
Function
handleUpdatePassword
()
app/settings/settings-form.tsx:401
Function
handleUpdateProfile
()
app/settings/settings-form.tsx:376
Function
handleVisibility
()
lib/hooks/use-subscription.ts:72
Function
handler
(req: NextRequest)
app/api/check-video-cache/route.ts:8
Function
handler
* Endpoint to get a CSRF token for authenticated sessions
app/api/csrf-token/route.ts:12
Function
handler
(request: NextRequest)
app/api/transcript/route.ts:30
Function
handler
(request: NextRequest)
app/api/video-info/route.ts:7
Function
handler
(request: NextRequest)
app/api/quick-preview/route.ts:37
Function
handler
(req: NextRequest)
app/api/generate-image/route.ts:169
Function
handler
(req: NextRequest)
app/api/toggle-favorite/route.ts:8
Function
handler
* 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
Function
handler
(req: NextRequest)
app/api/notes/route.ts:40
Function
handler
(req: NextRequest)
app/api/notes/all/route.ts:47
Function
handler
(req: NextRequest)
app/api/notes/enhance/route.ts:73
Function
handler
(request: NextRequest)
app/api/generate-topics/route.ts:10
Function
handler
(req: NextRequest)
app/api/update-video-analysis/route.ts:10
Function
handler
(req: NextRequest)
app/api/link-video/route.ts:6
Function
handler
(request: NextRequest)
app/api/translate/route.ts:24
Function
handler
* 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
Function
handler
()
app/api/random-video/route.ts:82
Function
handler
* 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
Function
handler
* 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
Function
handler
* 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
Function
handler
(req: NextRequest)
app/api/stripe/confirm-checkout/route.ts:16
Function
handler
()
app/api/image-limit/route.ts:11
Function
handler
(request: NextRequest)
app/api/top-quotes/route.ts:48
Function
handler
(req: NextRequest)
app/api/webhooks/stripe/route.ts:16
Function
handler
(request: NextRequest)
app/api/suggested-questions/route.ts:19
Function
handler
(request: NextRequest)
app/api/generate-summary/route.ts:225
Function
handler
(req: NextRequest)
app/api/video-analysis/route.ts:81
Function
hasProSubscription
(userId: string)
lib/subscription-manager.ts:585
Function
isTimestamp
(text: string)
lib/timestamp-utils.ts:78
Function
isTranscriptEnglish
( transcript: unknown, options?: TranscriptLanguageOptions )
lib/transcript-language.ts:116
Function
listAvailableAIProviders
()
lib/ai-client.ts:75
Method
logFailedAuth
* Logs a failed authentication attempt
lib/audit-logger.ts:118
Method
logValidationFailure
* Logs validation failures that might indicate attack attempts
lib/audit-logger.ts:154
Function
mapNoteWithVideo
(row: NoteWithVideoRow)
app/api/notes/all/route.ts:25
Function
middleware
(request: NextRequest)
middleware.ts:13
Function
nextInPlayAll
()
contexts/play-all-context.tsx:36
Function
noop
()
components/__tests__/highlights-panel.generate.test.tsx:8
Function
normalizeQuestion
(value: string)
app/api/suggested-questions/route.ts:143
Function
openBillingPortal
()
app/settings/settings-form.tsx:441
Function
openCustomInput
()
components/theme-selector.tsx:171
Function
parseTimestampRange
(timestamp?: string | null)
lib/topic-utils.ts:114
Method
peek
( key: string, config: RateLimitConfig )
lib/rate-limiter.ts:44
Function
playTopic
(topic: Topic)
components/youtube-player.tsx:536
Method
removeSensitive
(obj: any)
lib/audit-logger.ts:180
Method
reset
(key: string, identifier?: string)
lib/rate-limiter.ts:193
Function
resetPlayAll
()
contexts/play-all-context.tsx:22
Function
robots
()
app/robots.ts:3
Function
safePromise
( promise: Promise<T> )
lib/promise-utils.ts:9
Function
sanitizeFilename
(filename: string)
lib/sanitizer.ts:134
Function
sanitizeForDatabase
(input: string)
lib/validation.ts:232
Function
sanitizeHtml
(dirty: string)
lib/sanitizer.ts:28
Function
sanitizeHtml
(html: string)
lib/validation.ts:227
Function
sanitizeJson
(data: any)
lib/sanitizer.ts:69
Function
sanitizeUrl
(url: string)
lib/sanitizer.ts:102
Function
setAll
(cookiesToSet)
lib/supabase/middleware.ts:17
Function
setAll
(cookiesToSet)
lib/supabase/server.ts:15
Function
signOut
()
contexts/auth-context.tsx:80
Function
sitemap
()
app/sitemap.ts:5
Function
splitLongSentence
(sentence: MergedSentence)
lib/transcript-sentence-merger.ts:52
Function
startPlayAll
()
contexts/play-all-context.tsx:27
Function
startsWithSentenceBeginning
(text: string)
lib/sentence-utils.ts:52
Function
stopPlayAll
()
contexts/play-all-context.tsx:32
Method
translate
* Request a translation - will be automatically batched
lib/translation-batcher.ts:59
Method
translate
* Translate a single text
lib/translation/llm-translate-client.ts:36
Function
translateWithContext
( texts: string[], targetLanguage: string, context: TranslationContext, client?: LLMTranslateClient )
lib/translation/llm-translate-client.ts:542
Function
usePlayAll
()
contexts/play-all-context.tsx:58
Function
validateStripeConfig
()
lib/stripe-client.ts:63
Method
verifyToken
* Verify a CSRF token against the stored session token
lib/csrf-protection.ts:131
Function
withTimeout
( promise: Promise<T>, timeoutMs: number, controller?: AbortController )
lib/promise-utils.ts:42
← previous
601–698 of 698, ranked by callers