Use global macs and processor verbiage

This commit is contained in:
Sam Carlton 2022-06-12 17:26:19 -05:00
parent 4aea7cbabd
commit 652379628f
11 changed files with 14 additions and 14 deletions

View file

@ -154,7 +154,7 @@ export function makeTitle ( listing ) {
} }
export function makeDescription ( listing ) { export function makeDescription ( listing ) {
return `Latest reported support status of ${ listing.name } on Apple Silicon and Apple M1 Pro and M1 Max Processors.` return `Latest reported support status of ${ listing.name } on Apple Silicon and ${ this.$config.processorsVerbiage } Processors.`
} }
function makeTag ( tag, tagName = 'meta' ) { function makeTag ( tag, tagName = 'meta' ) {

View file

@ -20,7 +20,7 @@ function makeTitle ( listing ) {
} }
function makeDescription ( listing ) { function makeDescription ( listing ) {
return `Latest reported support status of ${ listing.name } on Apple Silicon and Apple M1 Pro and M1 Max Processors.` return `Latest reported support status of ${ listing.name } on Apple Silicon and ${ global.$config.processorsVerbiage } Processors.`
} }
function convertYoutubeImageUrl ( stringWithUrls, extension ) { function convertYoutubeImageUrl ( stringWithUrls, extension ) {

View file

@ -207,7 +207,7 @@ export default {
}, },
computed: { computed: {
npm_package_config_verbiage_macs () { npm_package_config_verbiage_macs () {
return this.config.macsVerbiage //process.env.npm_package_config_verbiage_macs return this.$config.macsVerbiage //process.env.npm_package_config_verbiage_macs
}, },
foundFiles () { foundFiles () {
return this.appsBeingScanned.filter( appScan => { return this.appsBeingScanned.filter( appScan => {
@ -271,7 +271,7 @@ export default {
return `Apple Silicon Compatibility Test Online` return `Apple Silicon Compatibility Test Online`
}, },
description () { description () {
return `Check for Apple Silicon compatibility for any of your apps instantly before you buy an ${ this.config.macsVerbiage }. ` return `Check for Apple Silicon compatibility for any of your apps instantly before you buy an ${ this.$config.macsVerbiage }. `
} }
}, },
mounted () { mounted () {
@ -304,7 +304,7 @@ export default {
// Bring in code // Bring in code
const { default: AppFilesScanner } = await import('~/helpers/app-files-scanner.js') const { default: AppFilesScanner } = await import('~/helpers/app-files-scanner.js')
const testResultStore = this.config ? this.config.testResultStore : this.$config.testResultStore const testResultStore = this.config ? this.$config.testResultStore : this.$config.testResultStore
// Initialize instance // Initialize instance
this.scanner = new AppFilesScanner({ this.scanner = new AppFilesScanner({

View file

@ -26,7 +26,7 @@ Astro.response.statusText = 'Not found'
<Layout <Layout
headOptions={ { headOptions={ {
title: `Page is not compatible with Apple Silicon - Does It ARM`, title: `Page is not compatible with Apple Silicon - Does It ARM`,
description: `Check for Apple Silicon compatibility for any of your apps instantly before you buy an M1 Pro or M1 Max Mac. `, description: `Check for Apple Silicon compatibility for any of your apps instantly before you buy an ${ global.$config.processorsVerbiage } Mac. `,
// meta, // meta,
// link, // link,
// structuredData: this.structuredData, // structuredData: this.structuredData,

View file

@ -16,7 +16,7 @@ import AppTestPage from '~/pages/apple-silicon-app-test.vue'
<Layout <Layout
headOptions={ { headOptions={ {
title: `Apple Silicon Compatibility Test Online - Does It ARM`, title: `Apple Silicon Compatibility Test Online - Does It ARM`,
description: `Check for Apple Silicon compatibility for any of your apps instantly before you buy an M1 Pro or M1 Max Mac. `, description: `Check for Apple Silicon compatibility for any of your apps instantly before you buy an ${ global.$config.processorsVerbiage } Mac. `,
// meta, // meta,
// link, // link,
// structuredData: this.structuredData, // structuredData: this.structuredData,

View file

@ -25,7 +25,7 @@ const kinds = Object.values( kindIndex ).map( category => {
<Layout <Layout
headOptions={ { headOptions={ {
title: 'Categories of App Support lists for Apple Silicon', title: 'Categories of App Support lists for Apple Silicon',
description: 'List of compatibility apps and games for Apple Silicon and the Apple M1 Pro and M1 Max Processors including performance reports and benchmarks', description: `List of compatibility apps and games for Apple Silicon and the ${ this.$config.processorsVerbiage } Processors including performance reports and benchmarks`,
// meta, // meta,
// link, // link,
// structuredData: this.structuredData, // structuredData: this.structuredData,

View file

@ -26,7 +26,7 @@ const kinds = deviceIndex.items.map( device => {
<Layout <Layout
headOptions={ { headOptions={ {
title: 'List of Apple Devices for Apple Silicon App Support', title: 'List of Apple Devices for Apple Silicon App Support',
description: 'List of devices for Apple Silicon and the Apple M1 Pro and M1 Max Processors', description: `List of devices for Apple Silicon and the ${ global.$config.processorsVerbiage } Processors`,
// meta, // meta,
// link, // link,
// structuredData: this.structuredData, // structuredData: this.structuredData,

View file

@ -46,7 +46,7 @@ const video = {
<Layout <Layout
headOptions={ { headOptions={ {
title: 'Video - Does It ARM', title: 'Video - Does It ARM',
// description: `Check for Apple Silicon compatibility for any of your apps instantly before you buy an M1 Pro or M1 Max Mac. `, // description: ``,
// meta, // meta,
// link, // link,
// structuredData: this.structuredData, // structuredData: this.structuredData,

View file

@ -57,7 +57,7 @@ const pageLabel = category?.pluralLabel || category.label
<Layout <Layout
headOptions={{ headOptions={{
title: `List of ${ pageLabel } that work on Apple Silicon?`, title: `List of ${ pageLabel } that work on Apple Silicon?`,
description: `Check the latest reported support status of ${ pageLabel } on Apple Silicon and Apple M1 Pro and M1 Max Processors. `, description: `Check the latest reported support status of ${ pageLabel } on Apple Silicon and ${ global.$config.processorsVerbiage } Processors. `,
// meta, // meta,
// link, // link,
// structuredData: this.structuredData, // structuredData: this.structuredData,

View file

@ -22,8 +22,8 @@ const allAppsSummary = await DoesItAPI('all-apps-summary').get()
--- ---
<Layout <Layout
headOptions={ { headOptions={ {
title: 'Apple Silicon and Apple M1 Pro and M1 Max app and game compatibility list', title: `Apple Silicon and ${ global.$config.processorsVerbiage } app and game compatibility list`,
description: 'List of compatibility apps and games for Apple Silicon and the Apple M1 Pro and M1 Max Processors including performance reports and benchmarks', description: `List of compatibility apps and games for Apple Silicon and the ${ global.$config.processorsVerbiage } Processors including performance reports and benchmarks`,
// meta, // meta,
// link, // link,
// structuredData: this.structuredData, // structuredData: this.structuredData,

View file

@ -67,7 +67,7 @@ if ( !!categorySlug ) {
<Layout <Layout
headOptions={{ headOptions={{
title: `List of ${ pageLabel } that work on Apple Silicon?`, title: `List of ${ pageLabel } that work on Apple Silicon?`,
description: `Check the latest reported support status of ${ pageLabel } on Apple Silicon and Apple M1 Pro and M1 Max Processors. `, description: `Check the latest reported support status of ${ pageLabel } on Apple Silicon and ${ global.$config.processorsVerbiage } Processors. `,
// meta, // meta,
// link, // link,
// structuredData: this.structuredData, // structuredData: this.structuredData,