Move the team settings into the config.
This commit is contained in:
parent
59cbad36d0
commit
9b7b9d2af8
2 changed files with 38 additions and 20 deletions
|
|
@ -5,6 +5,41 @@
|
|||
export const survey_url = ``;
|
||||
|
||||
|
||||
/**
|
||||
* This is an array of per-team settings, each team object consists of the
|
||||
* following properties:
|
||||
*
|
||||
* name: string - The name of the team
|
||||
* icon: string - The name of the icon used for the team
|
||||
* eyes: object - The object of the answer index to how many eyes are on that spot
|
||||
*
|
||||
* There can be as many teams in this array as desired, but only the first two
|
||||
* will be used.
|
||||
*/
|
||||
export const team_settings = [
|
||||
{
|
||||
name: `Sun`,
|
||||
icon: `sun.svg`,
|
||||
eyes: {
|
||||
1: 0, 2: 0,
|
||||
3: 0, 4: 1,
|
||||
5: 0, 6: 1,
|
||||
7: 1, 8: 0,
|
||||
}
|
||||
},
|
||||
{
|
||||
name: `Moon`,
|
||||
icon: `moon.svg`,
|
||||
eyes: {
|
||||
1: 0, 2: 0,
|
||||
3: 1, 4: 0,
|
||||
5: 1, 6: 1,
|
||||
7: 0, 8: 0,
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
/**
|
||||
* The URI that socket IO tries to connect to for websocket communication when
|
||||
* built for production serving.
|
||||
|
|
|
|||
|
|
@ -8,26 +8,9 @@ export default new Vuex.Store({
|
|||
state: {
|
||||
survey_link: conf.survey_url,
|
||||
|
||||
team_1: {
|
||||
name: `Sun`,
|
||||
icon: `sun.svg`,
|
||||
eyes: {
|
||||
1: 0, 2: 0,
|
||||
3: 0, 4: 1,
|
||||
5: 0, 6: 1,
|
||||
7: 1, 8: 0,
|
||||
},
|
||||
},
|
||||
team_2: {
|
||||
name: `Moon`,
|
||||
icon: `moon.svg`,
|
||||
eyes: {
|
||||
1: 0, 2: 0,
|
||||
3: 1, 4: 0,
|
||||
5: 1, 6: 1,
|
||||
7: 0, 8: 0,
|
||||
},
|
||||
},
|
||||
team_1: conf.team_settings[0],
|
||||
team_2: conf.team_settings[1],
|
||||
|
||||
writer_name: `Spirit`,
|
||||
writer_card_button: `Answer Question`,
|
||||
writer_object_choose_button: `Choose Object`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue