From 33c9edf339c98383e9263ff589d0d2be904b9f4b Mon Sep 17 00:00:00 2001 From: Steffen Date: Mon, 4 May 2020 23:05:36 +0200 Subject: [PATCH] finished moving stuff to store --- src/components/Menu.vue | 4 +-- src/components/Player.vue | 40 ++++++++++++++++--------- src/components/TownSquare.vue | 1 - src/components/modals/ReminderModal.vue | 8 +++-- src/components/modals/RoleModal.vue | 9 +++--- src/components/modals/RolesModal.vue | 11 ++++--- src/store/modules/players.js | 38 +++++++++++------------ src/store/persistence.js | 7 +---- 8 files changed, 64 insertions(+), 54 deletions(-) diff --git a/src/components/Menu.vue b/src/components/Menu.vue index fd07d26..39ad9ee 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -232,10 +232,10 @@ export default { font-weight: bold; background: linear-gradient( to right, - $demon 0%, + $townsfolk 0%, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.5) 80%, - $townsfolk 100% + $demon 100% ); } } diff --git a/src/components/Player.vue b/src/components/Player.vue index 243c1c2..7cd0723 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -14,18 +14,18 @@
- {{ player.firstNight }}. + {{ nightOrder.get(player).first }}. {{ player.role.firstNightReminder | handleEmojis }}
- {{ player.otherNight }}. + {{ nightOrder.get(player).other }}. {{ player.role.otherNightReminder | handleEmojis }} @@ -72,7 +72,7 @@