Add benchmark and performance links to search

This commit is contained in:
Sam Carlton 2020-12-28 14:44:28 -06:00
parent f1a772b905
commit f62f33d98c
4 changed files with 138 additions and 33 deletions

View file

@ -34,6 +34,29 @@ import ThomasCredit from '~/components/thomas-credit.vue'
import gameList from '~/static/game-list.json'
export default {
async asyncData () {
const { sortedAppList, allList, allVideoAppsList, makeAppSearchLinks } = await import('~/helpers/get-list.js')
const { default: gameList } = await import('~/static/game-list.json')
return {
// Map game list
gameList: gameList.map( app => {
return {
name: app.name,
status: app.status,
slug: app.slug,
// endpoint: app.endpoint,
text: app.text,
lastUpdated: app.lastUpdated,
category: app.category,
searchLinks: makeAppSearchLinks(app)
}
}),
// allAppSearchLinks,
// customSummaryNumbers: getListSummaryNumbers(allList)
}
},
components: {
Search,
LinkButton,
@ -59,9 +82,9 @@ export default {
}
},
computed: {
gameList() {
return gameList
}
// gameList() {
// return gameList
// }
},
head() {
return {