mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
34 lines
1.7 KiB
TypeScript
34 lines
1.7 KiB
TypeScript
import { SuperBlocks } from '../../shared/config/curriculum';
|
|
|
|
export function getSuperBlockSubPath(superBlock: SuperBlocks): string {
|
|
const pathMap = {
|
|
[SuperBlocks.RespWebDesign]: '01-responsive-web-design',
|
|
[SuperBlocks.JsAlgoDataStruct]:
|
|
'02-javascript-algorithms-and-data-structures',
|
|
[SuperBlocks.FrontEndDevLibs]: '03-front-end-development-libraries',
|
|
[SuperBlocks.DataVis]: '04-data-visualization',
|
|
[SuperBlocks.BackEndDevApis]: '05-back-end-development-and-apis',
|
|
[SuperBlocks.QualityAssurance]: '06-quality-assurance',
|
|
[SuperBlocks.SciCompPy]: '07-scientific-computing-with-python',
|
|
[SuperBlocks.DataAnalysisPy]: '08-data-analysis-with-python',
|
|
[SuperBlocks.InfoSec]: '09-information-security',
|
|
[SuperBlocks.CodingInterviewPrep]: '10-coding-interview-prep',
|
|
[SuperBlocks.MachineLearningPy]: '11-machine-learning-with-python',
|
|
[SuperBlocks.RelationalDb]: '13-relational-databases',
|
|
[SuperBlocks.RespWebDesignNew]: '14-responsive-web-design-22',
|
|
[SuperBlocks.JsAlgoDataStructNew]:
|
|
'15-javascript-algorithms-and-data-structures-22',
|
|
[SuperBlocks.TheOdinProject]: '16-the-odin-project',
|
|
[SuperBlocks.CollegeAlgebraPy]: '17-college-algebra-with-python',
|
|
[SuperBlocks.ProjectEuler]: '18-project-euler',
|
|
[SuperBlocks.FoundationalCSharp]: '19-foundational-c-sharp-with-microsoft',
|
|
[SuperBlocks.A2English]: '21-a2-english-for-developers',
|
|
[SuperBlocks.RosettaCode]: '22-rosetta-code',
|
|
[SuperBlocks.PythonForEverybody]: '23-python-for-everybody',
|
|
[SuperBlocks.B1English]: '24-b1-english-for-developers',
|
|
[SuperBlocks.FullStackDeveloper]: '25-front-end-development',
|
|
[SuperBlocks.A2Spanish]: '26-a2-professional-spanish'
|
|
};
|
|
return pathMap[superBlock];
|
|
}
|