From 1b434ed19337defb4119761300c3fac29e22f618 Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Tue, 21 Dec 2021 03:27:51 +0000 Subject: [PATCH 01/14] New solo - added files and majority of code --- .../broadcast/SoloControlButton.vue | 93 ++++++++ .../src/components/broadcast/SoloOverlay.vue | 224 ++++++++++++++++++ .../broadcast/SoloTeamControlButton.vue | 36 +++ .../components/broadcast/desk/DeskMatch.vue | 7 +- website/src/router/broadcast.js | 4 +- 5 files changed, 361 insertions(+), 3 deletions(-) create mode 100644 website/src/components/broadcast/SoloControlButton.vue create mode 100644 website/src/components/broadcast/SoloOverlay.vue create mode 100644 website/src/components/broadcast/SoloTeamControlButton.vue diff --git a/website/src/components/broadcast/SoloControlButton.vue b/website/src/components/broadcast/SoloControlButton.vue new file mode 100644 index 00000000..5c52d2bc --- /dev/null +++ b/website/src/components/broadcast/SoloControlButton.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/website/src/components/broadcast/SoloOverlay.vue b/website/src/components/broadcast/SoloOverlay.vue new file mode 100644 index 00000000..bb209049 --- /dev/null +++ b/website/src/components/broadcast/SoloOverlay.vue @@ -0,0 +1,224 @@ + + + + + diff --git a/website/src/components/broadcast/SoloTeamControlButton.vue b/website/src/components/broadcast/SoloTeamControlButton.vue new file mode 100644 index 00000000..06a813b0 --- /dev/null +++ b/website/src/components/broadcast/SoloTeamControlButton.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/website/src/components/broadcast/desk/DeskMatch.vue b/website/src/components/broadcast/desk/DeskMatch.vue index 27ad4776..27df481b 100644 --- a/website/src/components/broadcast/desk/DeskMatch.vue +++ b/website/src/components/broadcast/desk/DeskMatch.vue @@ -10,7 +10,9 @@
{{ match.score_2 }}
- {{ scoreText }} + + {{ scoreText }} +
@@ -28,7 +30,7 @@ import DeskTeam from "@/components/broadcast/desk/DeskTeam"; export default { name: "DeskMatch", components: { DeskTeam }, - props: ["_match", "themeColor"], + props: ["_match", "themeColor", "customScores"], computed: { match() { if (!this._match?.special_event) { @@ -45,6 +47,7 @@ export default { }; }, scores() { + if (this.customScores) return this.customScores; if (!this.match?.id) return []; return [this.match.score_1, this.match.score_2]; }, diff --git a/website/src/router/broadcast.js b/website/src/router/broadcast.js index 634852c1..72c4ed7c 100644 --- a/website/src/router/broadcast.js +++ b/website/src/router/broadcast.js @@ -25,6 +25,7 @@ import CamOverlay from "@/components/broadcast/cams/CamOverlay"; import DeskCamsOverlay from "@/components/broadcast/cams/DeskCamsOverlay"; import StaffOverlay from "@/components/broadcast/roots/StaffOverlay"; import CamsWrapper from "@/components/broadcast/cams/CamsWrapper"; +import SoloOverlay from "@/components/broadcast/SoloOverlay"; export default [ { path: "ingame", component: IngameOverlay, props: route => ({ codes: route.query.codes }) }, @@ -78,5 +79,6 @@ export default [ { path: "auction", component: AuctionOverlay, props: route => ({ category: route.query.category }) }, { path: "ad-read", component: AdReadOverlay, props: route => ({ extraDelay: route.query.delay }) }, { path: "logos", component: LogoAdOverlay }, - { path: "staff", component: StaffOverlay } + { path: "staff", component: StaffOverlay }, + { path: "solo", component: SoloOverlay } ]; From 8b658b5570be7cff58a640c3715e2e22ff0f975a Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Wed, 22 Dec 2021 06:11:24 +0000 Subject: [PATCH 02/14] Hide old overlay test background that shouldn't have gone live --- website/src/components/broadcast/cams/CamOverlay.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/components/broadcast/cams/CamOverlay.vue b/website/src/components/broadcast/cams/CamOverlay.vue index 8b954704..0184f00b 100644 --- a/website/src/components/broadcast/cams/CamOverlay.vue +++ b/website/src/components/broadcast/cams/CamOverlay.vue @@ -206,7 +206,7 @@ export default { } #overlay { - background-image: url(https://cdn.discordapp.com/attachments/485493459357007876/921883053968728074/unknown.png); - background-size: 1920px 1080px; + /* background-image: url(https://cdn.discordapp.com/attachments/485493459357007876/921883053968728074/unknown.png);*/ + /* background-size: 1920px 1080px;*/ } From 03b6aadba7f57098390d701443124f84fd18464b Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Wed, 22 Dec 2021 06:12:33 +0000 Subject: [PATCH 03/14] Improve loading on player match pages by moving reactive code to a single component --- .../src/components/website/match/Match.vue | 2 +- website/src/views/sub-views/PlayerMatches.vue | 34 +++++++++++++------ 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/website/src/components/website/match/Match.vue b/website/src/components/website/match/Match.vue index a337877d..8877fd86 100644 --- a/website/src/components/website/match/Match.vue +++ b/website/src/components/website/match/Match.vue @@ -20,7 +20,7 @@ export default { methods: { url }, computed: { match() { - return ReactiveRoot(this.id || this.hydratedMatch.id, { + return this.hydratedMatch || ReactiveRoot(this.id, { event: ReactiveThing("event", { theme: ReactiveThing("theme") }), diff --git a/website/src/views/sub-views/PlayerMatches.vue b/website/src/views/sub-views/PlayerMatches.vue index 93889bd4..491c04b6 100644 --- a/website/src/views/sub-views/PlayerMatches.vue +++ b/website/src/views/sub-views/PlayerMatches.vue @@ -1,14 +1,13 @@