Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Menteur
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
Menteur
Commits
feb9979a
Unverified
Commit
feb9979a
authored
4 years ago
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(client): Cols UI
parent
c33c76b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
33 deletions
+34
-33
App.vue
client/src/App.vue
+19
-15
Sockets.vue
client/src/Sockets.vue
+15
-18
No files found.
client/src/App.vue
View file @
feb9979a
...
...
@@ -12,10 +12,10 @@
<b-row
id=
"players"
>
<b-col
id=
"players-ingame"
>
<p>
{{
gamers
.
length
}}
en jeu
</p>
<Player
v-for=
"player in gamers"
v-bind:key=
"player.name"
:name=
"player.name"
:nb-cards=
"player.nbCards"
:is-playing=
"player.isPlaying"
/>
<Player
v-for=
"player in gamers"
v-bind:key=
"player.name"
:name=
"player.name"
:nb-cards=
"player.nbCards"
:is-playing=
"player.isPlaying"
/>
</b-col>
<b-col
id=
"players-online"
>
<p>
{{
players
.
length
}}
en ligne
</p>
...
...
@@ -26,17 +26,21 @@
</div>
</b-col>
</b-row>
<div
id=
"game"
>
<label
for=
"messages"
>
Choisis un message :
</label>
<select
v-model=
"message"
name=
"message"
id=
"messages"
>
<option
value=
"WAITING"
>
J'attends
</option>
<option
value=
"READY"
>
Prêt à jouer !
</option>
<option
value=
"BET"
>
Pari plus haut
</option>
<option
value=
"MENTEUR"
>
Menteur !
</option>
</select>
<button
v-on:click=
"sendMessage(message)"
>
Envoyer
</button>
<Hand
:cards=
"currentCards()"
/>
</div>
<b-row
id=
"game"
>
<b-col>
<Hand
:cards=
"currentCards()"
/>
</b-col>
<b-col>
<label
for=
"messages"
>
Choisis un message :
</label>
<select
v-model=
"message"
name=
"message"
id=
"messages"
>
<option
value=
"WAITING"
>
J'attends
</option>
<option
value=
"READY"
>
Prêt à jouer !
</option>
<option
value=
"BET"
>
Pari plus haut
</option>
<option
value=
"MENTEUR"
>
Menteur !
</option>
</select>
<button
v-on:click=
"sendMessage(message)"
>
Envoyer
</button>
</b-col>
</b-row>
</b-container>
</
template
>
...
...
This diff is collapsed.
Click to expand it.
client/src/Sockets.vue
View file @
feb9979a
<
template
>
<div>
<b-row
id=
"sockets-buttons"
class=
"m-3"
>
<b-row
id=
"sockets-buttons"
class=
"m-3"
>
<b-col>
<b-button-group
class=
"mt-lg-3"
>
<b-button
@
click=
"pingServer()"
variant=
"warning"
size=
"sm"
>
Ping Server
</b-button>
...
...
@@ -14,28 +14,25 @@
<p
v-if=
"isConnected"
>
Connecté au serveur
</p>
<p
v-if=
"!isConnected"
>
Déconnecté
</p>
</b-col>
</b-row>
<b-row
id=
"sockets-messages"
>
<b-col>
<p>
<b-icon-inbox-fill
/>
Messages du serveur:
<b
v-if=
"socketMessages.length === 0"
>
Aucun :'(
</b>
Messages du serveur:
</p>
<b-card
class=
"text-center"
v-if=
"socketMessages.length === 0"
>
<b-card-text>
Pas de message :'(
</b-card-text>
</b-card>
</b-col>
<b-col
v-for=
"m in socketMessages.slice(-8)"
:key=
"JSON.stringify(m)"
>
<b-card
class=
"text-center"
header-tag=
"header"
v-bind:header=
"m.data.state"
v-bind:sub-title=
"m.data != null ? m.data.extras != null ? JSON.stringify(m.data.extras) : '' : ''"
/>
</b-col>
<b-row
id=
"sockets-messages"
>
<b-card-group
deck
>
<b-col
v-for=
"m in socketMessages.slice(-8)"
:key=
"JSON.stringify(m)"
>
<b-card
class=
"text-center"
header-tag=
"header"
v-bind:header=
"m.data.state"
v-bind:sub-title=
"m.data != null ? m.data.extras != null ? JSON.stringify(m.data.extras) : '' : ''"
>
</b-card>
</b-col>
</b-card-group>
</b-row>
<ul
id=
"messages"
>
</ul>
</b-row>
</div>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment