| 
									
										
										
										
											2018-04-06 14:51:52 +01:00
										 |  |  | const html = 0; | 
					
						
							|  |  |  | const js = 1; | 
					
						
							|  |  |  | const backend = 2; | 
					
						
							|  |  |  | const zipline = 3; | 
					
						
							|  |  |  | const frontEndProject = 3; | 
					
						
							|  |  |  | const backEndProject = 4; | 
					
						
							|  |  |  | const bonfire = 5; | 
					
						
							|  |  |  | const modern = 6; | 
					
						
							|  |  |  | const step = 7; | 
					
						
							|  |  |  | const quiz = 8; | 
					
						
							|  |  |  | const invalid = 9; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-17 11:33:04 +01:00
										 |  |  | // individual exports
 | 
					
						
							|  |  |  | exports.backend = backend; | 
					
						
							|  |  |  | exports.frontEndProject = frontEndProject; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-06 14:51:52 +01:00
										 |  |  | exports.challengeTypes = { | 
					
						
							|  |  |  |   html, | 
					
						
							|  |  |  |   js, | 
					
						
							|  |  |  |   backend, | 
					
						
							|  |  |  |   zipline, | 
					
						
							|  |  |  |   frontEndProject, | 
					
						
							|  |  |  |   backEndProject, | 
					
						
							|  |  |  |   bonfire, | 
					
						
							|  |  |  |   modern, | 
					
						
							|  |  |  |   step, | 
					
						
							|  |  |  |   quiz, | 
					
						
							|  |  |  |   invalid | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // turn challengeType to file ext
 | 
					
						
							|  |  |  | exports.pathsMap = { | 
					
						
							|  |  |  |   [html]: 'html', | 
					
						
							|  |  |  |   [js]: 'js', | 
					
						
							|  |  |  |   [bonfire]: 'js' | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | // determine the component to view for each challenge
 | 
					
						
							|  |  |  | exports.viewTypes = { | 
					
						
							|  |  |  |   [html]: 'classic', | 
					
						
							|  |  |  |   [js]: 'classic', | 
					
						
							|  |  |  |   [bonfire]: 'classic', | 
					
						
							|  |  |  |   [frontEndProject]: 'project', | 
					
						
							|  |  |  |   [backEndProject]: 'project', | 
					
						
							|  |  |  |   [modern]: 'modern', | 
					
						
							|  |  |  |   [step]: 'step', | 
					
						
							|  |  |  |   [quiz]: 'quiz', | 
					
						
							|  |  |  |   [backend]: 'backend' | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // determine the type of submit function to use for the challenge on completion
 | 
					
						
							|  |  |  | exports.submitTypes = { | 
					
						
							|  |  |  |   [html]: 'tests', | 
					
						
							|  |  |  |   [js]: 'tests', | 
					
						
							|  |  |  |   [bonfire]: 'tests', | 
					
						
							|  |  |  |   // requires just a single url
 | 
					
						
							|  |  |  |   // like codepen.com/my-project
 | 
					
						
							|  |  |  |   [frontEndProject]: 'project.frontEnd', | 
					
						
							|  |  |  |   // requires two urls
 | 
					
						
							|  |  |  |   // a hosted URL where the app is running live
 | 
					
						
							|  |  |  |   // project code url like GitHub
 | 
					
						
							|  |  |  |   [backEndProject]: 'project.backEnd', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   [step]: 'step', | 
					
						
							|  |  |  |   [quiz]: 'quiz', | 
					
						
							|  |  |  |   [backend]: 'backend', | 
					
						
							|  |  |  |   [modern]: 'tests' | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2018-09-27 13:41:23 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | // determine which help forum questions should be posted to
 | 
					
						
							|  |  |  | exports.helpCategory = { | 
					
						
							|  |  |  |   [html]: 'HTML-CSS', | 
					
						
							|  |  |  |   [js]: 'JavaScript', | 
					
						
							|  |  |  |   [backend]: 'JavaScript', | 
					
						
							|  |  |  |   [modern]: 'JavaScript' | 
					
						
							|  |  |  | }; |