From 08876c7aecbd8f1fc9bed70eaee888dbbdbeba80 Mon Sep 17 00:00:00 2001 From: Allen Lee Date: Fri, 27 Oct 2023 16:34:24 -0700 Subject: [PATCH] refactor: consistency and hygiene - add getters for tstore access, feeding the consistency hobgoblin - include timezone in toLocaleTimeString - move logo style into portOfMarsLogoProps - remove dead code, unused props and attributes, etc. --- client/src/components/global/Footer.vue | 18 ++++---- client/src/components/global/Navbar.vue | 55 ++++++++--------------- client/src/components/global/Schedule.vue | 24 ++++------ 3 files changed, 38 insertions(+), 59 deletions(-) diff --git a/client/src/components/global/Footer.vue b/client/src/components/global/Footer.vue index 4bf616074..ec7d25ba6 100644 --- a/client/src/components/global/Footer.vue +++ b/client/src/components/global/Footer.vue @@ -15,18 +15,12 @@ ccarra1@asu.edu Solo Mode
  • - Free Play
  • - Join Mars Madness
  • @@ -132,6 +126,14 @@ export default class Footer extends Vue { get constants() { return Constants; } + + get isTournamentEnabled() { + return this.$tstore.state.isTournamentEnabled; + } + + get isFreePlayEnabled() { + return this.$tstore.state.isFreePlayEnabled; + } } diff --git a/client/src/components/global/Navbar.vue b/client/src/components/global/Navbar.vue index 87221a47f..ed790cd08 100644 --- a/client/src/components/global/Navbar.vue +++ b/client/src/components/global/Navbar.vue @@ -2,7 +2,7 @@