From c721637d90c259079f0448d3d6c341d00049d041 Mon Sep 17 00:00:00 2001 From: pingumask Date: Tue, 9 May 2023 17:43:00 +0000 Subject: [PATCH] Fix linter issues --- src/App.vue | 4 +- src/components/Countdown.vue | 10 ++-- src/components/Gradients.vue | 2 +- src/components/Intro.vue | 6 ++- src/components/Menu.vue | 45 +++++++++++----- src/components/Player.vue | 37 ++++++++++--- src/components/TownSquare.vue | 60 +++++++++++++++++----- src/components/Vote.vue | 17 ++++-- src/components/modals/EditionModal.vue | 8 +-- src/components/modals/Modal.vue | 2 +- src/components/modals/NightOrderModal.vue | 6 ++- src/components/modals/ReminderModal.vue | 5 +- src/components/modals/VoteHistoryModal.vue | 12 ++++- src/store/modules/session.js | 16 +++--- src/store/socket.js | 2 +- 15 files changed, 168 insertions(+), 64 deletions(-) diff --git a/src/App.vue b/src/App.vue index 67ce290..db69325 100644 --- a/src/App.vue +++ b/src/App.vue @@ -82,9 +82,7 @@ export default { return this.grimoire.background || this.edition.background || "none"; }, backgroundColor: function() { - return this.grimoire.isStreamerMode - ? "#00FF00" - : "transparent" + return this.grimoire.isStreamerMode ? "#00FF00" : "transparent"; } }, data() { diff --git a/src/components/Countdown.vue b/src/components/Countdown.vue index ad9afba..510ddb4 100644 --- a/src/components/Countdown.vue +++ b/src/components/Countdown.vue @@ -36,10 +36,10 @@ div::before { animation: forwards countdown calc(var(--timer) * 1s) linear; } -div::after{ - position:absolute; +div::after { + position: absolute; inset: 0; - text-align:center; + text-align: center; content: attr(data-text); z-index: 2; background: linear-gradient( @@ -57,8 +57,8 @@ div::after{ width: 100%; } 100% { - width:0%; - display:none; + width: 0%; + display: none; } } diff --git a/src/components/Gradients.vue b/src/components/Gradients.vue index 3723649..5d16a35 100644 --- a/src/components/Gradients.vue +++ b/src/components/Gradients.vue @@ -27,7 +27,7 @@ export default { return { gradients: [ ["demon", "#ce0100", "#000"], - ["townsfolk", "#1f65ff", "#000"], + ["townsfolk", "#1f65ff", "#000"], ["minion", "#ff6900", "#000"], ["default", "#4E4E4E", "#000"] ] diff --git a/src/components/Intro.vue b/src/components/Intro.vue index 9132a47..442d2ff 100644 --- a/src/components/Intro.vue +++ b/src/components/Intro.vue @@ -13,7 +13,11 @@ {{ locale.intro.footerEnd }} - + 你想使用中文版魔典吗? diff --git a/src/components/Menu.vue b/src/components/Menu.vue index 95ee210..0da6b82 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -49,13 +49,21 @@
  • {{ locale.menu.grimoire.title }}
  • - - + + [G]
  • - - + + [S]
  • @@ -141,18 +149,31 @@