From c4a334d4001f8c4503c7cb613ae31c41a808fb04 Mon Sep 17 00:00:00 2001 From: Tobias Messner Date: Fri, 21 Jul 2023 23:30:13 +0200 Subject: [PATCH] Add twitter gfx --- website/package.json | 1 + .../components/broadcast/roots/GFXRoot.vue | 6 ++- .../broadcast/roots/TweetOverlay.vue | 40 +++++++++++++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 website/src/components/broadcast/roots/TweetOverlay.vue diff --git a/website/package.json b/website/package.json index ea44a0ec..786701dd 100644 --- a/website/package.json +++ b/website/package.json @@ -27,6 +27,7 @@ "vue-meta": "^2.4.0", "vue-router": "^3.2.0", "vue-socket.io-extended": "^4.1.0", + "vue-tweet-embed": "^2.4.0", "vue-youtube-embed": "^2.2.2", "vuex": "^3.6.2" }, diff --git a/website/src/components/broadcast/roots/GFXRoot.vue b/website/src/components/broadcast/roots/GFXRoot.vue index c77a926a..9e89a1ae 100644 --- a/website/src/components/broadcast/roots/GFXRoot.vue +++ b/website/src/components/broadcast/roots/GFXRoot.vue @@ -3,6 +3,7 @@ + @@ -18,10 +19,11 @@ import BracketOverlay from "@/components/broadcast/roots/BracketOverlay.vue"; import ImageOverlay from "@/components/broadcast/roots/ImageOverlay.vue"; import IframeOverlay from "@/components/broadcast/roots/IframeOverlay.vue"; import StandingsOverlay from "@/components/broadcast/roots/StandingsOverlay.vue"; +import TweetOverlay from "@/components/broadcast/roots/TweetOverlay.vue"; export default { name: "GFXRoot", - components: { StandingsOverlay, IframeOverlay, ImageOverlay, BracketOverlay, ScheduleOverlay }, + components: { TweetOverlay, StandingsOverlay, IframeOverlay, ImageOverlay, BracketOverlay, ScheduleOverlay }, props: { index: Number, broadcast: Object, @@ -38,7 +40,7 @@ export default { forceBracket: this.gfx?.bracket, image: this.gfx?.image?.[0], url: this.gfx?.url, - key: this.gfx?.key + identifier: this.gfx?.identifier }; }, gfx() { diff --git a/website/src/components/broadcast/roots/TweetOverlay.vue b/website/src/components/broadcast/roots/TweetOverlay.vue new file mode 100644 index 00000000..d6b25c26 --- /dev/null +++ b/website/src/components/broadcast/roots/TweetOverlay.vue @@ -0,0 +1,40 @@ + + + + + +