From 8e4021bab0b5536c2e70c0035468f76d8d53db67 Mon Sep 17 00:00:00 2001 From: Gamebrary Date: Wed, 20 Jan 2021 15:36:47 -0700 Subject: [PATCH] Show amazon affiliate links in game modal --- functions/index.js | 1 + src/components/Game/AmazonLinks.vue | 66 +++++++++++++++++++++++++++++ src/components/Game/GameModal.vue | 5 +++ 3 files changed, 72 insertions(+) create mode 100644 src/components/Game/AmazonLinks.vue diff --git a/functions/index.js b/functions/index.js index 8cfa153d..b64d75f3 100755 --- a/functions/index.js +++ b/functions/index.js @@ -222,6 +222,7 @@ exports.game = functions.https.onRequest((req, res) => { alternative_names.*, age_ratings.*, videos.video_id, + external_games.*, rating, genres.name, platforms.name, diff --git a/src/components/Game/AmazonLinks.vue b/src/components/Game/AmazonLinks.vue new file mode 100644 index 00000000..d181d663 --- /dev/null +++ b/src/components/Game/AmazonLinks.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/src/components/Game/GameModal.vue b/src/components/Game/GameModal.vue index 5f7be28e..fbde8270 100644 --- a/src/components/Game/GameModal.vue +++ b/src/components/Game/GameModal.vue @@ -41,6 +41,7 @@