X-Git-Url: https://git.auder.net/pieces/Checkered/cq.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FSettings.vue;h=e04cbdfa846044bb0b43b5d100851ed29c3129e8;hb=HEAD;hp=117133d18c62e3e32b977feebc33ff338996277e;hpb=910d631b73cad5ffef1b4461157b704e7e7057d8;p=vchess.git
diff --git a/client/src/components/Settings.vue b/client/src/components/Settings.vue
index 117133d1..e04cbdfa 100644
--- a/client/src/components/Settings.vue
+++ b/client/src/components/Settings.vue
@@ -1,22 +1,40 @@
div
input#modalSettings.modal(type="checkbox")
- div(
+ div#settingsDiv(
role="dialog"
data-checkbox="modalSettings"
)
- .card(@change="updateSettings($event)")
+ .card
label.modal-close(for="modalSettings")
- form
+ -
+ var langName = {
+ "en": "English",
+ "es": "Español",
+ "fr": "Français",
+ };
+ fieldset(@change="setLanguage($event)")
+ label(for="langSelect")
+ | {{ st.tr["Language"] }}
+ select#langSelect
+ each language,langCode in langName
+ option(value=langCode)
+ =language
+ #flagContainer
+ img(
+ v-if="!!st.lang"
+ :src="flagImage"
+ )
+ div(@change="updateSettings($event)")
fieldset
- label(for="setHints") {{ st.tr["Show possible moves?"] }}
+ label(for="setHints") {{ st.tr["Show possible moves"] }}
input#setHints(
type="checkbox"
v-model="st.settings.hints"
)
fieldset
label(for="setHighlight")
- | {{ st.tr["Highlight last move and checks?"] }}
+ | {{ st.tr["Highlight last move"] }}
input#setHighlight(
type="checkbox"
v-model="st.settings.highlight"
@@ -27,16 +45,33 @@ div
option(value="lichess") {{ st.tr["brown"] }}
option(value="chesscom") {{ st.tr["green"] }}
option(value="chesstempo") {{ st.tr["blue"] }}
+ option(value="orangecc") {{ st.tr["orange"] }}
+ fieldset
+ label(for="setSound")
+ | {{ st.tr["Sound alert at game start"] }}
+ input#setSound(
+ type="checkbox"
+ v-model="st.settings.sound"
+ )
fieldset
- label(for="setSound") {{ st.tr["Play sounds?"] }}
- select#setSound(v-model="st.settings.sound")
- option(value="0") {{ st.tr["None"] }}
- option(value="1") {{ st.tr["New game"] }}
- option(value="2") {{ st.tr["All"] }}
+ label(for="setGotonext")
+ | {{ st.tr["Show next game after a move"] }}
+ input#setGotonext(
+ type="checkbox"
+ v-model="st.settings.gotonext"
+ )
+ fieldset(v-if="desktopBrowser")
+ label(for="setScrollmove")
+ | {{ st.tr["Mouse scroll to replay moves"] }}
+ input#setScrollmove(
+ type="checkbox"
+ v-model="st.settings.scrollmove"
+ )