Maxime ROCHER 5 months ago
commit 5ad2ff07dc

@ -0,0 +1,13 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/.idea.WF-WebAdmin.iml
/modules.xml
/contentModel.xml
/projectSettingsUpdater.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

@ -0,0 +1,10 @@
namespace WF_WebAdmin.Model
{
public class Commentary
{
//public int Id { get; set; }
//public int IdUser { get; set; }
public string Text { get; set; }
public DateTime DateCreation { get; set; }
}
}

@ -0,0 +1,12 @@
namespace WF_WebAdmin.Model;
public class Quiz
{
public int Id { get; set; }
public string Question { get; set; }
public string AnswerA { get; set; }
public string AnswerB { get; set; }
public string AnswerC { get; set; }
public string AnswerD { get; set; }
public string CAnswer { get; set; }
}

@ -3,10 +3,13 @@
public class User
{
public int Id { get; set; }
public string Image { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public DateTime DateCreation { get; set; }
public Boolean IsAdmin { get; set; }
public List<Commentary> Comments { get; set; }
}
}

@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Components;
using Blazorise.DataGrid;
using Microsoft.AspNetCore.Components;
using WF_WebAdmin.Model;

@ -1,39 +1,44 @@
@page "/"
@page "/Accueil"
<PageTitle>Accueil</PageTitle>
<h1>Accueil</h1>
<h2>Sitation du jour</h2>
@*
<div class="QuoteDiv">
<img class="imgQuote" src="@quote.ImgPath" />
<p class="idQuote"><strong>Identifiant de la citation :</strong>@quote.Id </p>
<p class="contentQuote"><strong>Citation:</strong>@quote.Content</p>
<p class="CaracterQuote"><strong>Personnage :</strong> @quote.Charac</p>
<p class="SourceQuote"><strong>Source :</strong> @quote.TitleSrc</p>
<p class="langueQuote"><strong>Langue :</strong> @quote.Langue</p>
<p class="UserPropositionQuote">@quote.UserProposition a proposé cette citation</p>
<button>Suprimé la citation</button>
</div>
*@
<button>Mettre une citation aléatoire</button>
@if (quotes != null)
{
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Content</th>
<th>Charactére</th>
<th>Title Source</th>
<th>Like</th>
<th>Langue</th>
<th>Date Source</th>
</tr>
</thead>
<tbody>
@foreach (var quote in quotes)
{
<tr>
<td>@quote.Id</td>
<td>@quote.Content</td>
<td>@quote.Charac</td>
<td>@quote.TitleSrc</td>
<td>@quote.Like</td>
<td>@quote.Langue</td>
<td>@quote.DateSrc.ToShortDateString()</td>
</tr>
}
</tbody>
</table>
<h3>Citations non validées</h3>
<p>Citations en attente de validation:</p>
@foreach (var quote in quotes)
{
<div class="QuoteDiv">
<img class="imgQuote" src="@quote.ImgPath" />
<p class="idQuote"><strong>Identifiant de la citation :</strong>@quote.Id </p>
<p class="contentQuote"><strong>Citation:</strong>@quote.Content</p>
<p class="CaracterQuote"><strong>Personnage :</strong> @quote.Charac</p>
<p class="SourceQuote"><strong>Source :</strong> @quote.TitleSrc</p>
<p class="langueQuote"><strong>Langue :</strong> @quote.Langue</p>
<p class="UserPropositionQuote">@quote.UserProposition a proposé cette citation</p>
<button>Suprimé la citation</button>
</div>
}
}

