mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add Route type to contents
This commit is contained in:
parent
9f5902e07e
commit
ac90bf1a24
1 changed files with 5 additions and 1 deletions
|
|
@ -9,6 +9,9 @@ import {
|
||||||
isNonEmptyString,
|
isNonEmptyString,
|
||||||
isNonEmptyArray
|
isNonEmptyArray
|
||||||
} from '~/helpers/check-types.js'
|
} from '~/helpers/check-types.js'
|
||||||
|
import {
|
||||||
|
getRouteType
|
||||||
|
} from '~/helpers/app-derived.js'
|
||||||
import {
|
import {
|
||||||
storkTomlPath,
|
storkTomlPath,
|
||||||
} from '~/helpers/stork/config.js'
|
} from '~/helpers/stork/config.js'
|
||||||
|
|
@ -17,7 +20,7 @@ import { downloadStorkExecutable } from '~/helpers/stork/executable.js'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function makeDetailsFromListing ( listing ) {
|
function makeDetailsFromListing ({ listing, route }) {
|
||||||
|
|
||||||
const propertiesToCheck = {
|
const propertiesToCheck = {
|
||||||
text: isNonEmptyString,
|
text: isNonEmptyString,
|
||||||
|
|
@ -50,6 +53,7 @@ function makeDetailsFromListing ( listing ) {
|
||||||
return [
|
return [
|
||||||
listing.content || '∅', // Null Symbol
|
listing.content || '∅', // Null Symbol
|
||||||
has( listing, 'status' ) ? `status_${ listing.status }` : '',
|
has( listing, 'status' ) ? `status_${ listing.status }` : '',
|
||||||
|
`type_${ getRouteType( route ) }`,
|
||||||
// Brownmatter
|
// Brownmatter
|
||||||
matter.stringify( '', contents ),
|
matter.stringify( '', contents ),
|
||||||
].join('\r\n')
|
].join('\r\n')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue