X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=views%2Fvariant.pug;h=c6303f3ff526c1c837b3f007b62fbaa491f97c21;hb=97da8720d3f33cb0c29079baf42c52ed047c3049;hp=a3b0089934211b71dc627718b5f56d7bf26d463f;hpb=214dfe16b01836fb19291ebf209bb7035993bafe;p=vchess.git diff --git a/views/variant.pug b/views/variant.pug index a3b00899..c6303f3f 100644 --- a/views/variant.pug +++ b/views/variant.pug @@ -16,7 +16,7 @@ block content i.material-icons home a(href="#room") =translations["Hall"] - a(href="#gameList") + a(href="#tabGames") =translations["My games"] a(href="#rules") =translations["Rules"] @@ -28,14 +28,13 @@ block content i.material-icons settings include userMenu .row - my-room(v-show="display=='room'") - my-TODO_FIND_NAME_game-list(v-show="display=='gameList'") + my-room(v-show="display=='room'" :conn="conn" :settings="settings") + my-tab-games(v-show="display=='tabGames'") my-rules(v-show="display=='rules'" :settings="settings") - //my-problems(v-show="display=='problems'" :query-hash="queryHash") - my-game(v-show="display=='game'" :game-id="gameid" :conn="conn" + my-problems(v-show="display=='problems'" :prob-id="probId" :settings="settings") + my-game(v-show="display=='game'" :game-ref="gameRef" :conn="conn" :allow-chat="allowChat" :allow-movelist="allowMovelist" - :mode="mode" :query-hash="queryHash" - @game-over="archiveGame") + :mode="mode" :settings="settings" @game-over="archiveGame") block javascripts script(src="/javascripts/utils/array.js") @@ -44,18 +43,19 @@ block javascripts script(src="/javascripts/utils/squareId.js") script(src="/javascripts/socket_url.js") script(src="/javascripts/base_rules.js") - script(src="/javascripts/settings.js") script(src="/javascripts/variants/" + variant.name + ".js") 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/TODO_FIND_NAME_gameList.js") - script(src="/javascripts/components/rules.js") script(src="/javascripts/components/board.js") - //script(src="/javascripts/components/problemPreview.js") - //script(src="/javascripts/components/problems.js") + script(src="/javascripts/components/chat.js") + script(src="/javascripts/components/gameList.js") + script(src="/javascripts/components/challengeList.js") script(src="/javascripts/components/moveList.js") script(src="/javascripts/components/game.js") + script(src="/javascripts/components/rules.js") + script(src="/javascripts/components/room.js") + script(src="/javascripts/components/tabGames.js") + script(src="/javascripts/components/problemSummary.js") + script(src="/javascripts/components/problems.js") script(src="/javascripts/variant.js")