Add categories to stork config

This commit is contained in:
Sam Carlton 2022-05-18 12:34:02 -05:00
parent 63e8770746
commit e8a34741bc

View file

@ -12,6 +12,9 @@ import {
import { import {
getRouteType getRouteType
} from '~/helpers/app-derived.js' } from '~/helpers/app-derived.js'
import {
getAppCategory
} from '~/helpers/categories.js'
import { import {
storkTomlPath, storkTomlPath,
} from '~/helpers/stork/config.js' } from '~/helpers/stork/config.js'
@ -53,6 +56,7 @@ function makeDetailsFromListing ({ listing, route }) {
return [ return [
listing.content || '∅', // Null Symbol listing.content || '∅', // Null Symbol
has( listing, 'status' ) ? `status_${ listing.status }` : '', has( listing, 'status' ) ? `status_${ listing.status }` : '',
has( listing, 'category' ) ? `category_${ getAppCategory( listing ).snakeSlug }` : '',
`type_${ getRouteType( route ) }`, `type_${ getRouteType( route ) }`,
// Brownmatter // Brownmatter
matter.stringify( '', contents ), matter.stringify( '', contents ),