X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=ee7e01b5388f4838aeb4dd9a05e8716913d10ad8;hp=f165b0a92d9bcad7c32953d536d6e3f3a75ff7d6;hb=ed06d9e92387e60fc15d7c9768dd5680605e35d1;hpb=a01ab95c262b2ab8fe96cd57d925cf878da85c45 diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index f165b0a9..ee7e01b5 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -31,42 +31,40 @@ main button#newGame(onClick="doClick('modalNewgame')") New game .row .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 - .collapse - div - .button-group - button(@click="(e) => setDisplay('c','live',e)" class="active") - | Live Challenges - button(@click="(e) => setDisplay('c','corr',e)") - | Correspondance challenges - ChallengeList(v-show="cdisplay=='live'" - :challenges="filterChallenges('live')" @click-challenge="clickChallenge") - ChallengeList(v-show="cdisplay=='corr'" - :challenges="filterChallenges('corr')" @click-challenge="clickChallenge") - div - .button-group - button(@click="(e) => setDisplay('p','players',e)" class="active") - | Players - button(@click="(e) => setDisplay('p','chat',e)") - | Chat - #players(v-show="pdisplay=='players'") - p(v-for="p in uniquePlayers") - span(:class="{anonymous: !!p.count}") - | {{ (p.name || '@nonymous') + (!!p.count ? " ("+p.count+")" : "") }} - button.player-action(v-if="!p.count && p.name != st.user.name" - @click="challOrWatch(p,$event)") - | {{ whatPlayerDoes(p) }} - #chat(v-show="pdisplay=='chat'") - Chat(:players="[]") - div - .button-group - button(@click="(e) => setDisplay('g','live',e)" class="active") - | Live games - button(@click="(e) => setDisplay('g','corr',e)") - | Correspondance games - GameList(v-show="gdisplay=='live'" :games="filterGames('live')" - @show-game="showGame") - GameList(v-show="gdisplay=='corr'" :games="filterGames('corr')" - @show-game="showGame") + div + .button-group + button(@click="(e) => setDisplay('c','live',e)" class="active") + | Live Challenges + button(@click="(e) => setDisplay('c','corr',e)") + | Correspondance challenges + ChallengeList(v-show="cdisplay=='live'" + :challenges="filterChallenges('live')" @click-challenge="clickChallenge") + ChallengeList(v-show="cdisplay=='corr'" + :challenges="filterChallenges('corr')" @click-challenge="clickChallenge") + #people + h3.text-center Who's there? + #players + p(v-for="p in Object.values(people)" v-if="!!p.name") + span {{ p.name }} + button.player-action( + v-if="p.name != st.user.name" + @click="challOrWatch(p,$event)" + ) + | {{ whatPlayerDoes(p) }} + p.anonymous @nonymous ({{ anonymousCount }}) + #chat + Chat(:players="[]") + .clearer + div + .button-group + button(@click="(e) => setDisplay('g','live',e)" class="active") + | Live games + button(@click="(e) => setDisplay('g','corr',e)") + | Correspondance games + GameList(v-show="gdisplay=='live'" :games="filterGames('live')" + @show-game="showGame") + GameList(v-show="gdisplay=='corr'" :games="filterGames('corr')" + @show-game="showGame")