mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Add app status property
This commit is contained in:
parent
71700f292b
commit
37d427dec1
1 changed files with 19 additions and 0 deletions
|
|
@ -6,6 +6,14 @@ import slugify from 'slugify'
|
||||||
|
|
||||||
const md = new MarkdownIt()
|
const md = new MarkdownIt()
|
||||||
|
|
||||||
|
|
||||||
|
const statuses = {
|
||||||
|
'✅': 'yes',
|
||||||
|
'✳️': 'yes-but',
|
||||||
|
'⏹': 'in-progress',
|
||||||
|
'🚫': 'no'
|
||||||
|
}
|
||||||
|
|
||||||
const getTokenLinks = function ( childTokens ) {
|
const getTokenLinks = function ( childTokens ) {
|
||||||
|
|
||||||
const tokenList = []
|
const tokenList = []
|
||||||
|
|
@ -98,8 +106,19 @@ export default async function () {
|
||||||
lower: true
|
lower: true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let status = 'unknown'
|
||||||
|
|
||||||
|
for (const statusKey in statuses) {
|
||||||
|
if (text.includes(statusKey)) {
|
||||||
|
status = statuses[statusKey]
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
appList.push({
|
appList.push({
|
||||||
name,
|
name,
|
||||||
|
status,
|
||||||
url,
|
url,
|
||||||
text,
|
text,
|
||||||
slug: appSlug,
|
slug: appSlug,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue