mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add categories to kinds
This commit is contained in:
parent
884dd37f6b
commit
05b0e97dce
1 changed files with 5 additions and 0 deletions
|
|
@ -289,6 +289,11 @@ class BuildLists {
|
||||||
]
|
]
|
||||||
} ) )
|
} ) )
|
||||||
|
|
||||||
|
// Add getters for categories
|
||||||
|
for ( const categorySlug in categories ) {
|
||||||
|
getters[categorySlug] = () => Array.from( this.lists.app ).filter( app => app.category.slug === categorySlug )
|
||||||
|
}
|
||||||
|
|
||||||
const kindLists = {}
|
const kindLists = {}
|
||||||
|
|
||||||
for ( const kindSlug in getters ) {
|
for ( const kindSlug in getters ) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue