feat(learn): add python video challenges (#38424)

This commit is contained in:
Beau Carnes
2020-04-06 14:49:56 -04:00
committed by Mrugesh Mohapatra
parent 22afc2a0ca
commit e776529ed0
218 changed files with 3411 additions and 114 deletions

View File

@@ -14,13 +14,12 @@ const preFormattedBlockNames = {
'apis-and-microservices': 'APIs and Microservices',
'apis-and-microservices-projects': 'APIs and Microservices Projects',
'scientific-computing-with-python': 'Scientific Computing with Python',
'scientific-computing-with-python-projects':
'Scientific Computing with Python Projects',
'scientific-computing-with-python-projects': 'Certification Projects',
'data-analysis-with-python': 'Data Analysis with Python',
'data-analysis-with-python-projects': 'Data Analysis with Python Projects',
'data-analysis-with-python-projects': 'Certification Projects',
'machine-learning-with-python': 'Machine Learning with Python',
'machine-learning-with-python-projects':
'Machine Learning with Python Projects'
'machine-learning-with-python-projects': 'Certification Projects',
'information-security-projects': 'Certification Projects'
};
const noFormatting = ['and', 'for', 'of', 'the', 'up', 'with'];

View File

@@ -10,6 +10,7 @@ const step = 7;
const quiz = 8;
const invalid = 9;
const pythonProject = 10;
const video = 11;
// individual exports
exports.backend = backend;
@@ -29,7 +30,8 @@ exports.challengeTypes = {
modern,
step,
quiz,
invalid
invalid,
video
};
// turn challengeType to file ext
@@ -45,11 +47,12 @@ exports.viewTypes = {
[bonfire]: 'classic',
[frontEndProject]: 'frontend',
[backEndProject]: 'backend',
[pythonProject]: 'backend',
[pythonProject]: 'frontend',
[modern]: 'modern',
[step]: 'step',
[quiz]: 'quiz',
[backend]: 'backend'
[backend]: 'backend',
[video]: 'video'
};
// determine the type of submit function to use for the challenge on completion
@@ -68,7 +71,8 @@ exports.submitTypes = {
[step]: 'step',
[quiz]: 'quiz',
[backend]: 'backend',
[modern]: 'tests'
[modern]: 'tests',
[video]: 'tests'
};
// determine which help forum questions should be posted to
@@ -109,8 +113,8 @@ exports.helpCategory = {
'information-security-with-helmetjs': 'JavaScript',
'quality-assurance-and-testing-with-chai': 'JavaScript',
'advanced-node-and-express': 'JavaScript',
'information-security-and-quality-assurance-projects':
'Certification Projects',
'quality-assurance-projects': 'Certification Projects',
'information-security-projects': 'Certification Projects',
algorithms: 'JavaScript',
'data-structures': 'JavaScript',
'take-home-projects': 'Certification Projects',

View File

@@ -23,12 +23,17 @@ const superBlockIntro = path.resolve(
__dirname,
'../../src/templates/Introduction/SuperBlockIntro.js'
);
const video = path.resolve(
__dirname,
'../../src/templates/Challenges/video/Show.js'
);
const views = {
backend,
classic,
modern: classic,
frontend
frontend,
video
// quiz: Quiz
};