From 652379628ff8530c282c7da6fee1f7f8bb731356 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sun, 12 Jun 2022 17:26:19 -0500 Subject: [PATCH] Use global macs and processor verbiage --- helpers/config-node.js | 2 +- helpers/listing-page.js | 2 +- pages/apple-silicon-app-test.vue | 6 +++--- src/pages/[...page].astro | 2 +- src/pages/apple-silicon-app-test.astro | 2 +- src/pages/categories.astro | 2 +- src/pages/devices.astro | 2 +- src/pages/embed/rich-results-player.astro | 2 +- src/pages/games.astro | 2 +- src/pages/index.astro | 4 ++-- src/pages/kind/[...kindPath].astro | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/helpers/config-node.js b/helpers/config-node.js index 685c5a2..3ceb7af 100644 --- a/helpers/config-node.js +++ b/helpers/config-node.js @@ -154,7 +154,7 @@ export function makeTitle ( 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' ) { diff --git a/helpers/listing-page.js b/helpers/listing-page.js index cba0e2e..7809452 100644 --- a/helpers/listing-page.js +++ b/helpers/listing-page.js @@ -20,7 +20,7 @@ function makeTitle ( 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 ) { diff --git a/pages/apple-silicon-app-test.vue b/pages/apple-silicon-app-test.vue index d0097c4..0f67317 100644 --- a/pages/apple-silicon-app-test.vue +++ b/pages/apple-silicon-app-test.vue @@ -207,7 +207,7 @@ export default { }, computed: { 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 () { return this.appsBeingScanned.filter( appScan => { @@ -271,7 +271,7 @@ export default { return `Apple Silicon Compatibility Test Online` }, 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 () { @@ -304,7 +304,7 @@ export default { // Bring in code 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 this.scanner = new AppFilesScanner({ diff --git a/src/pages/[...page].astro b/src/pages/[...page].astro index 6919591..0f1c9d9 100644 --- a/src/pages/[...page].astro +++ b/src/pages/[...page].astro @@ -26,7 +26,7 @@ Astro.response.statusText = 'Not found' { {