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"
- :settings="settings")
- 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" :settings="settings"
- @game-over="archiveGame")
+ :mode="mode" :settings="settings" @game-over="archiveGame")
block javascripts
- script(src="/javascripts/utils/array.js")
script(src="/javascripts/utils/printDiagram.js")
script(src="/javascripts/utils/datetime.js")
script(src="/javascripts/utils/squareId.js")
script(src="/javascripts/socket_url.js")
- script(src="/javascripts/base_rules.js")
script(src="/javascripts/variants/" + variant.name + ".js")
script.
- const V = VariantRules; //because this variable is often used
const variant = !{JSON.stringify(variant)};
+ // Just 'V' because this variable is often used:
+ const V = eval(variant.name + "Rules");
script(src="/javascripts/components/board.js")
script(src="/javascripts/components/chat.js")
script(src="/javascripts/components/gameList.js")