chore: use constants for superblocks (#43886)
* chore: use constants for superblocks * add prettier ts dec to challenge-helper-scripts * config/ to ts. broken * typescripterise tools/ and config/ * create global tsconfig, remove alternate configs * delete temp ts->js, add to gitignore * fix gitignore * re-import SuperBlocks in super-block-intro.tsx * remove renamed files added again * fix config * remove accidental files * remove snap * delete built files * adjust eslintrc for enums * add node types to root * ignore build files in lint and prettier * fix tools/ in tsconfig * ignore annoying ts warnings * prettierise Map/index.tsx * fix enum to match lint rule * rejig Map to render RWD superblock * 'pretty minor' - implicitly tsc within root Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * fix client/package.json for Gitpod * broken: migrate @types to root * fix: use typeRoots to prevent duplication * fix show.tsx, try typeroots in root * silly fix for duplicate node_modules types * remove typeRoots from root * fix: tsconfig or not tsconfig, that is the... * fix: ...question: Whether 'tis nobler in the mind to suffer the slings and arrows of outrageous configs... * fix: Or to take Arms against a Sea of lint errors And by opposing end them Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
157
config/certification-settings.ts
Normal file
157
config/certification-settings.ts
Normal file
@ -0,0 +1,157 @@
|
||||
export const certTypes = {
|
||||
frontEnd: 'isFrontEndCert',
|
||||
backEnd: 'isBackEndCert',
|
||||
dataVis: 'isDataVisCert',
|
||||
respWebDesign: 'isRespWebDesignCert',
|
||||
frontEndDevLibs: 'isFrontEndLibsCert',
|
||||
dataVis2018: 'is2018DataVisCert',
|
||||
jsAlgoDataStruct: 'isJsAlgoDataStructCert',
|
||||
apisMicroservices: 'isApisMicroservicesCert',
|
||||
infosecQa: 'isInfosecQaCert',
|
||||
qaV7: 'isQaCertV7',
|
||||
infosecV7: 'isInfosecCertV7',
|
||||
sciCompPyV7: 'isSciCompPyCertV7',
|
||||
dataAnalysisPyV7: 'isDataAnalysisPyCertV7',
|
||||
machineLearningPyV7: 'isMachineLearningPyCertV7',
|
||||
fullStack: 'isFullStackCert',
|
||||
relationalDatabasesV8: 'isRelationalDatabasesCertV8'
|
||||
};
|
||||
|
||||
export enum SuperBlocks {
|
||||
RespWebDesign = 'responsive-web-design',
|
||||
JsAlgoDataStruct = 'javascript-algorithms-and-data-structures',
|
||||
FrontEndDevLibs = 'front-end-development-libraries',
|
||||
DataVis = 'data-visualization',
|
||||
RelationalDb = 'relational-databases',
|
||||
BackEndDevApis = 'back-end-development-and-apis',
|
||||
QualityAssurance = 'quality-assurance',
|
||||
SciCompPy = 'scientific-computing-with-python',
|
||||
DataAnalysisPy = 'data-analysis-with-python',
|
||||
InfoSec = 'information-security',
|
||||
MachineLearningPy = 'machine-learning-with-python',
|
||||
CodingInterviewPrep = 'coding-interview-prep'
|
||||
}
|
||||
|
||||
export const certIds = {
|
||||
legacyFrontEndChallengeId: '561add10cb82ac38a17513be',
|
||||
legacyBackEndChallengeId: '660add10cb82ac38a17513be',
|
||||
legacyDataVisId: '561add10cb82ac39a17513bc',
|
||||
legacyInfosecQaId: '561add10cb82ac38a17213bc',
|
||||
legacyFullStackId: '561add10cb82ac38a17213bd',
|
||||
respWebDesignId: '561add10cb82ac38a17513bc',
|
||||
frontEndDevLibsId: '561acd10cb82ac38a17513bc',
|
||||
dataVis2018Id: '5a553ca864b52e1d8bceea14',
|
||||
jsAlgoDataStructId: '561abd10cb81ac38a17513bc',
|
||||
apisMicroservicesId: '561add10cb82ac38a17523bc',
|
||||
qaV7Id: '5e611829481575a52dc59c0e',
|
||||
infosecV7Id: '5e6021435ac9d0ecd8b94b00',
|
||||
sciCompPyV7Id: '5e44431b903586ffb414c951',
|
||||
dataAnalysisPyV7Id: '5e46fc95ac417301a38fb934',
|
||||
machineLearningPyV7Id: '5e46fc95ac417301a38fb935',
|
||||
relationalDatabasesV8Id: '606243f50267e718b1e755f4'
|
||||
};
|
||||
|
||||
export const completionHours = {
|
||||
[certTypes.frontEnd]: 400,
|
||||
[certTypes.backEnd]: 400,
|
||||
[certTypes.dataVis]: 400,
|
||||
[certTypes.infosecQa]: 300,
|
||||
[certTypes.fullStack]: 1800,
|
||||
[certTypes.respWebDesign]: 300,
|
||||
[certTypes.frontEndDevLibs]: 300,
|
||||
[certTypes.jsAlgoDataStruct]: 300,
|
||||
[certTypes.dataVis2018]: 300,
|
||||
[certTypes.apisMicroservices]: 300,
|
||||
[certTypes.qaV7]: 300,
|
||||
[certTypes.infosecV7]: 300,
|
||||
[certTypes.sciCompPyV7]: 300,
|
||||
[certTypes.dataAnalysisPyV7]: 300,
|
||||
[certTypes.machineLearningPyV7]: 300,
|
||||
[certTypes.relationalDatabasesV8]: 300
|
||||
};
|
||||
|
||||
export const certSlugTypeMap = {
|
||||
// legacy
|
||||
'legacy-front-end': certTypes.frontEnd,
|
||||
'legacy-back-end': certTypes.backEnd,
|
||||
'legacy-data-visualization': certTypes.dataVis,
|
||||
// Keep these slugs the same so we don't
|
||||
// break existing links
|
||||
'information-security-and-quality-assurance': certTypes.infosecQa,
|
||||
'full-stack': certTypes.fullStack,
|
||||
|
||||
// modern
|
||||
[SuperBlocks.RespWebDesign]: certTypes.respWebDesign,
|
||||
[SuperBlocks.JsAlgoDataStruct]: certTypes.jsAlgoDataStruct,
|
||||
[SuperBlocks.FrontEndDevLibs]: certTypes.frontEndDevLibs,
|
||||
[SuperBlocks.DataVis]: certTypes.dataVis2018,
|
||||
[SuperBlocks.BackEndDevApis]: certTypes.apisMicroservices,
|
||||
'quality-assurance-v7': certTypes.qaV7,
|
||||
'information-security-v7': certTypes.infosecV7,
|
||||
'scientific-computing-with-python-v7': certTypes.sciCompPyV7,
|
||||
'data-analysis-with-python-v7': certTypes.dataAnalysisPyV7,
|
||||
'machine-learning-with-python-v7': certTypes.machineLearningPyV7,
|
||||
'relational-databases-v8': certTypes.relationalDatabasesV8
|
||||
};
|
||||
|
||||
export const superBlockCertTypeMap = {
|
||||
// legacy
|
||||
'legacy-front-end': certTypes.frontEnd,
|
||||
'legacy-back-end': certTypes.backEnd,
|
||||
'legacy-data-visualization': certTypes.dataVis,
|
||||
'information-security-and-quality-assurance': certTypes.infosecQa,
|
||||
'full-stack': certTypes.fullStack,
|
||||
|
||||
// modern
|
||||
[SuperBlocks.RespWebDesign]: certTypes.respWebDesign,
|
||||
[SuperBlocks.JsAlgoDataStruct]: certTypes.jsAlgoDataStruct,
|
||||
[SuperBlocks.FrontEndDevLibs]: certTypes.frontEndDevLibs,
|
||||
[SuperBlocks.DataVis]: certTypes.dataVis2018,
|
||||
[SuperBlocks.BackEndDevApis]: certTypes.apisMicroservices,
|
||||
[SuperBlocks.QualityAssurance]: certTypes.qaV7,
|
||||
[SuperBlocks.InfoSec]: certTypes.infosecV7,
|
||||
[SuperBlocks.SciCompPy]: certTypes.sciCompPyV7,
|
||||
[SuperBlocks.DataAnalysisPy]: certTypes.dataAnalysisPyV7,
|
||||
[SuperBlocks.MachineLearningPy]: certTypes.machineLearningPyV7,
|
||||
[SuperBlocks.RelationalDb]: certTypes.relationalDatabasesV8
|
||||
};
|
||||
|
||||
export const certTypeIdMap = {
|
||||
[certTypes.frontEnd]: certIds.legacyFrontEndChallengeId,
|
||||
[certTypes.backEnd]: certIds.legacyBackEndChallengeId,
|
||||
[certTypes.dataVis]: certIds.legacyDataVisId,
|
||||
[certTypes.infosecQa]: certIds.legacyInfosecQaId,
|
||||
[certTypes.fullStack]: certIds.legacyFullStackId,
|
||||
[certTypes.respWebDesign]: certIds.respWebDesignId,
|
||||
[certTypes.frontEndDevLibs]: certIds.frontEndDevLibsId,
|
||||
[certTypes.jsAlgoDataStruct]: certIds.jsAlgoDataStructId,
|
||||
[certTypes.dataVis2018]: certIds.dataVis2018Id,
|
||||
[certTypes.apisMicroservices]: certIds.apisMicroservicesId,
|
||||
[certTypes.qaV7]: certIds.qaV7Id,
|
||||
[certTypes.infosecV7]: certIds.infosecV7Id,
|
||||
[certTypes.sciCompPyV7]: certIds.sciCompPyV7Id,
|
||||
[certTypes.dataAnalysisPyV7]: certIds.dataAnalysisPyV7Id,
|
||||
[certTypes.machineLearningPyV7]: certIds.machineLearningPyV7Id,
|
||||
[certTypes.relationalDatabasesV8]: certIds.relationalDatabasesV8Id
|
||||
};
|
||||
|
||||
export const certTypeTitleMap = {
|
||||
[certTypes.frontEnd]: 'Legacy Front End',
|
||||
[certTypes.backEnd]: 'Legacy Back End',
|
||||
[certTypes.dataVis]: 'Legacy Data Visualization',
|
||||
[certTypes.infosecQa]: 'Legacy Information Security and Quality Assurance',
|
||||
[certTypes.fullStack]: 'Legacy Full Stack',
|
||||
[certTypes.respWebDesign]: 'Responsive Web Design',
|
||||
[certTypes.frontEndDevLibs]: 'Front End Development Libraries',
|
||||
[certTypes.jsAlgoDataStruct]: 'JavaScript Algorithms and Data Structures',
|
||||
[certTypes.dataVis2018]: 'Data Visualization',
|
||||
[certTypes.apisMicroservices]: 'Back End Development and APIs',
|
||||
[certTypes.qaV7]: 'Quality Assurance',
|
||||
[certTypes.infosecV7]: 'Information Security',
|
||||
[certTypes.sciCompPyV7]: 'Scientific Computing with Python',
|
||||
[certTypes.dataAnalysisPyV7]: 'Data Analysis with Python',
|
||||
[certTypes.machineLearningPyV7]: 'Machine Learning with Python',
|
||||
[certTypes.relationalDatabasesV8]: 'Relational Databases'
|
||||
};
|
||||
|
||||
export const oldDataVizId = '561add10cb82ac38a17513b3';
|
Reference in New Issue
Block a user