@ -2,25 +2,88 @@
<PageTitle>Gestion utilisateur</PageTitle>
@if(users != null)
<h3>Gestion des utilisateurs</h3>
@if(users == null)
{
<h3>Gestion des utilisateurs</h3>
<p><strong>Aucun utilisateur présent sur le site</strong></p>
}
else
{
<p>Utilisateurs présents:</p>
@foreach (var user in users)
{
<div class="userDiv">
<img class="imgProfil" src="@user.Image" />
<p class="idUser"><strong>Identifiant d'utilisateur :</strong> @user.Id</p>
<p class="pseudo"><strong>Nom d'utilisateur :</strong> @user.Name</p>
@if (user.IsAdmin)
{
<p class="pseudo"><strong>Nom d'utilisateur :</strong> @user.Name <strong>(Administrateur)</strong></p>
}
else
{
<p class="pseudo"><strong>Nom d'utilisateur :</strong> @user.Name</p>
}
<p class="mail"><strong>Email de l'utilisateur :</strong> @user.Email</p>
<p class="dateCrea"><strong>Date de création de l'utilisateur :</strong> @user.DateCreation.ToShortDateString()</p>
<button>Supprimer l'utilisateur</button>
<p class="dateCrea"><strong>Date de création du compte :</strong> @user.DateCreation.ToShortDateString()</p>
@if(user.Comments != null)
{
<p class="titleComments"><strong>▶ Commentaire(s) posté(s) par @user.Name : </strong></p>
@foreach (var comment in user.Comments)
{
<p class="comments">@comment.DateCreation.ToShortDateString() - @comment.Text</p>
}
}
else
{
<p>Aucun commentaire sur le site</p>
}
<button id="DeleteButton" @onclick="() => ShowConfirmation(user)">Supprimer l'utilisateur</button>
@if (!user.IsAdmin)
{
<button id="AdminButton" @onclick="() => ShowConfirmationAdmin(user)">Ajouter en tant qu'administrateur</button>
}
else
{
<button id="AdminButton" @onclick="() => ShowConfirmationAdmin(user)">Retirer en tant qu'administrateur</button>
}
</div>
}
<!-- Fenêtre de confirmation de suppression -->
@if (showPopupDelete)
{
<div class="divPopup">
<div class="contentPopup">
<p>Êtes-vous sûr de vouloir supprimer cet utilisateur ?</p>
<button @onclick="() => RemoveUser()">Confirmer</button>
<button @onclick="ClosePopup">Annuler</button>
</div>
</div>
}
<!-- Fenêtre de confirmation d'ajout admin-->
@if (showPopupAdmin)
{
<div class="divPopup">
<div class="contentPopup">
<p>Êtes-vous sûr de vouloir changer le rôle de cet utilisateur ?</p>
<button @onclick="() => Admin()">Confirmer</button>
<button @onclick="ClosePopup">Annuler</button>
</div>
</div>
}
}
@code {
}

@ -1,12 +1,19 @@
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.Configuration.UserSecrets;
using WF_WebAdmin.Model;
namespace WF_WebAdmin.Pages
{
public partial class DeleteUser
{
private User[] users;
private List<User> users;
private bool showPopupDelete = false;
private User userToDelete = null;
private bool showPopupAdmin = false;
private User userToAdmin = null;
[Inject]
public HttpClient Http { get; set; }
@ -15,7 +22,59 @@ namespace WF_WebAdmin.Pages
protected override async Task OnInitializedAsync()
{
users = await Http.GetFromJsonAsync<User[]>($"{NavigationManager.BaseUri}fake-dataUser.json");
users = await Http.GetFromJsonAsync<List<User>>($"{NavigationManager.BaseUri}fake-dataUsers.json");
}
}
// ------- Popup remove user -------
private void ShowConfirmation(User user)
{
userToDelete = user;
showPopupDelete = true;
}
private async Task RemoveUser()
{
if (userToDelete != null)
{
users.RemoveAll(u => u.Id == userToDelete.Id);
ClosePopup();
}
}
private void ClosePopup()
{
showPopupDelete = false;
showPopupAdmin = false;
}
// ------- Popup admin -------
private void ShowConfirmationAdmin(User user)
{
userToAdmin = user;
showPopupAdmin = true;
}
private async Task Admin()
{
if (!userToAdmin.IsAdmin)
{
userToAdmin.IsAdmin = true;
ClosePopup();
}
else
{
userToAdmin.IsAdmin = false;
ClosePopup();
}
}
}
}

@ -0,0 +1,28 @@
@page "/"
<h1>▶ Connexion ◀</h1>
<div class="login">
@* <form method="post" action="{{ racine }}/validlogin"> *@
<p> <strong>Identifiant *</strong></p>
<input type="text" class="connexion" name="pseudo" id="pseudo" placeholder="Entrez votre pseudo" required />
<p> <strong> Mot de passe *</strong></p>
<input type="password" class="connexion" name="mdp" id="mdp" placeholder="Entrez votre mdp" required />
<div class="buttonSubmitDiv">
<button class="buttonSudmite">Se Connecter</button>
</div>
@* </form> *@
</div>
@code {
private void ShowFullSite()
{
// Code pour afficher l'ensemble du menu
// Cela peut être un appel à une méthode ou un service qui change l'état de la visibilité du menu
}
}

