From 56cb1ed48397cf41d45e6fe15dd73f2dfdcace13 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Wed, 3 Mar 2021 22:37:24 -0700 Subject: [PATCH] Migrate the position names into the config. --- web/src/config.js | 14 +++++++++++++- web/src/store/index.js | 6 +++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/web/src/config.js b/web/src/config.js index ca918ab..2d7766c 100644 --- a/web/src/config.js +++ b/web/src/config.js @@ -37,7 +37,19 @@ export const team_settings = [ 7: 0, 8: 0, } } -] +]; + + +/** + * The name that is displayed for the players that answer the questions. + */ +export const writer_name = `Spirit`; + +/** + * The name that is displayed for the players that are trying to guess the + * object. + */ +export const guesser_name = `Medium`; /** diff --git a/web/src/store/index.js b/web/src/store/index.js index 75df02a..4c9d616 100644 --- a/web/src/store/index.js +++ b/web/src/store/index.js @@ -10,12 +10,12 @@ export default new Vuex.Store({ team_1: conf.team_settings[0], team_2: conf.team_settings[1], - - writer_name: `Spirit`, + + writer_name: conf.writer_name, writer_card_button: `Answer Question`, writer_object_choose_button: `Choose Object`, - guesser_name: `Medium`, + guesser_name: conf.guesser_name, guesser_card_button: `Ask Spirit`, eye_icon: `eye.svg`,