repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/rechallenge/builders.ts
client/src/templates/Challenges/rechallenge/builders.ts
import { template as _template } from 'lodash-es'; interface ConcatHTMLOptions { required?: { src?: string; link?: string }[]; template?: string; contents?: string; testRunner?: string; } export function concatHtml({ required = [], template, contents }: ConcatHTMLOptions): string { const embedSource =...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/ms-trophy/link-ms-user.tsx
client/src/templates/Challenges/ms-trophy/link-ms-user.tsx
import React, { useState } from 'react'; import { ConnectedProps, connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import type { Dispatch } from 'redux'; import { createSelector } from 'reselect'; import { Trans, useTranslation } from 'react-i18next'; import { ControlLabel, FormControl, F...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/ms-trophy/show.tsx
client/src/templates/Challenges/ms-trophy/show.tsx
import { graphql } from 'gatsby'; import React, { useEffect, useRef } from 'react'; import Helmet from 'react-helmet'; import type { TFunction } from 'i18next'; import { withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import type { Dispatch } fr...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/hooks/use-page-leave.ts
client/src/templates/Challenges/hooks/use-page-leave.ts
import { useEffect } from 'react'; import { useLocation, globalHistory } from '@gatsbyjs/reach-router'; interface Props { onWindowClose: (event: BeforeUnloadEvent) => void; onHistoryChange: (targetPathname: string) => void; } export const usePageLeave = ({ onWindowClose, onHistoryChange }: Props) => { const cur...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/hooks/index.ts
client/src/templates/Challenges/hooks/index.ts
export { usePageLeave } from './use-page-leave';
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/bread-crumb.tsx
client/src/templates/Challenges/components/bread-crumb.tsx
import i18next from 'i18next'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { Link } from '../../../components/helpers/index'; import './challenge-title.css'; interface BreadCrumbProps { block: string; superBlock: string; } function BreadCrumb({ block, superBlock }: BreadCrum...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/speaking-modal.tsx
client/src/templates/Challenges/components/speaking-modal.tsx
import React, { useState, useRef, useEffect, useCallback } from 'react'; import { connect } from 'react-redux'; import { Button, Modal } from '@freecodecamp/ui'; import { useTranslation } from 'react-i18next'; import SpeechRecognition, { useSpeechRecognition } from 'react-speech-recognition'; import { FontAwesomeIcon...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/pinyin-tone-input.test.tsx
client/src/templates/Challenges/components/pinyin-tone-input.test.tsx
import React from 'react'; import { describe, test, expect, vi } from 'vitest'; import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import PinyinToneInput, { convertToPinyinWithTones } from './pinyin-tone-input'; describe('convertToPinyinWithTones', () => { ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/preview-portal.tsx
client/src/templates/Challenges/components/preview-portal.tsx
import { Component, ReactElement } from 'react'; import ReactDOM from 'react-dom'; import type { TFunction } from 'i18next'; import { withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { storePortalWindow, removePortalWindow, setShowPre...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/help-modal.test.tsx
client/src/templates/Challenges/components/help-modal.test.tsx
import { describe, it, expect, vi } from 'vitest'; import i18n from '../../../../i18n/config-for-tests'; import { generateSearchLink } from './help-modal'; vi.unmock('react-i18next'); describe('generateSearchLink', () => { it("should return a link with search query containing block name and challenge title if the t...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/challenge-transcript.test.tsx
client/src/templates/Challenges/components/challenge-transcript.test.tsx
import React from 'react'; import { render, screen, fireEvent } from '@testing-library/react'; import store from 'store'; import { describe, it, expect, vi, afterEach } from 'vitest'; import ChallengeTranscript from './challenge-transcript'; const baseProps = { transcript: 'Sample transcript text', shouldPersistEx...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/multiple-choice-questions.tsx
client/src/templates/Challenges/components/multiple-choice-questions.tsx
import React, { useState } from 'react'; import { connect } from 'react-redux'; import { useTranslation } from 'react-i18next'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faMicrophone } from '@fortawesome/free-solid-svg-icons'; import { Button, Spacer } from '@freecodecamp/ui'; import {...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/challenge-explanation.tsx
client/src/templates/Challenges/components/challenge-explanation.tsx
import React from 'react'; import { useTranslation } from 'react-i18next'; import { Spacer } from '@freecodecamp/ui'; import PrismFormatted from './prism-formatted'; import './challenge-explanation.css'; interface ChallengeExplanationProps { explanation: string; } function ChallengeExplanation({ explanation }: C...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/preview.tsx
client/src/templates/Challenges/components/preview.tsx
import React, { useState, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import { mainPreviewId, scrollManager } from '../utils/frame'; import './preview.css'; export interface PreviewProps { className?: string; disableIframe?: boolean; previewMounted: () => void; previewId?: strin...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/speaking-modal-helpers.test.ts
client/src/templates/Challenges/components/speaking-modal-helpers.test.ts
import { describe, it, expect } from 'vitest'; import { normalizeText, compareTexts, stripHtmlTags } from './speaking-modal-helpers'; describe('speaking-modal-helpers', () => { describe('normalizeText', () => { it('should convert text to lowercase and remove punctuation', () => { expect(normalizeText...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/pinyin-tone-input.tsx
client/src/templates/Challenges/components/pinyin-tone-input.tsx
import React, { useState } from 'react'; import { convertUnspacedPinyin } from 'pinyin-tone/v2'; /** * Converts raw pinyin input (with tone numbers) to pinyin with tone marks. * * Key behaviors: * 1. When a tone digit (1-5) is encountered -> convert syllable to toned pinyin * 2. Spaces are preserved in the output...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/tool-panel.tsx
client/src/templates/Challenges/components/tool-panel.tsx
import { Dropdown, MenuItem, Button, Spacer } from '@freecodecamp/ui'; import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { connect } from 'react-redux'...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/challenge-heading.tsx
client/src/templates/Challenges/components/challenge-heading.tsx
import React from 'react'; import { useTranslation } from 'react-i18next'; import GreenPass from '../../../assets/icons/green-pass'; import './challenge-heading.css'; interface ChallengeHeadingProps { heading: string; isCompleted?: boolean; } function ChallengeHeading({ heading, isCompleted = false }: Challe...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/challenge-title.test.tsx
client/src/templates/Challenges/components/challenge-title.test.tsx
import React from 'react'; import renderer from 'react-test-renderer'; import { describe, it, expect } from 'vitest'; import ChallengeTitle from './challenge-title'; const baseProps = { children: 'title text', isCompleted: true, translationPending: false }; describe('<ChallengeTitle/>', () => { it('renders c...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/speaking-modal-helpers.ts
client/src/templates/Challenges/components/speaking-modal-helpers.ts
import { isEmpty } from 'lodash-es'; export const normalizeText = (text: string) => { return text .toLowerCase() .replace(/[^\w\s]/g, '') .trim() .split(/\s+/) .filter((word: string) => word.length > 0); }; interface Missing { expected: string; actual?: never; } interface Extra { actual: ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/daily-challenge-bread-crumb.tsx
client/src/templates/Challenges/components/daily-challenge-bread-crumb.tsx
import i18next from 'i18next'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { Link } from '../../../components/helpers/index'; import './challenge-title.css'; import { isValidDateString, formatDisplayDate } from '../../../components/daily-coding-challenge/helpers'; function Da...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/test-suite.tsx
client/src/templates/Challenges/components/test-suite.tsx
import React from 'react'; import { useTranslation } from 'react-i18next'; import Spinner from 'react-spinkit'; import Fail from '../../../assets/icons/fail'; import GreenPass from '../../../assets/icons/green-pass'; import Initial from '../../../assets/icons/initial'; import './test-suite.css'; import { ChallengeTest...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/video-modal.tsx
client/src/templates/Challenges/components/video-modal.tsx
import React from 'react'; import { withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { Modal } from '@freecodecamp/ui'; import { closeModal } from '../redux/actions'; import { isVideoModalOpenSelector } from '../redux/selectors';...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/pinyin-to-hanzi-input.test.tsx
client/src/templates/Challenges/components/pinyin-to-hanzi-input.test.tsx
import React from 'react'; import { describe, test, expect, vi } from 'vitest'; import userEvent from '@testing-library/user-event'; import { render, screen } from '@testing-library/react'; import PinyinToHanziInput, { convertToHanzi } from './pinyin-to-hanzi-input'; describe('convertToHanzi', () => { test('should ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/project-preview-modal.tsx
client/src/templates/Challenges/components/project-preview-modal.tsx
import React, { useEffect } from 'react'; import { connect } from 'react-redux'; import { Button, Modal } from '@freecodecamp/ui'; import type { ChallengeData } from '../../../redux/prop-types'; import { closeModal, setEditorFocusability, projectPreviewMounted } from '../redux/actions'; import { isProjectPreview...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/challenge-transcript.tsx
client/src/templates/Challenges/components/challenge-transcript.tsx
import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Spacer } from '@freecodecamp/ui'; import store from 'store'; import PrismFormatted from './prism-formatted'; import './challenge-transcript.css'; interface ChallengeTranscriptProps { transcript: string; shouldPersist...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/completion-modal.tsx
client/src/templates/Challenges/components/completion-modal.tsx
import React, { Component } from 'react'; import type { TFunction } from 'i18next'; import { withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Button, Modal, Spacer } from '@freecodecamp/ui'; import Login from '../../../components/Header/...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/output.tsx
client/src/templates/Challenges/components/output.tsx
import { isEmpty } from 'lodash-es'; import React from 'react'; import sanitizeHtml from 'sanitize-html'; import i18next from 'i18next'; import './output.css'; interface OutputProps { defaultOutput: string; output: string; } function Output({ defaultOutput, output }: OutputProps): JSX.Element { const message =...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/reset-modal.tsx
client/src/templates/Challenges/components/reset-modal.tsx
import React from 'react'; import { useTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { createSelector } from 'reselect'; import { Button, Modal } from '@freecodecamp/ui'; import { closeModal, resetChallenge } from '../redux/actio...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/hotkeys.tsx
client/src/templates/Challenges/components/hotkeys.tsx
import { navigate } from 'gatsby'; import React from 'react'; import { HotKeys, GlobalHotKeys } from 'react-hotkeys'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import type { ChallengeFiles, Test, ChallengeMeta, User } from '../../../redux/prop-types'; import { userSelect...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/video-player.tsx
client/src/templates/Challenges/components/video-player.tsx
import React from 'react'; import YouTube, { YouTubeEvent } from 'react-youtube'; import store from 'store'; import Loader from '../../../components/helpers/loader'; import envData from '../../../../config/env.json'; import type { BilibiliIds, VideoLocaleIds } from '../../../redux/prop-types'; // TODO: pull these typ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/help-modal.tsx
client/src/templates/Challenges/components/help-modal.tsx
import React, { useMemo, useState, useRef, useEffect } from 'react'; import { Trans, useTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { Dispatch, bindActionCreators } from 'redux'; import { Button, FormControl, Modal, Spacer } from '@freecodecamp/ui'; import { t } from 'i18next'; im...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/shortcuts-modal.tsx
client/src/templates/Challenges/components/shortcuts-modal.tsx
import React from 'react'; import { withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { createSelector } from 'reselect'; import { Button, Modal } from '@freecodecamp/ui'; import { closeModal } from '../redux/actions'; import { i...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/completion-modal.test.tsx
client/src/templates/Challenges/components/completion-modal.test.tsx
import React from 'react'; import { runSaga } from 'redux-saga'; import { describe, test, it, expect, beforeEach, vi, Mock } from 'vitest'; import { render } from '../../../../utils/test-utils'; import { getCompletedPercentage } from '../../../utils/get-completion-percentage'; import { fireConfetti } from '../../../ut...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/assignments.tsx
client/src/templates/Challenges/components/assignments.tsx
import React from 'react'; import { useTranslation } from 'react-i18next'; import { Spacer } from '@freecodecamp/ui'; import ChallengeHeading from './challenge-heading'; import PrismFormatted from './prism-formatted'; import './assignments.css'; type AssignmentsProps = { assignments: string[]; allAssignmentsComp...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/prism-formatted.tsx
client/src/templates/Challenges/components/prism-formatted.tsx
import Prism from 'prismjs'; import React, { useRef, useEffect } from 'react'; import { enhancePrismAccessibility } from '../utils'; interface PrismFormattedProps { className?: string; text: string; useSpan?: boolean; noAria?: boolean; } function PrismFormatted({ className, text, useSpan, noAria }: Pr...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/notes.tsx
client/src/templates/Challenges/components/notes.tsx
import React from 'react'; import PrismFormatted from './prism-formatted'; interface NotesProps { notes?: string; } function Notes({ notes }: NotesProps): JSX.Element | null { return notes ? <PrismFormatted text={notes} /> : null; } Notes.displayName = 'Notes'; export default Notes;
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/pinyin-to-hanzi-input.tsx
client/src/templates/Challenges/components/pinyin-to-hanzi-input.tsx
import React, { useState } from 'react'; import { convertUnspacedPinyin } from 'pinyin-tone/v2'; // Removing tone marks from pinyin for base letter comparison. // Uses Unicode NFD to decompose accented characters, then removes combining marks const normalize = (s: string) => s.normalize('NFD').replace(/\p{M}/gu, '')...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/independent-lower-jaw.tsx
client/src/templates/Challenges/components/independent-lower-jaw.tsx
import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { useTranslation } from 'react-i18next'; import { Button } from '@freecodecamp/ui'; import { Test } from '../../../redux/prop-types'; import { challengeTestsSelector } from '../redux/selectors'; import { ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/challenge-description.tsx
client/src/templates/Challenges/components/challenge-description.tsx
import React, { useEffect } from 'react'; import { initializeMathJax, isMathJaxAllowed } from '../../../utils/math-jax'; import PrismFormatted from './prism-formatted'; import './challenge-description.css'; type Props = { description?: string; instructions?: string; superBlock?: string; }; const ChallengeDescri...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/interactive-editor.tsx
client/src/templates/Challenges/components/interactive-editor.tsx
import React, { useMemo } from 'react'; import { Sandpack } from '@codesandbox/sandpack-react'; import { freeCodeCampDark } from '@codesandbox/sandpack-themes'; import './interactive-editor.css'; export interface InteractiveFile { ext: string; name: string; contents: string; contentsHtml: string; fileKey?: s...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/challenge-title.tsx
client/src/templates/Challenges/components/challenge-title.tsx
import i18next from 'i18next'; import React from 'react'; import GreenPass from '../../../assets/icons/green-pass'; import { Link } from '../../../components/helpers/index'; import './challenge-title.css'; interface ChallengeTitleProps { children: string; isCompleted: boolean; translationPending?: boolean; } f...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/fill-in-the-blanks.tsx
client/src/templates/Challenges/components/fill-in-the-blanks.tsx
import React from 'react'; import { useTranslation } from 'react-i18next'; import { Spacer } from '@freecodecamp/ui'; import { parseBlanks, parseAnswer } from '../fill-in-the-blank/parse-blanks'; import PrismFormatted from '../components/prism-formatted'; import { FillInTheBlank } from '../../../redux/prop-types'; imp...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/side-panel.tsx
client/src/templates/Challenges/components/side-panel.tsx
import React, { ReactElement, ReactNode } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Trans } from 'react-i18next'; import { Spacer } from '@freecodecamp/ui'; import { Test } from '../../../redux/prop-types'; import { challengeTestsSelector } from '../redux/...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/scene/scene-helpers.test.ts
client/src/templates/Challenges/components/scene/scene-helpers.test.ts
import { describe, it, expect } from 'vitest'; import { type SceneCommand } from '../../../../redux/prop-types'; import { buildTranscript } from './scene-helpers'; describe('scene-helpers', () => { describe('buildTranscript', () => { it('should return empty string for empty commands array', () => { const c...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/scene/scene.tsx
client/src/templates/Challenges/components/scene/scene.tsx
import React, { useEffect, useState, useRef, useMemo, useCallback } from 'react'; import { Col, Spacer } from '@freecodecamp/ui'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faCirclePause, faCirclePlay } from '@fortawesome/free-solid-svg-icons'; import { isEmpty } from 'lodash-e...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/scene/scene-helpers.ts
client/src/templates/Challenges/components/scene/scene-helpers.ts
import { type SceneCommand } from '../../../../redux/prop-types'; export const buildTranscript = (commands: SceneCommand[]): string => { let transcriptText = ''; commands.forEach(command => { if (command.character && command.dialogue && command.startTime) { transcriptText = transcriptText + ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/scene/character.tsx
client/src/templates/Challenges/components/scene/character.tsx
import React, { useEffect, useState } from 'react'; import { Characters, CharacterPosition } from '../../../../redux/prop-types'; import { characterAssets } from './scene-assets'; import './character.css'; import { SceneSubject } from './scene-subject'; interface CharacterProps { position: CharacterPosition; opac...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/scene/scene-assets.tsx
client/src/templates/Challenges/components/scene/scene-assets.tsx
// TODO: get domain from env const domain = 'https://cdn.freecodecamp.org/curriculum/english/animation-assets'; export const sounds = `${domain}/sounds`; const images = `${domain}/images`; export const backgrounds = `${images}/backgrounds`; export const characters = `${images}/characters`; // All the character fold...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/components/scene/scene-subject.tsx
client/src/templates/Challenges/components/scene/scene-subject.tsx
type Observer = (eventType: 'play' | 'pause' | 'stop') => void; export class SceneSubject { #observers: Observer[]; constructor() { this.#observers = []; } attach(observer: Observer) { this.#observers.push(observer); } detach(observer: Observer) { this.#observers = this.#observers.filter(obs ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/index.test.ts
client/src/templates/Challenges/utils/index.test.ts
import { describe, it, expect } from 'vitest'; import envData from '../../../../config/env.json'; import { getGuideUrl } from './index'; const { forumLocation } = envData; describe('index', () => { describe('getGuideUrl', () => { it('should use forum topic url when forumTopicId is supplied', () => { const...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/frame.ts
client/src/templates/Challenges/utils/frame.ts
import { flow } from 'lodash-es'; import i18next, { type i18n } from 'i18next'; import { version as _helperVersion, type FCCTestRunner } from '../../../../../tools/client-plugins/browser-scripts/test-runner'; import { format } from '../../../utils/format'; import type { FrameDocument, PythonDocument } from '....
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/post-update.ts
client/src/templates/Challenges/utils/post-update.ts
import { from, Observable } from 'rxjs'; import { post } from '../../../utils/ajax'; import type { ResponseWithData } from '../../../utils/ajax'; interface PostData { endpoint: string; payload: unknown; } export default function postUpdate$({ endpoint, payload }: PostData): Observable<ResponseWithData<void>> ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/build.ts
client/src/templates/Challenges/utils/build.ts
import { challengeTypes } from '../../../../../shared-dist/config/challenge-types'; import type { ChallengeFile } from '../../../redux/prop-types'; import { concatHtml } from '../rechallenge/builders'; import { getTransformers, embedFilesInHtml, getPythonTransformers, getMultifileJSXTransformers } from '../rec...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/get-target-editor.ts
client/src/templates/Challenges/utils/get-target-editor.ts
import { isEmpty } from 'lodash-es'; import { sortChallengeFiles } from '../../../../utils/sort-challengefiles'; import { ChallengeFiles } from '../../../redux/prop-types'; export function getTargetEditor(challengeFiles: ChallengeFiles): string | null { if (isEmpty(challengeFiles)) return null; const targetEditor...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/python-worker-handler.ts
client/src/templates/Challenges/utils/python-worker-handler.ts
// TODO: This might be cleaner as a class. import pythonWorkerData from '../../../../config/browser-scripts/python-worker.json'; const pythonWorkerSrc = `/js/${pythonWorkerData.filename}.js`; let worker: Worker | null = null; let listener: ((event: MessageEvent) => void) | null = null; type Code = { contents: strin...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/challenge-paths.ts
client/src/templates/Challenges/utils/challenge-paths.ts
import { NavigationPaths } from '../../../redux/prop-types'; export const getChallengePaths = ({ currentCurriculumPaths }: { currentCurriculumPaths: NavigationPaths; }): NavigationPaths => { return { nextChallengePath: currentCurriculumPaths.nextChallengePath, prevChallengePath: currentCurriculumPaths.pr...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/awaitable-messenger.ts
client/src/templates/Challenges/utils/awaitable-messenger.ts
export type Messenger<Message> = { postMessage: (message: Message, options: WindowPostMessageOptions) => void; }; /** * Sends a message via a messenger (an object containing postMessage) and awaits a response. * * @template MessageOut - The type of the message being sent. * @template MessageIn - The type of the ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/index.ts
client/src/templates/Challenges/utils/index.ts
import i18next from 'i18next'; import envData from '../../../../config/env.json'; const { forumLocation } = envData; interface GuideData { forumTopicId?: number; title?: string; } export function getGuideUrl({ forumTopicId, title = '' }: GuideData): string { title = encodeURIComponent(title); return forumTop...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/use-detect-os.ts
client/src/templates/Challenges/utils/use-detect-os.ts
import { useEffect, useState } from 'react'; type UserOS = 'MAC' | 'WIN' | 'LINUX' | 'AIX' | 'OTHER' | 'LOADING'; type UserOSState = { os: UserOS; architecture: string; }; interface NavigatorUAData { getHighEntropyValues(hints: string[]): Promise<Record<string, string>>; } interface Navigator { userAgentDat...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/utils/typescript-worker-handler.ts
client/src/templates/Challenges/utils/typescript-worker-handler.ts
import typeScriptWorkerData from '../../../../config/browser-scripts/typescript-worker.json'; import { awaitResponse } from './awaitable-messenger'; const typeScriptWorkerSrc = `/js/${typeScriptWorkerData.filename}.js`; let worker: Worker | null = null; function getTypeScriptWorker(): Worker { if (!worker) { w...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/action-row.tsx
client/src/templates/Challenges/classic/action-row.tsx
import { faWindowRestore } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React from 'react'; import { useTranslation } from 'react-i18next'; import store from 'store'; import { DailyCodingChallengeLanguages } from '../../../redux/prop-types'; import {...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/mobile-layout.tsx
client/src/templates/Challenges/classic/mobile-layout.tsx
import i18next from 'i18next'; import React, { Component, type ReactNode } from 'react'; import { faWindowRestore } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { createSelector } from 'reselect'; import { connect } from 'react-redux'; import { Tabs,...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/saved-challenges.ts
client/src/templates/Challenges/classic/saved-challenges.ts
import { ChallengeFile, SavedChallengeFile } from '../../../redux/prop-types'; export function mergeChallengeFiles( files?: ChallengeFile[] | null, savedFiles?: SavedChallengeFile[] | null ): ChallengeFile[] { if (!files) return []; if (!savedFiles) return files; if (files.length !== savedFiles.length) retur...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/show.tsx
client/src/templates/Challenges/classic/show.tsx
import { graphql } from 'gatsby'; import React, { useState, useEffect, useRef } from 'react'; import Helmet from 'react-helmet'; import { useTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { HandlerProps } from 'react-reflex'; import { useMediaQuery } from 'react-responsive'; import { ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/saved-challenges.test.ts
client/src/templates/Challenges/classic/saved-challenges.test.ts
import { describe, it, expect } from 'vitest'; import type { ChallengeFile, SavedChallengeFile } from '../../../redux/prop-types'; import { mergeChallengeFiles } from './saved-challenges'; const jsChallenge = { contents: 'js contents', fileKey: 'jsFileKey', name: 'name', ext: 'js' as const, head: 'head',...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/multifile-editor.tsx
client/src/templates/Challenges/classic/multifile-editor.tsx
import React, { useRef } from 'react'; import { connect } from 'react-redux'; import { ReflexContainer, ReflexElement, ReflexSplitter } from 'react-reflex'; import { createSelector } from 'reselect'; import { isDonationModalOpenSelector } from '../../../redux/selectors'; import { canFocusEditorSelector, visibleEdit...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/editor.tsx
client/src/templates/Challenges/classic/editor.tsx
import * as ReactDOMServer from 'react-dom/server'; import Loadable from '@loadable/component'; // eslint-disable-next-line import/no-duplicates import type * as monacoEditor from 'monaco-editor/esm/vs/editor/editor.api'; import type { IRange, editor // eslint-disable-next-line import/no-duplicates } from 'monac...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
true
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/lower-jaw.tsx
client/src/templates/Challenges/classic/lower-jaw.tsx
import React, { useState, useEffect, useRef } from 'react'; import { useTranslation } from 'react-i18next'; import { createSelector } from 'reselect'; import { Button, Spacer } from '@freecodecamp/ui'; import { connect } from 'react-redux'; import Fail from '../../../assets/icons/fail'; import LightBulb from '../../.....
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/editor-tabs.tsx
client/src/templates/Challenges/classic/editor-tabs.tsx
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import i18next from 'i18next'; import { sortChallengeFiles } from '../../../../utils/sort-challengefiles'; import { ChallengeFile, ChallengeFiles } from '../../../redux/prop-types'; import { togg...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/xterm.tsx
client/src/templates/Challenges/classic/xterm.tsx
import React, { MutableRefObject, useEffect, useRef } from 'react'; import type { IDisposable, Terminal } from 'xterm'; import type { FitAddon } from 'xterm-addon-fit'; import { useTranslation } from 'react-i18next'; import { registerTerminal } from '../utils/python-worker-handler'; import './xterm.css'; const regist...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/classic/desktop-layout.tsx
client/src/templates/Challenges/classic/desktop-layout.tsx
import { isEmpty } from 'lodash-es'; import React, { useState, useEffect, ReactElement } from 'react'; import { ReflexContainer, ReflexSplitter, ReflexElement } from 'react-reflex'; import { createSelector } from 'reselect'; import { connect } from 'react-redux'; import store from 'store'; import { challengeTypes } fro...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/codeally/codespaces-instructions.tsx
client/src/templates/Challenges/codeally/codespaces-instructions.tsx
import React from 'react'; import { Trans, useTranslation } from 'react-i18next'; import { Spacer, Button, Callout } from '@freecodecamp/ui'; import { CodeAllyButton } from '../../../components/growth-book/codeally-button'; interface CodespacesInstructionsProps { challengeType: number; copyUrl: () => void; copy...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/codeally/rdb-local-logout-alert.tsx
client/src/templates/Challenges/codeally/rdb-local-logout-alert.tsx
import React from 'react'; import { useTranslation } from 'react-i18next'; import { Callout } from '@freecodecamp/ui'; interface RdbLocalLogoutAlertProps { title: string; } function RdbLocalLogoutAlert({ title }: RdbLocalLogoutAlertProps): JSX.Element { const { t } = useTranslation(); return ( <Callout var...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/codeally/rdb-step-2-instructions.tsx
client/src/templates/Challenges/codeally/rdb-step-2-instructions.tsx
import React from 'react'; import { useTranslation } from 'react-i18next'; import { Spacer } from '@freecodecamp/ui'; import ChallengeHeading from '../components/challenge-heading'; import PrismFormatted from '../components/prism-formatted'; interface RdbStep2InstructionsProps { notes: string; isCompleted: boole...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/codeally/show.tsx
client/src/templates/Challenges/codeally/show.tsx
// Package Utilities import { graphql } from 'gatsby'; import React, { Fragment, useEffect, useRef } from 'react'; import Helmet from 'react-helmet'; import type { TFunction } from 'i18next'; import { withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redu...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/codeally/rdb-step-1-instructions.tsx
client/src/templates/Challenges/codeally/rdb-step-1-instructions.tsx
import React from 'react'; import { useTranslation } from 'react-i18next'; import { Spacer } from '@freecodecamp/ui'; import ChallengeHeading from '../components/challenge-heading'; import PrismFormatted from '../components/prism-formatted'; interface RdbStep1InstructionsProps { instructions: string; isCompleted:...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/codeally/local-instructions.tsx
client/src/templates/Challenges/codeally/local-instructions.tsx
import React from 'react'; import { Trans, useTranslation } from 'react-i18next'; import { Spacer, Button } from '@freecodecamp/ui'; import { Link } from '../../../components/helpers'; import RdbLocalLogoutAlert from './rdb-local-logout-alert'; interface LocalInstructionsProps { copyUrl: () => void; copyUserToken...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/codeally/rdb-ona-continue-alert.tsx
client/src/templates/Challenges/codeally/rdb-ona-continue-alert.tsx
import React from 'react'; import { Trans, useTranslation } from 'react-i18next'; import { Callout, Spacer } from '@freecodecamp/ui'; interface RdbOnaContinueAlertProps { course: string; } function RdbOnaContinueAlert({ course }: RdbOnaContinueAlertProps): JSX.Element { const { t } = useTranslation(); return ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/codeally/rdb-ona-logout-alert.tsx
client/src/templates/Challenges/codeally/rdb-ona-logout-alert.tsx
import React from 'react'; import { useTranslation } from 'react-i18next'; import { Callout } from '@freecodecamp/ui'; interface RdbOnaLogoutAlertProps { course: string; } function RdbOnaLogoutAlert({ course }: RdbOnaLogoutAlertProps): JSX.Element { const { t } = useTranslation(); return ( <Callout variant...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/codeally/ona-instructions.tsx
client/src/templates/Challenges/codeally/ona-instructions.tsx
import React from 'react'; import { Trans, useTranslation } from 'react-i18next'; import { Spacer, Button } from '@freecodecamp/ui'; import { CodeAllyButton } from '../../../components/growth-book/codeally-button'; import RdbOnaContinueAlert from './rdb-ona-continue-alert'; import RdbOnaLogoutAlert from './rdb-ona-lo...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/exam/show.tsx
client/src/templates/Challenges/exam/show.tsx
// Package Utilities import { graphql, navigate } from 'gatsby'; import React, { useEffect, useRef, useState } from 'react'; import Helmet from 'react-helmet'; import type { TFunction } from 'i18next'; import { withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators }...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/exam/components/foundational-c-sharp-survey.tsx
client/src/templates/Challenges/exam/components/foundational-c-sharp-survey.tsx
import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import type { Dispatch } from 'redux'; import { createSelector } from 'reselect'; import { Button, Modal, Spacer } from '@freecodecamp/ui'; import ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/exam/components/exit-exam-modal.tsx
client/src/templates/Challenges/exam/components/exit-exam-modal.tsx
// Package Utilities import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { createSelector } from 'reselect'; import { useTranslation } from 'react-i18next'; import { Button, Modal, Spacer } from '@freecodecamp/ui'; // Local Utilities import { c...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/exam/components/exam-results.tsx
client/src/templates/Challenges/exam/components/exam-results.tsx
import React, { useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import { Button, Spacer } from '@freecodecamp/ui'; import { formatSecondsToTime } from '../../../../utils/format-seconds'; import { GeneratedExamResults } from '../../../../redux/prop-types'; interface ExamResultsProps { dashe...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/exam/components/missing-prerequisites.tsx
client/src/templates/Challenges/exam/components/missing-prerequisites.tsx
import { useStaticQuery, graphql } from 'gatsby'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { Callout, Spacer } from '@freecodecamp/ui'; import { AllChallengeNode, PrerequisiteChallenge } from '../../../../redux/prop-types'; import { Link } from '../../../../components/helpe...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/exam/components/finish-exam-modal.tsx
client/src/templates/Challenges/exam/components/finish-exam-modal.tsx
// Package Utilities import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { createSelector } from 'reselect'; import { useTranslation } from 'react-i18next'; import { Button, Modal, Spacer } from '@freecodecamp/ui'; // Local Utilities import { c...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/exam/components/foundational-c-sharp-survey-alert.tsx
client/src/templates/Challenges/exam/components/foundational-c-sharp-survey-alert.tsx
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { useTranslation } from 'react-i18next'; import { Panel, Button, Spacer } from '@freecodecamp/ui'; import { openModal } from '../../redux/actions'; import SurveyModal from './survey-modal'; co...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/exam/components/survey-modal.tsx
client/src/templates/Challenges/exam/components/survey-modal.tsx
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { createSelector } from 'reselect'; import { Modal } from '@freecodecamp/ui'; import { closeModal } from '../../redux/actions'; import { isSurveyModalOpenSelector } from '../../redux/selectors...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/quiz/exit-quiz-modal.tsx
client/src/templates/Challenges/quiz/exit-quiz-modal.tsx
import React from 'react'; import { connect } from 'react-redux'; import { useTranslation } from 'react-i18next'; import { Button, Modal, Spacer } from '@freecodecamp/ui'; import { closeModal } from '../redux/actions'; import { isExitQuizModalOpenSelector } from '../redux/selectors'; interface ExitQuizModalProps { ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/quiz/show.tsx
client/src/templates/Challenges/quiz/show.tsx
import { graphql } from 'gatsby'; import React, { useCallback, useEffect, useRef, useState } from 'react'; import Helmet from 'react-helmet'; import { ObserveKeys } from 'react-hotkeys'; import { useTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; im...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/quiz/finish-quiz-modal.tsx
client/src/templates/Challenges/quiz/finish-quiz-modal.tsx
import React from 'react'; import { connect } from 'react-redux'; import { useTranslation } from 'react-i18next'; import { Button, Modal, Spacer } from '@freecodecamp/ui'; import { closeModal } from '../redux/actions'; import { isFinishQuizModalOpenSelector } from '../redux/selectors'; interface FinishQuizModalProps ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/projects/solution-form.tsx
client/src/templates/Challenges/projects/solution-form.tsx
import React, { Component } from 'react'; import { withTranslation } from 'react-i18next'; import type { WithTranslation } from 'react-i18next'; import { challengeTypes } from '../../../../../shared-dist/config/challenge-types'; import { StrictSolutionForm, ValidatedValues } from '../../../components/formHelpers/f...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/projects/tool-panel.tsx
client/src/templates/Challenges/projects/tool-panel.tsx
import React from 'react'; import type { TFunction } from 'i18next'; import { withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { Button, Spacer } from '@freecodecamp/ui'; import { openModal } from '../redux/actions'; const mapS...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/projects/backend/show.tsx
client/src/templates/Challenges/projects/backend/show.tsx
import { graphql } from 'gatsby'; import React, { useEffect, useRef } from 'react'; import Helmet from 'react-helmet'; import { withTranslation } from 'react-i18next'; import type { TFunction } from 'i18next'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Container, Col, Row...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/templates/Challenges/projects/frontend/show.tsx
client/src/templates/Challenges/projects/frontend/show.tsx
import { graphql } from 'gatsby'; import React, { useEffect, useRef } from 'react'; import Helmet from 'react-helmet'; import { type TFunction } from 'i18next'; import { withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import type { Dispatch } fr...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/client-only-routes/show-settings.tsx
client/src/client-only-routes/show-settings.tsx
import React, { useEffect } from 'react'; import Helmet from 'react-helmet'; import { useTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Spacer } from '@freecodecamp/ui'; import store from 'store'; import { scroller, Element as ScrollElemen...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/client-only-routes/show-user.tsx
client/src/client-only-routes/show-user.tsx
import React, { useState } from 'react'; import Helmet from 'react-helmet'; import type { TFunction } from 'i18next'; import { Trans, withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { FormGroup, FormControl, ControlLabel, Panel, ...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/client-only-routes/show-update-email.tsx
client/src/client-only-routes/show-update-email.tsx
import React, { useState, useEffect, type FormEvent, type ChangeEvent } from 'react'; import Helmet from 'react-helmet'; import { useTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import isEmail from 'validator/lib/isEmail'; import { Conta...
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false
freeCodeCamp/freeCodeCamp
https://github.com/freeCodeCamp/freeCodeCamp/blob/7d58ef2062b457d9370a7f730fc875f92ad28a80/client/src/client-only-routes/show-unsubscribed.tsx
client/src/client-only-routes/show-unsubscribed.tsx
import type { RouteComponentProps } from '@gatsbyjs/reach-router'; import React from 'react'; import Helmet from 'react-helmet'; import { useTranslation } from 'react-i18next'; import { Container, Panel, Button, Spacer } from '@freecodecamp/ui'; import envData from '../../config/env.json'; import FullWidthRow from '.....
typescript
BSD-3-Clause
7d58ef2062b457d9370a7f730fc875f92ad28a80
2026-01-04T15:25:31.297347Z
false