From: Benjamin Auder Date: Wed, 10 Jun 2020 18:17:50 +0000 (+0200) Subject: Add some TODOs for simultaneous games support X-Git-Url: https://git.auder.net/images/doc/%7B%7B%20path%28%27mixstore_user_admin_delete%27%2C%20%7B%20id:%20user.id%20%7D%29%20%7D%7D?a=commitdiff_plain;h=beda3dd096a455ed337eaaeadc400712bf0f5c6d;p=vchess.git Add some TODOs for simultaneous games support --- diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue index 1107b58c..5c582631 100644 --- a/client/src/components/ChallengeList.vue +++ b/client/src/components/ChallengeList.vue @@ -15,7 +15,7 @@ div ) td {{ c.vname }} td {{ withWho(c) }} - td {{ c.cadence }} + td(:class="getCadenceClass(c)") {{ c.cadence }} td(:class="getRandomnessClass(c)") p(v-else) | {{ st.tr["No challenges found :( Click on 'New game'!"] }} @@ -66,6 +66,11 @@ export default { return { ["random-" + c.randomness]: true }; + }, + getCadenceClass: function(c) { + return { + "simultaneous": c.cadence.indexOf("/") >= 0 + }; } } }; @@ -82,6 +87,9 @@ tr.fromyou > td tr.toyou > td background-color: #fcd785 +td.simultaneous + background-color: purple + tr > td:last-child &.random-0 background-color: #FF5733 diff --git a/client/src/translations/variants/en.pug b/client/src/translations/variants/en.pug index 29c4a898..67227c79 100644 --- a/client/src/translations/variants/en.pug +++ b/client/src/translations/variants/en.pug @@ -115,6 +115,7 @@ p. "Grand", "Grasshopper", "Omega", + "Ordamirror", "Perfect", "Schess", "Shako", diff --git a/client/src/translations/variants/es.pug b/client/src/translations/variants/es.pug index b6939cc7..a373000d 100644 --- a/client/src/translations/variants/es.pug +++ b/client/src/translations/variants/es.pug @@ -122,6 +122,7 @@ p. "Grand", "Grasshopper", "Omega", + "Ordamirror", "Perfect", "Schess", "Shako", diff --git a/client/src/translations/variants/fr.pug b/client/src/translations/variants/fr.pug index d108dcd1..72e481ae 100644 --- a/client/src/translations/variants/fr.pug +++ b/client/src/translations/variants/fr.pug @@ -121,6 +121,7 @@ p. "Grand", "Grasshopper", "Omega", + "Ordamirror", "Perfect", "Schess", "Shako", diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index fa7ab3b2..d702b0ec 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -179,6 +179,9 @@ main