@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.Configuration.UserSecrets;
using WF_WebAdmin.Model;
namespace WF_WebAdmin.Pages
{
public partial class Login
{
}
}

@ -0,0 +1,24 @@
@using WF_WebAdmin.Model
@page "/modifquote"
<PageTitle>Corection des citation</PageTitle>
<h3>Corection des citation</h3>
<p>Ajouter une recherche</p>
@if (quotes != null)
{
<DataGrid TItem="Quote"
Data="@quotes"
PageSize="int.MaxValue"
Responsive>
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Id)" Caption="Id"/>
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Content)" Caption="Citation"/>
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Charac)" Caption="Personage"/>
<DataGridColumn TItem="Quote" Field="@nameof(Quote.TitleSrc)" Caption="Source" />
<DataGridColumn TItem="Quote" Field="@nameof(Quote.Langue)" Caption="Langue" />
<DataGridColumn TItem="Quote" Field="@nameof(Quote.DateSrc)" Caption="Date" DisplayFormat="{0:d}" DisplayFormatProvider="@System.Globalization.CultureInfo.GetCultureInfo("fr-FR")" />
</DataGrid>
}

@ -0,0 +1,23 @@
using Microsoft.AspNetCore.Components;
using WF_WebAdmin.Model;
namespace WF_WebAdmin.Pages
{
public partial class ModifQuote
{
private Quote[] quotes;
private int MaxValue = 5;
[Inject]
public HttpClient Http { get; set; }
[Inject]
public NavigationManager NavigationManager { get; set; }
protected override async Task OnInitializedAsync()
{
//quotes = await Http.GetFromJsonAsync<Quote[]>($"{NavigationManager.BaseUri}fake-dataModifQuote.json");
}
}
}

@ -0,0 +1,11 @@
@page "/ValidQuiz"
@using WF_WebAdmin.Model
<h3> Quiz à valider </h3>
@if (quizzes is null)
{
<p>
Chargement des quiz
</p>
}

@ -0,0 +1,11 @@
using Npgsql;
using WF_WebAdmin.Model;
namespace WF_WebAdmin.Pages
{
public partial class ValidQuiz
{
private List<Quiz> quizzes;
}
}

@ -28,5 +28,10 @@
</div>
<script src="_framework/blazor.server.js"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css">
<link href="_content/Blazorise/blazorise.css" rel="stylesheet" />
<link href="_content/Blazorise.Bootstrap/blazorise.bootstrap.css" rel="stylesheet" />
</body>
</html>

@ -1,3 +1,6 @@
using Blazorise;
using Blazorise.Bootstrap;
using Blazorise.Icons.FontAwesome;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using WF_WebAdmin.Data;
@ -11,6 +14,12 @@ builder.Services.AddSingleton<WeatherForecastService>();
builder.Services.AddHttpClient();
builder.Services
.AddBlazorise()
.AddBootstrapProviders()
.AddFontAwesomeIcons();
var app = builder.Build();
// Configure the HTTP request pipeline.

@ -1,6 +1,6 @@
<div class="top-row ps-3 navbar navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="">Wiki Fantasy</a>
<a class="navbar-brand" href="">What the Fantasy</a>
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span>
</button>
@ -11,7 +11,13 @@
<nav class="flex-column">
<div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<span class="oi oi-home" aria-hidden="true"></span> Accueil
<span class="oi oi-home" aria-hidden="true"></span> Login
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="Accueil">
<span class="oi oi-plus" aria-hidden="true"></span> Accueil
</NavLink>
</div>
<div class="nav-item px-3">
@ -25,12 +31,25 @@
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="ValidQuiz">
<span class="oi oi-list-rich" aria-hidden="true"></span> Validation de quiz
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="deleteuser">
<span class="oi oi-list-rich" aria-hidden="true"></span> Gestion des utilisateurs
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="modifquote">
<span class="oi oi-list-rich" aria-hidden="true"></span> Correction des citations
</NavLink>
</div>
</nav>
</div>
@ -44,3 +63,4 @@
collapseNavMenu = !collapseNavMenu;
}
}

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
@ -8,6 +8,10 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Blazorise.Bootstrap" Version="1.7.2" />
<PackageReference Include="Blazorise.DataGrid" Version="1.7.2" />
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.7.2" />
<PackageReference Include="bootstrap" Version="5.3.3" />
<PackageReference Include="Npgsql" Version="9.0.2" />
</ItemGroup>

@ -8,3 +8,4 @@
@using Microsoft.JSInterop
@using WF_WebAdmin
@using WF_WebAdmin.Shared
@using Blazorise.DataGrid

@ -86,6 +86,89 @@ button {
border-radius: 25px;
}
.pseudo, .mail, .idUser, .dateCrea, .idQuote, .contentQuote, .CaracterQuote, .SourceQuote, .langueQuote, .UserPropositionQuote {
.pseudo, .mail, .idUser, .dateCrea, .idQuote, .contentQuote, .CaracterQuote, .SourceQuote, .langueQuote, .UserPropositionQuote, titleComments, comments {
margin-left: 10px;
}
}
/*ModifQuote*/
.imgTab{
width: 5vw;
height: 5vw;
object-fit: contain;
}
/*Popup DeleteUser*/
.divPopup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white border-radius:20px;
display: flex;
justify-content: center;
align-items: center;
z-index: 2;
}
.contentPopup {
background-color: white;
padding: 20px;
border-radius: 20px;
display: flex;
flex-direction: column;
gap: 10px;
width: 300px;
text-align: center;
}
.buttonSubmitDiv {
text-align: center;
}
h1 {
text-align: center;
font-size: 32px;
margin-top: 10%;
}
p {
margin-top: 6%;
margin-bottom: 2%;
font-size: 20px;
font-family: "Lemon", serif;
}
.login {
width: 35vw;
margin-left: 30.5vw;
margin-top: 3vh;
border-radius: 25px;
padding: 2vw;
background-color: #cfcfcf;
}
/*Page login*/
.buttonSudmite {
border: none;
padding: 2%;
margin-top: 5%;
border-radius: 25px;
width: 50%;
font-size: 1.25em;
background-color: white;
}
.connexion {
width: 94%;
height: 40px;
padding-left: 3%;
margin-left: 1%;
margin-top: -1%;
border-radius: 25px;
border: none;
font-size: 15px;
}

@ -0,0 +1,8 @@
[
{
"users": 1
},
{
"users": 4
}
]

@ -0,0 +1,52 @@
[
{
"id_caracter":82,
"caracter": "The Wolf",
"id_img": 1
},
{
"id_caracter":50,
"caracter": "Sirius Black",
"id_img": 2
},
{
"id_caracter":77,
"caracter": "Boromir",
"id_img": 3
},
{
"id_caracter": 29,
"caracter": "Maître Oogway",
"id_img": 4
},
{
"id_caracter":7,
"caracter": "Drago Malefoy",
"id_img": 5
},
{
"id_caracter":44,
"caracter": "TChalla / Black Panther",
"id_img": 6
},
{
"id_caracter":53,
"caracter": "Butch",
"id_img": 7
},
{
"id_caracter": 39,
"caracter": "Coco",
"id_img": 8
},
{
"id_caracter": 34,
"caracter": "John Coffey",
"id_img": 9
},
{
"id_caracter": 38,
"caracter": "Harold",
"id_img": 10
}
]

@ -0,0 +1,9 @@
[
{
"id_comment": 1,
"quote": 1,
"users": 1,
"dateC":"2024-10-10",
"comment": "coucou"
}
]

@ -0,0 +1,82 @@
[
{
"id_img": 1,
"imgPath": "https://tse4.mm.bing.net/th/id/OIP.fc5TQflh0cbxB1GUeOdk6gHaK8?w=123&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 2,
"imgPath": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 3,
"imgPath": "https://tse1.mm.bing.net/th/id/OIP._uHLsNbgnf1m1vK3ZWE2UAHaEo?w=217&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 4,
"imgPath": "https://tse4.mm.bing.net/th/id/OIP.QzDh_d2T5aADiDJ7uMFU6gHaHa?w=157&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 5,
"imgPath": "https://tse2.mm.bing.net/th/id/OIP.CthWIxuLm0a8THOguTDB_AAAAA?w=157&h=207&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 6,
"imgPath": "https://tse4.mm.bing.net/th/id/OIP.XNQPKwc1OUfvnSO9MsxDYgHaE7?w=202&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 7,
"imgPath": "https://tse1.mm.bing.net/th/id/OIP.luN_zVQJt2Kyf7H_kSrPyQHaJD?w=115&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 8,
"imgPath": "https://tse1.mm.bing.net/th/id/OIP.GPIbva8dEP6Kllx-sj5ysAHaK-?w=115&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 9,
"imgPath": "https://tse4.mm.bing.net/th/id/OIP.loqNhw71Vk_C-TiyWQJoKAHaKK?w=95&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 10,
"imgPath": "https://tse2.mm.bing.net/th/id/OIP._OiJHgI7cal4cWNHcCE9zAHaM2?w=115&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 11,
"imgPath": "https://tse2.mm.bing.net/th/id/OIP.B9RbuWnpmV-7fI8v-H0G8gHaEK?w=290&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 12,
"imgPath": "https://tse2.mm.bing.net/th/id/OIP.RrJkua2jY_o24eUG7wmk8QHaE-?w=232&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 13,
"imgPath": "https://tse3.mm.bing.net/th/id/OIP.-1Ds-2D5GPiu9uejDdmgNgHaH3?w=124&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 14,
"imgPath": "https://tse3.mm.bing.net/th/id/OIP.BeQYJEP1pQKzHDLGhTLBtgHaFj?w=243&h=182&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 15,
"imgPath": "https://tse3.mm.bing.net/th/id/OIP.lDzxwo1weGaA-hRMfV6bYwHaGp?w=194&h=174&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 16,
"imgPath": "https://tse2.mm.bing.net/th/id/OIP.3vXkEUJ9J8s-GsnBC6I3KAHaF0?w=185&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 17,
"imgPath": "https://tse4.mm.bing.net/th/id/OIP.omU-pPTNgHJEiTKJUpB1MAHaIw?w=114&h=180&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 18,
"imgPath": "https://tse2.mm.bing.net/th/id/OIP.Qoh2doQIigxyiOBuhgRx9gHaM7?w=115&h=186&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 19,
"imgPath": "https://tse3.mm.bing.net/th/id/OIP.hyDe8SvEEvDhmKfsQBqWEwHaJ8?w=194&h=261&c=7&r=0&o=5&pid=1.7"
},
{
"id_img": 20,
"imgPath": "https://tse3.mm.bing.net/th/id/OIP.S4q6m2na1Rxkc7xZ1lcfKQHaJe?w=135&h=180&c=7&r=0&o=5&pid=1.7"
}
]

@ -0,0 +1,83 @@
[
{
"id_question": 1,
"texte": "May the Force be with you.",
"answerA": "Star Wars",
"answerB": "Star Trek",
"answerC": "The Matrix",
"answerD": "Blade Runner",
"cAnswer": "Star Wars"
},
{
"id_question": 2,
"texte": "I m gonna make him an offer he can t refuse.",
"answerA": "The Godfather",
"answerB": "Goodfellas",
"answerC": "Scarface",
"answerD": "The Sopranos",
"cAnswer": "The Godfather"
},
{
"id_question": 3,
"texte": "To infinity and beyond!",
"answerA": "Toy Story",
"answerB": "The Incredibles",
"answerC": "Finding Nemo",
"answerD": "Shrek",
"cAnswer": "Toy Story"
},
{
"id_question": 4,
"texte": "All we have to decide is what to do with the time that is given to us.",
"answerA": "The Lord of the Rings",
"answerB": "Harry Potter",
"answerC": "The Hobbit",
"answerD": "Narnia",
"cAnswer": "The Lord of the Rings"
},
{
"id_question": 5,
"texte": "I am your father.",
"answerA": "Star Wars",
"answerB": "Star Wars",
"answerC": "Star Trek",
"answerD": "Guardians of the Galaxy",
"cAnswer": "Star Wars"
},
{
"id_question": 6,
"texte": "It is a trap!",
"answerA": "Star Wars",
"answerB": "Battlestar Galactica",
"answerC": "Star Trek",
"answerD": "The Matrix",
"cAnswer": "Star Wars"
},
{
"id_question": 7,
"texte": "Winter is coming.",
"answerA": "Game of Thrones",
"answerB": "The Witcher",
"answerC": "Vikings",
"answerD": "The Mandalorian",
"cAnswer": "Game of Thrones"
},
{
"id_question": 8,
"texte": "Elementary, my dear Watson.",
"answerA": "Sherlock Holmes",
"answerB": "Agatha Christie",
"answerC": "Poirot",
"answerD": "The Hound of the Baskervilles",
"cAnswer": "Sherlock Holmes"
},
{
"id_question": 9,
"texte": "Here is looking at you, kid.",
"answerA": "Casablanca",
"answerB": "Gone with the Wind",
"answerC": "Citizen Kane",
"answerD": "The Maltese Falcon",
"cAnswer": "Casablanca"
}
]

@ -0,0 +1,10 @@
[
{
"id_quiz": 1,
"nb_quest": 4
},
{
"id_quiz": 2,
"nb_quest": 5
}
]

@ -0,0 +1,38 @@
[
{
"quiz":1,
"question":1
},
{
"quiz":1,
"question":2
},
{
"quiz":1,
"question":3
},
{
"quiz":1,
"question":4
},
{
"quiz":2,
"question":5
},
{
"quiz":2,
"question":6
},
{
"quiz":2,
"question":7
},
{
"quiz":2,
"question":8
},
{
"quiz":2,
"question":9
}
]

@ -1,22 +1,112 @@
[
{
"Id": 1,
"Content": "coucou",
"Charac": "moi",
"ImgPath": "img",
"TitleSrc": "G4",
"DateSrc": "2001-01-01",
"Like": 20,
"Langue": "fr"
},
{
"Id": 2,
"Content": "boujour",
"Charac": "toi",
"ImgPath": "img",
"TitleSrc": "G4",
"DateSrc": "2002-02-02",
"Like": 0,
"Langue": "fr"
"id_quote": "1",
"content": "Dans le monde il ny a pas dun côté le bien et le mal, il y a une part de lumière et dombre en chacun de nous. Ce qui compte cest celle que lon choisit de montrer dans nos actes, ça cest ce que lon est vraiment.",
"likes": 0,
"langue": "fr",
"isValide": true,
"reason": "insertion de test",
"id_caracter": 50,
"id_source": 38,
"id_user_verif": 1
},
{
"id_quote": "22",
"content": "Nous avons parié, mon père et moi. Je ne crois pas que tu tiendras dix minutes dans ce tournoi. Lui, il nest pas daccord, il croit que tu nen tiendras pas cinq.",
"likes": 0,
"langue": "fr",
"isValide": true,
"reason": "insertion de test",
"id_caracter": 7,
"id_source": 58,
"id_user_verif": 1
},
{
"id_quote": "45",
"content": "Je vous aurais suivi mon frère, mon capitaine, mon roi.",
"likes": 0,
"langue": "fr",
"isValide": true,
"reason": "insertion de test",
"id_caracter": 77,
"id_source": 76,
"id_user_verif": 1
},
{
"id_quote": "90",
"content": "Si vous le voulez bien, on se taillera des pipes plus tard, les enfants.",
"likes": 0,
"langue": "fr",
"isValide": true,
"reason": "insertion de test",
"id_caracter": 82,
"id_source": 9,
"id_user_verif": 1
},
{
"id_quote": "91",
"content": "Je fais le mort dans la 5e.",
"likes": 0,
"langue": "fr",
"isValide": true,
"reason": "insertion de test",
"id_caracter": 53,
"id_source": 9,
"id_user_verif": 1
},
{
"id_quote": "110",
"content": "Il les a tuées avec leur amour. Cest comme ça tous les jours dans le monde entier.",
"likes": 0,
"langue": "fr",
"isValide": true,
"reason": "insertion de test",
"id_caracter": 34,
"id_source": 74,
"id_user_verif": 1
},
{
"id_quote": "118",
"content": "La vengeance est un déesse dévorante. Eux aussi en sont victimes… Je ne dois pas céder à son appel. La justice finira par triompher.",
"likes": 0,
"langue": "fr",
"isValide": false,
"reason": "insertion de test",
"id_caracter": 44,
"id_source": 30,
"id_user_verif": 1
},
{
"id_quote": "185",
"content": "Tu viens de me montrer au complet ?!",
"likes": 0,
"langue": "fr",
"isValide": false,
"reason": "insertion de test",
"id_caracter": 38,
"id_source": 10,
"id_user_verif": 1
},
{
"id_quote": "182",
"content": "Nouille ou pas nouille, tu te préoccupes trop de ce qui a été ou de ce qui sera.",
"likes": 0,
"langue": "fr",
"isValide": false,
"reason": "insertion de test",
"id_caracter": 29,
"id_source": 71,
"id_user_verif": 1
},
{
"id_quote": "175",
"content": "Arrête de faire ton Jean-Jacques !",
"likes": 0,
"langue": "fr",
"isValide": false,
"reason": "insertion de test",
"id_caracter": 39,
"id_source": 68,
"id_user_verif": 1
}
]

