X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Fvariant.pug;h=dbdbabae73cc3f50f4d0166b6def6621549735da;hb=4608eed94432356bd2df8c144d7d233913c6483c;hp=5bfcba109da8c6ae15b1e5f9c47ee22f861f8337;hpb=b57dbd126734b4398861292c611197c6991ed3eb;p=vchess.git diff --git a/views/variant.pug b/views/variant.pug index 5bfcba10..dbdbabae 100644 --- a/views/variant.pug +++ b/views/variant.pug @@ -14,34 +14,31 @@ block content label.drawer-close(for="drawer-control") a.icon-link(href="/") i.material-icons home - a(href="#room" @click="setDisplay('room')") + a(href="#room") =translations["Hall"] - a(href="#gameList" @click="setDisplay('gameList')") + a(href="#gameList") =translations["My games"] - a(href="#rules" @click="setDisplay('rules')") + a(href="#rules") =translations["Rules"] - a(href="#problems" @click="setDisplay('problems')") + a(href="#problems") =translations["Problems"] - #settings.clickable( - onClick="document.getElementById('modalSettings').checked=true") + #flagMenu.clickable(onClick="doClick('modalLang')") + img(src="/images/flags/" + lang + ".svg") + #settings.clickable(onClick="doClick('modalSettings')") i.material-icons settings - #userMenu.clickable( - onClick="document.getElementById('modalUser').checked=true") - .info-container - i.material-icons person - if !user.email - p Login - else - p Update + include userMenu .row - my-room(v-show="display=='room'") - my-game-list(v-show="display=='gameList'") + //my-room(v-show="display=='room'") + //my-game-list(v-show="display=='gameList'") my-rules(v-show="display=='rules'") - my-problems(v-show="display=='problems'") - my-game(v-show="display=='game'" :gameId="gameid") + //my-problems(v-show="display=='problems'") + my-game(v-show="display=='game'" :game-id="gameid" :conn="conn" + :allow-chat="allowChat" :allow-movelist="allowMovelist" + :mode="mode" :fen="fen") + //my-board(:vr="vr" :mode="mode" :orientation="orientation" + :user-color="userColor" v-on:play-move="play") block javascripts - script(src="/javascripts/utils/misc.js") script(src="/javascripts/utils/array.js") script(src="/javascripts/utils/printDiagram.js") script(src="/javascripts/utils/datetime.js") @@ -51,10 +48,11 @@ block javascripts script. const V = VariantRules; //because this variable is often used const variant = !{JSON.stringify(variant)}; - script(src="/javascripts/components/room.js") - script(src="/javascripts/components/gameList.js") + //script(src="/javascripts/components/room.js") + //script(src="/javascripts/components/gameList.js") script(src="/javascripts/components/rules.js") - script(src="/javascripts/components/problemSummary.js") - script(src="/javascripts/components/problems.js") + script(src="/javascripts/components/board.js") + //script(src="/javascripts/components/problemPreview.js") + //script(src="/javascripts/components/problems.js") script(src="/javascripts/components/game.js") script(src="/javascripts/variant.js")