Add filter logic for overview page

This commit is contained in:
Tom Raithel
2017-02-20 20:12:34 +01:00
parent 9f33c7a8ca
commit c8ee3da561
7 changed files with 89 additions and 67 deletions

View File

@@ -7,12 +7,13 @@ export const getPageNames = (radar) => {
]
}
const mappings = {
const messages = {
'languages-and-frameworks': 'Languages & Frameworks',
'methods-and-patterns': 'Methods & Patterns',
'platforms-and-aoe-services': 'Platforms and AOE Services',
'tools': 'Tools',
};
export const translate = (key) => (messages[key] || '-');
const formatRelease = (release) => moment(release, 'YYYY-MM-DD').format('MMM YYYY');