MCPcopy Create free account

hub / github.com/freeCodeCamp/freeCodeCamp / functions

Functions2,118 in github.com/freeCodeCamp/freeCodeCamp

↓ 493 callersMethodsend
* Sends an email using nodemailer. * * @param param Email options. * @param param.to Email address to send to. * @param param.from Email a
api/src/plugins/mail-providers/nodemailer.ts:46
↓ 262 callersFunctionrender
(ui: ReactElement, store: Store)
client/utils/test-utils.tsx:6
↓ 199 callersFunctionuseTranslation
()
client/__mocks__/react-i18next.js:50
↓ 155 callersFunctionput
( path: string, body: unknown )
client/src/utils/ajax.ts:66
↓ 138 callersFunctionplugin
()
tools/challenge-parser/parser/plugins/add-hooks.js:3
↓ 96 callersFunctionparseFixture
(filename)
tools/challenge-parser/parser/__fixtures__/parse-fixture.js:7
↓ 81 callersFunctionsuperRequest
( resource: string, config: { method: 'GET' | 'POST' | 'PUT' | 'DELETE'; setCookies?: string[];
api/vitest.utils.ts:58
↓ 63 callersFunctioncreateFlashMessage
( flash: FlashMessageArg )
client/src/components/Flash/redux/index.ts:31
↓ 57 callersFunctiondone
()
client/src/templates/Challenges/classic/xterm.tsx:84
↓ 52 callersFunctioncreateStore
(preloadedState = {})
client/src/redux/create-store.ts:20
↓ 41 callersFunctionoid
()
api/__fixtures__/exam-environment-exam.ts:17
↓ 40 callersFunctionfocusEditor
({ page, isMobile }: { page: Page; isMobile: boolean; })
e2e/utils/editor.ts:7
↓ 38 callersFunctionopenModal
(page: Page)
e2e/shortcuts-modal.spec.ts:25
↓ 37 callersFunctionwithTranslation
()
client/__mocks__/react-i18next.js:37
↓ 36 callersFunctiongetEditors
(page: Page)
e2e/utils/editor.ts:3
↓ 32 callersFunctiongetSection
(tree, marker, depth)
tools/challenge-parser/parser/plugins/utils/get-section.js:48
↓ 30 callersFunctioncreateAsyncTypes
(action: string)
client/src/utils/create-types.ts:34
↓ 29 callersMethodsetup
(opts?: { useNodeModules?: boolean; tsconfig?: string })
tools/client-plugins/browser-scripts/modules/typescript-compiler.ts:19
↓ 28 callersFunctionclearEditor
({ page, browserName, isMobile = false }: { page: Page; browserName: string; isMobile?: boolean; }
e2e/utils/editor.ts:25
↓ 26 callersFunctionconvertToHanzi
( raw: string, expectedAnswer: { hanzi: string; pinyin: string } )
client/src/templates/Challenges/components/pinyin-to-hanzi-input.tsx:18
↓ 25 callersFunctioncallGA
(payload: GAevent)
client/src/analytics/call-ga.ts:116
↓ 25 callersFunctionconvertToPinyinWithTones
(raw: string)
client/src/templates/Challenges/components/pinyin-tone-input.tsx:12
↓ 25 callersFunctioncreateUserInput
(email: string)
api/src/utils/create-user.ts:61
↓ 23 callersFunctionparseBlanks
(text: string)
client/src/templates/Challenges/fill-in-the-blank/parse-blanks.ts:47
↓ 22 callersFunctioncreatePointerEvent
( type: 'pointerdown' | 'pointermove' | 'pointerup' | 'pointercancel', x: number, y: number, options?:
client/src/templates/Challenges/classic/content-widget-events.test.tsx:5
↓ 22 callersFunctiongetMetaData
()
tools/challenge-helper-scripts/helpers/project-metadata.ts:21
↓ 22 callersFunctiongetProjectPath
()
tools/challenge-helper-scripts/helpers/get-project-info.ts:1
↓ 22 callersFunctionmapErr
(promise: Promise<T>)
api/src/utils/index.ts:80
↓ 21 callersFunctioncompareTexts
( original: string, utterance: string )
client/src/templates/Challenges/components/speaking-modal-helpers.ts:34
↓ 21 callersMethodexecute
(data, timeout = 1000)
packages/challenge-builder/src/worker-executor.js:60
↓ 21 callersFunctionformatMessage
(message: Message)
api/src/plugins/redirect-with-message.ts:43
↓ 21 callersFunctionhandleDownloadLink
( { os, architecture }: UserOSState, downloadLinks: string[] )
client/src/templates/Challenges/exam-download/show.tsx:203
↓ 20 callersFunctionaddText
(sectionIds)
tools/challenge-parser/parser/plugins/add-text.js:7
↓ 19 callersFunctioncreateAccessToken
(userId: string, ttl?: number)
api/src/utils/tokens.ts:36
↓ 19 callersFunctioncreateMdastToHtml
tools/challenge-parser/parser/plugins/utils/i18n-stringify.js:127
↓ 19 callersFunctionserializeDates
(data: T)
api/vitest.utils.ts:286
↓ 19 callersFunctionuserSelector
client/src/redux/selectors.js:211
↓ 18 callersFunctionformat
(x)
client/src/utils/format.js:3
↓ 17 callersFunctioncreateSuperRequest
(config: { method: 'GET' | 'POST' | 'PUT' | 'DELETE'; setCookies?: string[]; })
api/vitest.utils.ts:91
↓ 17 callersFunctionnormalizeDate
(date?: Prisma.JsonValue)
api/src/utils/normalize.ts:69
↓ 17 callersFunctionsetupServer
()
api/src/routes/helpers/auth-helpers.test.ts:25
↓ 16 callersFunctionalertToBeVisible
(page: Page, text: string)
e2e/utils/alerts.ts:3
↓ 16 callersFunctiongetRedirectParams
( req: { headers: { referer?: string } }, _normalizeParams = normalizeParams )
api/src/utils/redirection.ts:133
↓ 15 callersFunctioninput
(text: string)
tools/client-plugins/browser-scripts/python-worker.ts:87
↓ 15 callersFunctionomit
* Returns a subset of the given object with the values or properties given removed. * @param obj - An array or an object literal. * @param vals - It
api/src/plugins/shadow-capture.ts:115
↓ 14 callersFunctionchallengeMetaSelector
client/src/templates/Challenges/redux/selectors.js:19
↓ 14 callersFunctiongetLines
(contents: string, range?: number[])
packages/shared/src/utils/get-lines.ts:1
↓ 14 callersFunctionhasValue
(value: string)
client/src/components/profile/components/profile-completeness.tsx:45
↓ 14 callersFunctionisValidUsername
(str: string)
packages/shared/src/utils/validate.ts:33
↓ 14 callersFunctionrenderModal
(props = {})
client/src/templates/Introduction/components/reset-progress-modal.test.tsx:95
↓ 14 callersFunctionrenderWithProvider
(ui: React.ReactElement)
client/src/templates/Introduction/components/super-block-accordion.test.tsx:63
↓ 14 callersFunctionrequest
( method: 'POST' | 'PUT' | 'DELETE', path: string, body: unknown )
client/src/utils/ajax.ts:80
↓ 13 callersFunctionattachContentWidgetEvents
( upperJawNode: HTMLElement )
client/src/templates/Challenges/classic/content-widget-events.ts:94
↓ 13 callersMethodcheck
(id, block)
curriculum/src/test/utils/mongo-ids.js:10
↓ 13 callersFunctionfindOrCreateUser
( fastify: FastifyInstance, email: string )
api/src/routes/helpers/auth-helpers.ts:11
↓ 13 callersFunctionpost
( path: string, body: unknown )
client/src/utils/ajax.ts:59
↓ 13 callersFunctionreplacePrivateData
(user: RawUser)
api/src/routes/public/user.ts:61
↓ 13 callersFunctionsetTheme
( request: APIRequestContext, theme: 'default' | 'night' )
e2e/editor.spec.ts:6
↓ 13 callersFunctionspreadThePayloadOnUser
(state, payload)
client/src/redux/index.js:100
↓ 12 callersFunctionbuildTranscript
(commands: SceneCommand[])
client/src/templates/Challenges/components/scene/scene-helpers.ts:3
↓ 12 callersFunctioncreateDomTree
()
client/src/templates/Challenges/classic/content-widget-events.test.tsx:66
↓ 12 callersFunctioncreateError
* Returns a function which optionally takes arguments to format an error message. * @param code - Identifier for the error. * @param message - Human
api/src/exam-environment/utils/errors.ts:52
↓ 12 callersFunctioncreateLintStagedConfig
packages/eslint-config/.lintstagedrc.js:3
↓ 12 callersFunctiongetLiveRegion
()
client/src/templates/Challenges/components/independent-lower-jaw.test.tsx:81
↓ 12 callersMethodpostMessage
(msg)
curriculum/src/test/utils/pseudo-worker.js:65
↓ 11 callersFunctionmockWorker
({ init, postMessage, terminate } = {})
packages/challenge-builder/src/worker-executor.test.js:8
↓ 11 callersFunctionreducer
( state: FlashState = initialState, action: ReducerPayload<FlashActionTypes> )
client/src/components/Flash/redux/index.ts:61
↓ 11 callersFunctiontoggleFlag
(flag: keyof ProfileUI)
client/src/components/profile/components/profile-privacy.tsx:43
↓ 11 callersFunctiontoggleFlag
(flag: keyof ProfileUI)
client/src/components/settings/privacy.tsx:41
↓ 11 callersFunctionvalidateChallenges
( foundChallenges: Challenge[], meta: { challengeOrder: Challenge[]; dashedName: string }, throwOnError?
curriculum/src/build-superblock.ts:52
↓ 10 callersFunctionallowTrailingSlash
(url: string)
e2e/utils/url.ts:1
↓ 10 callersFunctiongetButton
(translationKey: string)
client/src/templates/Challenges/exam/show.test.tsx:265
↓ 10 callersFunctiongetCompletedPercentage
( completedChallengesIds: string[] = [], currentBlockIds: string[] = [], currentChallengeId: string )
client/src/utils/get-completion-percentage.ts:6
↓ 10 callersFunctiongetPoints
( progressTimestamps: ProgressTimestamp[] | null )
api/src/utils/progress.ts:32
↓ 10 callersFunctiongetSuperOrder
( superblock: string, showUpcomingChanges = SHOW_UPCOMING_CHANGES )
curriculum/src/super-order.ts:14
↓ 10 callersFunctionisLanding
(pathname: string)
client/src/utils/path-parsers.ts:7
↓ 10 callersFunctionisValidPicture
(picture: string)
client/src/components/profile/components/profile-completeness.tsx:36
↓ 10 callersFunctionparseHanziPinyinPairs
* Parses all hanzi-pinyin pairs from text * @param {string} text - Text potentially containing multiple hanzi (pinyin) patterns * @returns {Array<{h
tools/challenge-parser/parser/plugins/utils/i18n-stringify.js:25
↓ 10 callersFunctionpost
(url: string)
api/src/routes/apps/classroom.test.ts:29
↓ 10 callersFunctionstripHtmlTags
(text: string)
client/src/templates/Challenges/components/speaking-modal-helpers.ts:185
↓ 10 callersFunctiontypeVerifyPhrase
()
client/src/templates/Introduction/components/reset-progress-modal.test.tsx:99
↓ 10 callersFunctionupdateMetaData
(newMetaData: Record<string, unknown>)
tools/challenge-helper-scripts/helpers/project-metadata.ts:30
↓ 10 callersFunctionvalidateBlockName
( block: string, existingBlocks: string[] )
tools/challenge-helper-scripts/utils.ts:287
↓ 9 callersFunctionauthedRequest
({ request, method, endpoint, data }: { request: APIRequestContext; method: 'post' | 'put'; endp
e2e/utils/request.ts:6
↓ 9 callersFunctioncalculateStreaks
(calendar: Record<string, number>)
client/src/components/profile/components/stats.tsx:23
↓ 9 callersFunctionclickConfirm
()
client/src/templates/Introduction/components/reset-progress-modal.test.tsx:105
↓ 9 callersFunctioncreateFetchMock
({ ok = true, body = {} } = {})
api/vitest.utils.ts:263
↓ 9 callersFunctiondevLogin
()
api/vitest.utils.ts:240
↓ 9 callersFunctiongetChallengePaths
({ currentCurriculumPaths }: { currentCurriculumPaths: NavigationPaths; })
client/src/templates/Challenges/utils/challenge-paths.ts:3
↓ 9 callersFunctiongetSessionChallengeData
()
client/src/utils/session-storage.ts:39
↓ 9 callersFunctiongetSolutionDisplayType
({ solution, githubLink, challengeFiles, challengeType, examResults }: CompletedChallenge)
client/src/utils/solution-display-type.ts:14
↓ 9 callersFunctiongetSuperblockStructure
(superblockFilename: string)
curriculum/src/file-handler.ts:219
↓ 9 callersFunctiongot
(ext: string)
client/src/templates/Challenges/components/interactive-editor.tsx:51
↓ 9 callersFunctionisExpired
(token: Token | DbToken)
api/src/utils/tokens.ts:65
↓ 9 callersFunctionisMicrosoftTranscriptLink
(value: string)
packages/shared/src/utils/validate.ts:42
↓ 9 callersFunctionmakeStore
(overrides: Partial<typeof defaultProfileUI> = {})
client/src/components/profile/components/profile-privacy.test.tsx:23
↓ 9 callersFunctionnormalizeParams
( { returnTo, origin, pathPrefix }: Partial<RedirectParams>, _homeLocation = HOME_LOCATION )
api/src/utils/redirection.ts:57
↓ 9 callersFunctionnormalizeText
(text: string)
client/src/templates/Challenges/components/speaking-modal-helpers.ts:3
↓ 9 callersFunctiontransformSuperBlock
( superblockData: { blocks?: string[]; chapters?: Chapter[]; }, { showComingSoon } = { showComin
curriculum/src/build-superblock.ts:475
↓ 9 callersFunctionuseSubmit
()
client/src/templates/Challenges/utils/fetch-all-curriculum-data.tsx:88
next →1–100 of 2,118, ranked by callers