From 725da57f8e2983d744629b524f9084516a43cbac Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Thu, 20 Feb 2020 18:21:47 +0100 Subject: [PATCH] Modal to accept/refuse challenge + diagrams preview when creating challenge --- client/src/components/ContactForm.vue | 17 ++- client/src/components/Language.vue | 13 +-- client/src/components/UpsertUser.vue | 2 +- client/src/main.js | 2 +- client/src/translations/en.js | 3 + client/src/translations/es.js | 3 + client/src/translations/fr.js | 3 + client/src/views/Analyse.vue | 12 +- client/src/views/Game.vue | 52 +++++---- client/src/views/Hall.vue | 157 +++++++++++++++++++++----- 10 files changed, 189 insertions(+), 75 deletions(-) diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue index 9046e0a7..cadbf73d 100644 --- a/client/src/components/ContactForm.vue +++ b/client/src/components/ContactForm.vue @@ -10,15 +10,14 @@ div ) .card label.modal-close(for="modalContact") - form(@submit.prevent="trySendMessage()" @keyup.enter="trySendMessage()") - fieldset - label(for="userEmail") {{ st.tr["Email"] }} - input#userEmail(type="email") - fieldset - label(for="mailSubject") {{ st.tr["Subject"] }} - input#mailSubject(type="text") - fieldset - textarea#mailContent(:placeholder="st.tr['Your message']") + fieldset + label(for="userEmail") {{ st.tr["Email"] }} + input#userEmail(type="email") + fieldset + label(for="mailSubject") {{ st.tr["Subject"] }} + input#mailSubject(type="text") + fieldset + textarea#mailContent(:placeholder="st.tr['Your message']") button(@click="trySendMessage()") {{ st.tr["Send"] }} #dialog.text-center {{ st.tr[infoMsg] }} diff --git a/client/src/components/Language.vue b/client/src/components/Language.vue index 633f89dd..f49a592e 100644 --- a/client/src/components/Language.vue +++ b/client/src/components/Language.vue @@ -13,13 +13,12 @@ div ) .card label.modal-close(for="modalLang") - form(@change="setLanguage($event)") - fieldset - label(for="langSelect") {{ st.tr["Language"] }} - select#langSelect - each language,langCode in langName - option(value=langCode) - =language + fieldset(@change="setLanguage($event)") + label(for="langSelect") {{ st.tr["Language"] }} + select#langSelect + each language,langCode in langName + option(value=langCode) + =language