X-Git-Url: https://git.auder.net/images/pieces/Cwda/bd.svg?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=eb47dc9016adecf4b2595b52884dc5d480630142;hb=28b32b4fc7c23b1c72bed68e1897576c5be46c3d;hp=920d5240579692424f421e8f9f15b7f4bf6dc15a;hpb=311cba767e3c461edb0c8c758bfb193ef670a68f;p=vchess.git
diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue
index 920d5240..eb47dc90 100644
--- a/client/src/components/MoveList.vue
+++ b/client/src/components/MoveList.vue
@@ -1,9 +1,49 @@
div
+ input#modalAdjust.modal(type="checkbox")
+ div#adjuster(
+ role="dialog"
+ data-checkbox="modalAdjust"
+ )
+ .card.text-center
+ label.modal-close(for="modalAdjust")
+ label(for="boardSize") {{ st.tr["Board size"] }}
+ input#boardSize.slider(
+ type="range"
+ min="0"
+ max="100"
+ value="50"
+ @input="adjustBoard()"
+ )
+ #aboveMoves
+ // NOTE: variants pages already have a "Rules" link on top
+ span#rulesBtn(
+ v-if="!$route.path.match('/variants/')"
+ @click="$emit('showrules')"
+ )
+ | {{ st.tr["Rules"] }}
+ button.tooltip(
+ onClick="window.doClick('modalAdjust')"
+ :aria-label="st.tr['Resize board']"
+ )
+ img.inline(src="/images/icons/resize.svg")
+ #downloadDiv(v-if="canDownload")
+ a#download(href="#")
+ button.tooltip(
+ @click="$emit('download')"
+ :aria-label="st.tr['Download'] + ' PGN'"
+ )
+ img.inline(src="/images/icons/download.svg")
+ button.tooltip(
+ v-if="canAnalyze"
+ @click="$emit('analyze')"
+ :aria-label="st.tr['Analyse']"
+ )
+ img.inline(src="/images/icons/analyse.svg")
#scoreInfo(v-if="score!='*'")
- p {{ score }}
- p {{ st.tr[message] }}
- .moves-list
+ span.score {{ score }}
+ span.score-msg {{ st.tr[message] }}
+ .moves-list(v-if="!['none','highlight'].includes(show)")
.tr(v-for="moveIdx in evenNumbers")
.td {{ firstNum + moveIdx / 2 + 1 }}
.td(v-if="moveIdx < moves.length-1 || show == 'all'"
@@ -17,28 +57,68 @@ div
@click="() => gotoMove(moveIdx+1)"
)
| {{ notation(moves[moveIdx+1]) }}
- // Else: just add an empty cell
- //.td(v-else)