mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Sort categories
This commit is contained in:
parent
7c4d36ac9d
commit
610175db27
1 changed files with 9 additions and 2 deletions
|
|
@ -52,10 +52,17 @@ export default {
|
|||
const { allList } = await import('~/helpers/get-list.js')
|
||||
const { categories } = await import('~/helpers/categories.js')
|
||||
|
||||
const categoryList = {}
|
||||
// Map Categories into category list
|
||||
const categoryList = Object.fromEntries(Object.entries(categories).map( ( entry ) => {
|
||||
entry[1].appNamesList = []
|
||||
return entry
|
||||
} ))
|
||||
|
||||
// Delete no-category
|
||||
delete categoryList['no-category']
|
||||
|
||||
allList.forEach( app => {
|
||||
// Find and store all categorys
|
||||
// Find and store all categories
|
||||
|
||||
// console.log('app.category.slug', app.category.slug)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue