-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from HE-Arc/simon-plumey-18-vue-page-de-statis…
…tiques Simon plumey 18 vue page de statistiques
- Loading branch information
Showing
10 changed files
with
83 additions
and
871 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
@extends('layout.app') | ||
@section('content') | ||
<section class="container stats-container"> | ||
<h2>{{ Auth::user()->name }}:</h2> | ||
<div class="stats rounded neon-effect-magenta"> | ||
<span>Nombre de musique trouvée:</span> | ||
<span>{{ $user_stats['nb_music_found'] }}</span> | ||
<span>Nombre de de tentative totale:</span> | ||
<span>{{ $user_stats['nb_tries'] }}</span> | ||
<span>Moyenne du nombre d'essai par musique:</span> | ||
<span>{{ $user_stats['average_tries'] }}</span> | ||
<span>Combo de musique:</span> | ||
<span>{{ $user_stats['music_streak'] }}</span> | ||
<span>Musiques trouvées:</span> | ||
<span> | ||
@foreach (json_decode($user_stats['found_songs']) as $song) | ||
{{$song->title }} - {{ $song->artist }}<br> | ||
@endforeach | ||
|
||
<p>Hi {{ Auth::user()->name }}, this is your personal dashboard</p> | ||
<p>Nombre de musique trouvée: {{$user_stats['nb_music_found']}}</p> | ||
<p>Nombre d'essai sur des musiques trouvée: {{$user_stats['nb_tries']}}</p> | ||
<p>Moyenne du nombre d'essai par musique trouvée: {{$user_stats['average_tries']}}</p> | ||
<p>Combo de musique: {{$user_stats['music_streak']}}</p> | ||
<p>Musique trouvées: {{$user_stats['found_songs']}}</p> | ||
|
||
</span> | ||
</div> | ||
</section> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
@extends('layout.app') | ||
@section('content') | ||
|
||
<div class="vue-container" id="app"> | ||
<p class="instructions">Commence par taper le titre d'une musique pour découvrir des indices:</p> | ||
<search-bar @send-comparaison="sendDeltaToComparaison"></search-bar> | ||
<comparaison :data="deltaToSend" @clear-history="$refs.historyComponent.clearHistory()"></comparaison> | ||
<history :data="deltaToSend" ref="historyComponent"></history> | ||
</div> | ||
@vite(['resources/js/pages/game.js']) | ||
<section class="container"> | ||
<div class="vue-container" id="app"> | ||
<p class="instructions">Commence par taper le titre d'une musique pour découvrir des indices:</p> | ||
<search-bar @send-comparaison="sendDeltaToComparaison"></search-bar> | ||
<comparaison :data="deltaToSend" @clear-history="$refs.historyComponent.clearHistory()"></comparaison> | ||
<history :data="deltaToSend" ref="historyComponent"></history> | ||
</div> | ||
@vite(['resources/js/pages/game.js']) | ||
</section> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.