mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 08:05:25 -05:00
35 lines
789 B
JavaScript
35 lines
789 B
JavaScript
import { pick } from 'lodash';
|
|
|
|
export {
|
|
getEncodedEmail,
|
|
decodeEmail,
|
|
getWaitMessage,
|
|
getWaitPeriod,
|
|
renderEmailChangeEmail,
|
|
renderSignUpEmail,
|
|
renderSignInEmail
|
|
} from './auth';
|
|
|
|
export const fixCompletedChallengeItem = obj =>
|
|
pick(obj, [
|
|
'id',
|
|
'completedDate',
|
|
'solution',
|
|
'githubLink',
|
|
'challengeType',
|
|
'files',
|
|
'isManuallyApproved',
|
|
'examResults'
|
|
]);
|
|
|
|
export const fixSavedChallengeItem = obj =>
|
|
pick(obj, ['id', 'lastSavedDate', 'files']);
|
|
|
|
export const fixPartiallyCompletedChallengeItem = obj =>
|
|
pick(obj, ['id', 'completedDate']);
|
|
|
|
export const fixCompletedExamItem = obj =>
|
|
pick(obj, ['id', 'completedDate', 'challengeType', 'examResults']);
|
|
|
|
export const fixCompletedSurveyItem = obj => pick(obj, ['title', 'responses']);
|