mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Merge branch 'master' into feat/eleventy
This commit is contained in:
commit
a17cdb8504
6 changed files with 158 additions and 57 deletions
|
|
@ -73,6 +73,9 @@ export default {
|
|||
}
|
||||
|
||||
categoryList[app.category.slug] = {
|
||||
// Merg in category data from app
|
||||
...app.category,
|
||||
// Merge in category data from category file
|
||||
...categories[app.category.slug],
|
||||
appNamesList: [ app.name ]
|
||||
}
|
||||
|
|
@ -81,11 +84,14 @@ export default {
|
|||
// Add App Names Text into categoryList
|
||||
Object.keys(categoryList).map(function(key, index) {
|
||||
const category = categoryList[key]
|
||||
|
||||
categoryList[key] = {
|
||||
...category,
|
||||
appNames: category.appNamesList.slice(0, 25).join(', ') + ', etc...'
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
// console.log('categoryList', categoryList)
|
||||
|
||||
return {
|
||||
categoryList
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<section class="container py-24">
|
||||
<div class="flex flex-col items-center">
|
||||
<h1 class="title text-3xl md:text-5xl font-hairline leading-tight text-center pb-4">
|
||||
{{ category.pluralLabel || category.label }} that are reported to support Apple Silicon
|
||||
{{ pluralLabel }} that are reported to support Apple Silicon
|
||||
</h1>
|
||||
|
||||
<h2
|
||||
|
|
@ -115,7 +115,25 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
category () {
|
||||
return categories[this.slug]
|
||||
if ( categories.hasOwnProperty( this.slug ) ) {
|
||||
return categories[this.slug]
|
||||
}
|
||||
|
||||
// Try to find the category info within the passed apps
|
||||
const appWithCategory = this.categoryAppList.find( app => {
|
||||
return app.category.slug === this.slug
|
||||
})
|
||||
|
||||
// console.log('appWithCategory', appWithCategory)
|
||||
|
||||
return appWithCategory.category
|
||||
},
|
||||
pluralLabel () {
|
||||
if ( this.category.hasOwnProperty('pluralLabel') ) {
|
||||
return this.category.pluralLabel
|
||||
}
|
||||
|
||||
return this.category.label
|
||||
},
|
||||
supportedAppList () {
|
||||
return this.categoryAppList.filter(app => {
|
||||
|
|
@ -123,10 +141,10 @@ export default {
|
|||
}).map(app => app.name)
|
||||
},
|
||||
title () {
|
||||
return `List of ${this.category.pluralLabel || this.category.label} that work on Apple Silicon?`
|
||||
return `List of ${this.pluralLabel || this.category.label} that work on Apple Silicon?`
|
||||
},
|
||||
description () {
|
||||
return `Check the the latest reported support status of ${this.category.pluralLabel || this.category.label} on Apple Silicon and Apple M1 Processors. `
|
||||
return `Check the the latest reported support status of ${this.pluralLabel || this.category.label} on Apple Silicon and Apple M1 Processors. `
|
||||
},
|
||||
},
|
||||
head() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue