mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(client,challenge-parser): support audio and transcript in quiz questions (#65711)
This commit is contained in:
@@ -26,6 +26,20 @@ const idToFilepath = new Map();
|
||||
// recently overwritten files
|
||||
const idToOverwrittenFile = new Map();
|
||||
|
||||
exports.createSchemaCustomization = ({ actions }) => {
|
||||
const { createTypes } = actions;
|
||||
const typeDefs = `
|
||||
type QuizQuestion {
|
||||
text: String!
|
||||
distractors: [String!]!
|
||||
answer: String!
|
||||
audioId: String
|
||||
transcript: String
|
||||
}
|
||||
`;
|
||||
createTypes(typeDefs);
|
||||
};
|
||||
|
||||
exports.sourceNodes = function sourceChallengesSourceNodes(
|
||||
{ actions, reporter, createNodeId, createContentDigest },
|
||||
pluginOptions
|
||||
|
||||
Reference in New Issue
Block a user