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
May 03, 2020
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(client): Cols UI
parent
c33c76b4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
App.vue
client/src/App.vue
+7
-3
Sockets.vue
client/src/Sockets.vue
+8
-11
No files found.
client/src/App.vue
View file @
feb9979a
...
...
@@ -26,7 +26,11 @@
</div>
</b-col>
</b-row>
<div
id=
"game"
>
<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>
...
...
@@ -35,8 +39,8 @@
<option
value=
"MENTEUR"
>
Menteur !
</option>
</select>
<button
v-on:click=
"sendMessage(message)"
>
Envoyer
</button>
<
Hand
:cards=
"currentCards()"
/
>
</
div
>
<
/b-col
>
</
b-row
>
</b-container>
</
template
>
...
...
client/src/Sockets.vue
View file @
feb9979a
...
...
@@ -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-row
id=
"sockets-messages"
>
<b-card-group
deck
>
<b-col
v-for=
"m in socketMessages.slice(-8)"
:key=
"JSON.stringify(m)"
>
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>
...
...
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