@ -0,0 +1,8 @@
[
{
"users":1,
"quiz":1,
"nbPoint":3,
"timeQ": 0
}
]

@ -0,0 +1,87 @@
[
{
"id_source": 1,
"title": "Cars",
"dateS": 2006
},
{
"id_source": 2,
"title": "Le Parrain, 3ème partie",
"dateS": 1972
},
{
"id_source": 3,
"title": "Hunger Games : la révolte - 1re partie",
"dateS": 2012
},
{
"id_source": 4,
"title": "Le hobbit : la désolation de Smaug",
"dateS": 2012
},
{
"id_source": 5,
"title": "Là-haut",
"dateS": 2009
},
{
"id_source": 6,
"title": "Raiponce",
"dateS": 2010
},
{
"id_source": 7,
"title": "Harry Potter et les reliques de la mort - 1re partie",
"dateS": 2001
},
{
"id_source": 8,
"title": "Le seigneur des anneaux : les deux tours",
"dateS": 2001
},
{
"id_source": 9,
"title": "Pulp Fiction",
"dateS": 1994
},
{
"id_source": 10,
"title": "Dragons",
"dateS": 2010
},
{
"id_source": 30,
"title": "Captain America : civil war",
"dateS": 2011
},
{
"id_source": 38,
"title": "Harry Potter et Lordre du Phoenix",
"dateS": 2001
},
{
"id_source": 58,
"title": "Harry Potter et les reliques de la mort - 2e partie",
"dateS": 2001
},
{
"id_source": 68,
"title": "Coco",
"dateS": 2017
},
{
"id_source": 71,
"title": "Kung Fu Panda",
"dateS": 2008
},
{
"id_source": 74,
"title": "La Ligne Verte",
"dateS": 1999
},
{
"id_source": 76,
"title": "Le seigneur des anneaux : la communauté de lanneau",
"dateS": 2001
}
]

@ -1,31 +0,0 @@
[
{
"Id": 1,
"Image": "https://tse4.mm.bing.net/th/id/OIP.fc5TQflh0cbxB1GUeOdk6gHaK8?w=123&h=180&c=7&r=0&o=5&pid=1.7",
"Name": "Demo",
"Email": "demo@gmail.com",
"DateCreation": "2024-12-12"
},
{
"Id": 2,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "exploit",
"Email": "exploit@gmail.com",
"DateCreation": "2024-11-12"
},
{
"Id": 3,
"Image": "https://tse4.mm.bing.net/th/id/OIP.XNQPKwc1OUfvnSO9MsxDYgHaE7?w=202&h=180&c=7&r=0&o=5&pid=1.7",
"Name": "testeur",
"Email": "testeur@gmail.com",
"DateCreation": "2024-08-02"
},
{
"Id": 4,
"Image": "https://tse2.mm.bing.net/th/id/OIP.3vXkEUJ9J8s-GsnBC6I3KAHaF0?w=185&h=180&c=7&r=0&o=5&pid=1.7",
"Name": "dev",
"Email": "dev@gmail.com",
"DateCreation": "2024-10-10"
}
]

