| 
									
										
										
										
											2020-01-03 07:02:31 +01:00
										 |  |  | import { dasherize } from './slugs'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const idToTitle = new Map( | 
					
						
							|  |  |  |   Object.entries({ | 
					
						
							|  |  |  |     '561add10cb82ac38a17523bc': 'APIs and Microservices', | 
					
						
							|  |  |  |     '5a553ca864b52e1d8bceea14': 'Data Visualization', | 
					
						
							|  |  |  |     '561acd10cb82ac38a17513bc': 'Front End Libraries', | 
					
						
							| 
									
										
										
										
											2020-04-06 14:49:56 -04:00
										 |  |  |     '5e611829481575a52dc59c0e': 'Quality Assurance', | 
					
						
							|  |  |  |     '5e6021435ac9d0ecd8b94b00': 'Information Security', | 
					
						
							| 
									
										
										
										
											2020-01-03 07:02:31 +01:00
										 |  |  |     '561abd10cb81ac38a17513bc': 'JavaScript Algorithms and Data Structures', | 
					
						
							|  |  |  |     '561add10cb82ac38a17513bc': 'Responsive Web Design', | 
					
						
							|  |  |  |     '660add10cb82ac38a17513be': 'Legacy Back End', | 
					
						
							|  |  |  |     '561add10cb82ac39a17513bc': 'Legacy Data Visualization', | 
					
						
							|  |  |  |     '561add10cb82ac38a17513be': 'Legacy Front End', | 
					
						
							| 
									
										
										
										
											2020-04-23 09:08:50 -04:00
										 |  |  |     '561add10cb82ac38a17213bc': | 
					
						
							|  |  |  |       'Legacy Information Security and Quality Assurance', | 
					
						
							| 
									
										
										
										
											2020-06-16 01:21:30 +09:00
										 |  |  |     '561add10cb82ac38a17213bd': 'Legacy Full Stack', | 
					
						
							| 
									
										
										
										
											2020-02-25 00:10:32 +05:30
										 |  |  |     '5e44431b903586ffb414c951': 'Scientific Computing with Python', | 
					
						
							|  |  |  |     '5e46fc95ac417301a38fb934': 'Data Analysis with Python', | 
					
						
							|  |  |  |     '5e46fc95ac417301a38fb935': 'Machine Learning with Python' | 
					
						
							| 
									
										
										
										
											2020-01-03 07:02:31 +01:00
										 |  |  |   }) | 
					
						
							|  |  |  | ); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const idToPath = new Map(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-16 01:21:30 +09:00
										 |  |  | // Keep the timeline slugs the same so
 | 
					
						
							|  |  |  | // we don't break existing links
 | 
					
						
							|  |  |  | const specialPaths = { | 
					
						
							|  |  |  |   'Legacy Full Stack': 'Full Stack', | 
					
						
							|  |  |  |   'Legacy Information Security and Quality Assurance': | 
					
						
							|  |  |  |     'Information Security and Quality Assurance', | 
					
						
							| 
									
										
										
										
											2020-06-18 00:00:31 +09:00
										 |  |  |   'Scientific Computing with Python': 'Scientific Computing with Python V7', | 
					
						
							|  |  |  |   'Data Analysis with Python': 'Data Analysis with Python V7', | 
					
						
							|  |  |  |   'Machine Learning with Python': 'Machine Learning with Python V7', | 
					
						
							|  |  |  |   'Quality Assurance': 'Quality Assurance V7', | 
					
						
							|  |  |  |   'Information Security': 'Information Security V7' | 
					
						
							| 
									
										
										
										
											2020-06-16 01:21:30 +09:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-03 07:02:31 +01:00
										 |  |  | for (const [id, title] of idToTitle) { | 
					
						
							| 
									
										
										
										
											2020-06-16 01:21:30 +09:00
										 |  |  |   if (specialPaths[title]) { | 
					
						
							|  |  |  |     idToPath.set(id, dasherize(specialPaths[title])); | 
					
						
							|  |  |  |   } else { | 
					
						
							|  |  |  |     idToPath.set(id, dasherize(title)); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2020-01-03 07:02:31 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export const getCertIds = () => idToPath.keys(); | 
					
						
							|  |  |  | export const getPathFromID = id => idToPath.get(id); | 
					
						
							|  |  |  | export const getTitleFromId = id => idToTitle.get(id); |