Generate app variations with fake list

This commit is contained in:
Sam Carlton 2021-06-11 16:30:53 -05:00
parent 85254fe0f4
commit 2cca34a689
4 changed files with 119 additions and 40 deletions

View file

@ -185,6 +185,18 @@ export const categories = {
},
}
const nonAppCategorySlugs = [
'games',
'homebrew',
'no-category'
]
export const appCategories = Object.fromEntries(
Object.entries(categories).filter( ([ slug ]) => {
return !nonAppCategorySlugs.includes( slug )
})
)
export const categoriesById = Object.fromEntries( Object.entries( categories ).map( ([ key, category ]) => [category.id, { ...category, key } ] ) )