@ -0,0 +1,164 @@
[
{
"Id": 1,
"Image": "https://tse4.mm.bing.net/th/id/OIP.fc5TQflh0cbxB1GUeOdk6gHaK8?w=123&h=180&c=7&r=0&o=5&pid=1.7",
"Name": "Admin",
"Email": "admin@gmail.com",
"DateCreation": "2024-12-12",
"IsAdmin": true,
"Comments": [
{
"Text": "Commentaire 1",
"DateCreation": "2024-12-12"
},
{
"Text": "Commentaire 2",
"DateCreation": "2024-11-12"
}
]
},
{
"Id": 2,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "exploit",
"Email": "exploit@gmail.com",
"DateCreation": "2024-11-12",
"IsAdmin": true
},
{
"Id": 3,
"Image": "https://tse4.mm.bing.net/th/id/OIP.XNQPKwc1OUfvnSO9MsxDYgHaE7?w=202&h=180&c=7&r=0&o=5&pid=1.7",
"Name": "testeur",
"Email": "testeur@gmail.com",
"DateCreation": "2024-08-02",
"IsAdmin": false,
"Comments": [
{
"Text": "Premier test effectué, tout semble OK.",
"DateCreation": "2024-08-02"
}
]
},
{
"Id": 4,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "dev",
"Email": "dev@gmail.com",
"DateCreation": "2024-10-10",
"IsAdmin": false
},
{
"Id": 5,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "jean_doe",
"Email": "jean.doe@gmail.com",
"DateCreation": "2024-06-25",
"IsAdmin": false,
"Comments": [
{
"Text": "Utilisateur très actif, peut être un peu trop intrusif.",
"DateCreation": "2024-06-25"
}
]
},
{
"Id": 6,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "jane_smith",
"Email": "jane.smith@gmail.com",
"DateCreation": "2024-07-15",
"IsAdmin": false
},
{
"Id": 7,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "admin_joe",
"Email": "admin.joe@gmail.com",
"DateCreation": "2024-05-30",
"IsAdmin": true
},
{
"Id": 8,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "dev_anna",
"Email": "dev.anna@gmail.com",
"DateCreation": "2024-09-05",
"IsAdmin": false
},
{
"Id": 9,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "support_mark",
"Email": "support.mark@gmail.com",
"DateCreation": "2024-11-20",
"IsAdmin": false,
"Comments": [
{
"Text": "Support rapide et efficace, mais manquant un peu de détails.",
"DateCreation": "2024-11-20"
}
]
},
{
"Id": 10,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "dev_susan",
"Email": "dev.susan@gmail.com",
"DateCreation": "2024-08-12",
"IsAdmin": false
},
{
"Id": 11,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "designer_steve",
"Email": "designer.steve@gmail.com",
"DateCreation": "2024-07-01",
"IsAdmin": false,
"Comments": [
{
"Text": "Le design doit être retravaillé pour plus de clarté.",
"DateCreation": "2024-07-01"
}
]
},
{
"Id": 12,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "admin_lucas",
"Email": "admin.lucas@gmail.com",
"DateCreation": "2024-09-22",
"IsAdmin": true
},
{
"Id": 13,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "manager_anna",
"Email": "manager.anna@gmail.com",
"DateCreation": "2024-05-01",
"IsAdmin": false
},
{
"Id": 14,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "developer_mike",
"Email": "developer.mike@gmail.com",
"DateCreation": "2024-11-02",
"IsAdmin": false
},
{
"Id": 15,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "test_user_01",
"Email": "test.user01@gmail.com",
"DateCreation": "2024-06-10",
"IsAdmin": false
},
{
"Id": 16,
"Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Name": "admin_kate",
"Email": "admin.kate@gmail.com",
"DateCreation": "2024-04-16",
"IsAdmin": true
}
]

@ -1,20 +0,0 @@
[
{
"Id": 1,
"ImgPath": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7",
"Content": "'Dans le monde il ny a pas dun côté le bien et le mal, il y a une part de lumière et dombre en chacun de nous. Ce qui compte cest celle que lon choisit de montrer dans nos actes, ça cest ce que lon est vraiment.'",
"Charac": "Sirius Black",
"TitleSrc": "Harry Potter et Lordre du Phoenix",
"Langue": "fr",
"UserProposition": "demo"
},
{
"Id": 2,
"ImgPath": "https://tse2.mm.bing.net/th/id/OIP.zR4rzkK7q2wCcNwZd6jjegHaIC?w=163&h=180&c=7&r=0&o=5&pid=1.7",
"Content": "'Une autre citation'",
"Charac": "Un personnage",
"TitleSrc": "Un super film",
"Langue": "fr",
"UserProposition": "exploit"
}
]
Loading…
Cancel
Save