main#VueElement
my-upsert-user
.container
- .row(v-show="display=='index'")
- .row
- .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
- label.drawer-toggle(for="drawerControl")
- input#drawerControl.drawer(type="checkbox")
- #menuBar
- label.drawer-close(for="drawerControl")
- a.icon-link(href="/")
- i(data-feather="home")
- a(href="#room")
- =translations["Hall"]
- a(href="#tabGames")
- =translations["My games"]
- a(href="#rules")
- =translations["Rules"]
- a(href="#problems")
- =translations["Problems"]
- #userMenu.clickable.right-menu(onClick="doClick('modalUser')")
- .info-container
- if !user.email
- p
- span Login
- span.icon-user
- else
- p
- span Update
- span.icon-user
- #flagMenu.clickable.right-menu(onClick="doClick('modalLang')")
- img(src="/images/flags/" + lang + ".svg")
- #settings.clickable(v-show="display!='index'" onClick="doClick('modalSettings')")
- i(data-feather="settings")
- #mainTitle.clickable(onClick="doClick('modalWelcome')")
- .info-container
- p Introduction
- .row
- .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
- .row(v-show="display=='variants'")
- .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
- label(for="prefixFilter") Type first letters...
- input#prefixFilter(v-model="curPrefix")
- my-variant-summary(v-for="(v,idx) in sortedCounts"
v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name")
.row(v-show="display=='correspondance'")
my-correspondance
:allow-chat="allowChat" :allow-movelist="allowMovelist"
:mode="mode" :settings="settings" @game-over="archiveGame")
- footer.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2.text-center
- div
- a(href="https://github.com/yagu0/vchess") Source code
- p.clickable(onClick="document.getElementById('modalContact').checked=true")
- =translations["Contact form"]
-
- script.
- const translations = !{JSON.stringify(translations)};
- const user = !{JSON.stringify(user)};
- const variantArray = !{JSON.stringify(variantArray)};
// TODO: get rid of underscore
// (used essentially for _.random(), _.sample() and _.range())
script(src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js")
// TODO: add only the necessary icons to mini-css custom build
script(src="//unpkg.com/feather-icons")
- if development
- script(src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js")
- else
- script(src="https://cdn.jsdelivr.net/npm/vue")
script(src="/javascripts/utils/printDiagram.js")
script(src="/javascripts/utils/datetime.js")
script(src="/javascripts/utils/squareId.js")