Abstract map and showChallenge logic

Rename some legacy naming conventions
Remove logic for waypoint,basejumps, etc...
This commit is contained in:
Berkeley Martinez
2016-01-11 22:47:49 -08:00
parent 5b681bfdfd
commit b03e71e7c0
10 changed files with 173 additions and 203 deletions

View File

@@ -1,4 +1,3 @@
import _ from 'lodash';
import path from 'path';
import { Observable } from 'rx';
@@ -22,10 +21,7 @@ export default function getFromDisk$(challenge) {
challenge.tail = challenge.tail || [];
challenge.challengeType = '' + challenge.challengeType;
challenge.name =
_.capitalize(challenge.type) +
': ' +
challenge.title.replace(/[^a-zA-Z0-9\s]/g, '');
challenge.name = challenge.title.replace(/[^a-zA-Z0-9\s]/g, '');
challenge.dashedName = challenge.name
.toLowerCase()