Files
freeCodeCamp/utils/__fixtures__/challenges.ts
Oliver Eyton-Williams b223cdd255 refactor: display solutions (#45139)
* refactor: re-organise show-project-links

* refactor: update ChallengeFile's declared shape

* fix: handle missing challenge solution

* refactor: use display function for Certification

* refactor: use display function for TimeLine

* refactor: use common component for timeline + cert

* fix: handle legacy solutions

* refactor: use widget for certifications

* refactor: reorganise ShowDisplayWidget

* refactor: remove unused ids

* test: pass dataCy, not projectTitle, to widget

* chore: kebabify

* revert: add id back for dropdown

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* revert: add the ids back

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2022-02-16 13:48:22 -08:00

61 lines
1.2 KiB
TypeScript

import { ChallengeFile } from "../../client/src/redux/prop-types";
export const challengeFiles: ChallengeFile[] = [
{
id: '1',
contents: 'some css',
error: null,
ext: 'css',
head: '',
history: ['styles.css'],
fileKey: 'stylescss',
name: 'styles',
seed: 'some css',
tail: '',
editableRegionBoundaries: [],
usesMultifileEditor: true,
},
{
id: '2',
contents: 'some html',
error: null,
ext: 'html',
head: '',
history: ['index.html'],
fileKey: 'indexhtml',
name: 'index',
seed: 'some html',
tail: '',
editableRegionBoundaries: [],
usesMultifileEditor: true,
},
{
id: '3',
contents: 'some js',
error: null,
ext: 'js',
head: '',
history: ['script.js'],
fileKey: 'scriptjs',
name: 'script',
seed: 'some js',
tail: '',
editableRegionBoundaries: [],
usesMultifileEditor: true,
},
{
id: '4',
contents: 'some jsx',
error: null,
ext: 'jsx',
head: '',
history: ['index.jsx'],
fileKey: 'indexjsx',
name: 'index',
seed: 'some jsx',
tail: '',
editableRegionBoundaries: [],
usesMultifileEditor: true,
}
]