diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs index 6553676..b9e90bc 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs @@ -1,4 +1,5 @@ -using Microsoft.AspNetCore.Components; +using Blazorise.DataGrid; +using Microsoft.AspNetCore.Components; using WF_WebAdmin.Model; diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor index 7bc505b..3aec803 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor @@ -5,35 +5,40 @@

Accueil

+

Sitation du jour

+ +@* +
+ +

Identifiant de la citation :@quote.Id

+

Citation:@quote.Content

+

Personnage : @quote.Charac

+

Source : @quote.TitleSrc

+

Langue : @quote.Langue

+

@quote.UserProposition a proposé cette citation

+ +
+*@ + + @if (quotes != null) { - - - - - - - - - - - - - - @foreach (var quote in quotes) - { - - - - - - - - - - } - -
IdContentCharactéreTitle SourceLikeLangueDate Source
@quote.Id@quote.Content@quote.Charac@quote.TitleSrc@quote.Like@quote.Langue@quote.DateSrc.ToShortDateString()
+

Citations non validées

+

Citations en attente de validation:

+ + @foreach (var quote in quotes) + { +
+ +

Identifiant de la citation :@quote.Id

+

Citation:@quote.Content

+

Personnage : @quote.Charac

+

Source : @quote.TitleSrc

+

Langue : @quote.Langue

+

@quote.UserProposition a proposé cette citation

+ +
+ } } \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor.cs b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor.cs index 5e061c5..562af21 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor.cs +++ b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor.cs @@ -12,8 +12,9 @@ namespace WF_WebAdmin.Pages public partial class ValidQuote { // Chaîne de connexion à adapter - private const string connectionString = - "Host=londres;Port=5432;Database=dbkentin;Username=kentin;Password=passwd"; + private const string connectionString = + "Host=localhost;Port=5432;Database=wikifantasy3;Username=postgres;Password=postgres"; + //"pgsql:host=localhost;dbname=dbkekentin;Username=kekentin;Password=passwd"; private List quotes; diff --git a/WF-WebAdmin/WF-WebAdmin/Program.cs b/WF-WebAdmin/WF-WebAdmin/Program.cs index fa0d376..d106ef6 100644 --- a/WF-WebAdmin/WF-WebAdmin/Program.cs +++ b/WF-WebAdmin/WF-WebAdmin/Program.cs @@ -14,6 +14,7 @@ builder.Services.AddSingleton(); builder.Services.AddHttpClient(); + builder.Services .AddBlazorise() .AddBootstrapProviders() diff --git a/WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj b/WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj index e4eb494..a060d8e 100644 --- a/WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj +++ b/WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj @@ -1,4 +1,4 @@ - + net6.0 diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataAdmin.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataAdmin.json new file mode 100644 index 0000000..ca8d360 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataAdmin.json @@ -0,0 +1,8 @@ +[ + { + "users": 1 + }, + { + "users": 4 + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataCaracter.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataCaracter.json new file mode 100644 index 0000000..4a79ed5 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataCaracter.json @@ -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": "T’Challa / 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 + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataCommentaty.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataCommentaty.json new file mode 100644 index 0000000..351ff35 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataCommentaty.json @@ -0,0 +1,9 @@ +[ + { + "id_comment": 1, + "quote": 1, + "users": 1, + "dateC":"2024-10-10", + "comment": "coucou" + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataDailyQuote.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataDailyQuote.json new file mode 100644 index 0000000..e668fe0 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataDailyQuote.json @@ -0,0 +1,5 @@ +[ + { + "citation_id" : 1 + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataFavorite.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataFavorite.json new file mode 100644 index 0000000..ca20726 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataFavorite.json @@ -0,0 +1,6 @@ +[ + { + "users":1, + "quote":1 + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataImage.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataImage.json new file mode 100644 index 0000000..29201e4 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataImage.json @@ -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" + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataModifQuote.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataModifQuote.json deleted file mode 100644 index 20f7d2a..0000000 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataModifQuote.json +++ /dev/null @@ -1,90 +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": "Harry POTTER JE SUIS TON PERE", - "Charac": "Sirius Black", - "TitleSrc": "Harry Potter", - "Langue": "fr", - "UserProposition": "demo", - "DateSrc": "2001-01-01", - "Like": 20 - }, - { - "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", - "DateSrc": "2002-02-02", - "Like": 0, - "UserProposition": "exploit" - }, - { - "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": "Harry POTTER JE SUIS TON PERE", - "Charac": "Sirius Black", - "TitleSrc": "Harry Potter", - "Langue": "fr", - "UserProposition": "demo", - "DateSrc": "2001-01-01", - "Like": 20 - }, - { - "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", - "DateSrc": "2002-02-02", - "Like": 0, - "UserProposition": "exploit" - }, - { - "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": "Harry POTTER JE SUIS TON PERE", - "Charac": "Sirius Black", - "TitleSrc": "Harry Potter", - "Langue": "fr", - "UserProposition": "demo", - "DateSrc": "2001-01-01", - "Like": 20 - }, - { - "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", - "DateSrc": "2002-02-02", - "Like": 0, - "UserProposition": "exploit" - }, - { - "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": "Harry POTTER JE SUIS TON PERE", - "Charac": "Sirius Black", - "TitleSrc": "Harry Potter", - "Langue": "fr", - "UserProposition": "demo", - "DateSrc": "2001-01-01", - "Like": 20 - }, - { - "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", - "DateSrc": "2002-02-02", - "Like": 0, - "UserProposition": "exploit" - } -] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuestion.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuestion.json new file mode 100644 index 0000000..5fb52e8 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuestion.json @@ -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" + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuiz.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuiz.json new file mode 100644 index 0000000..9400dd3 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuiz.json @@ -0,0 +1,10 @@ +[ + { + "id_quiz": 1, + "nb_quest": 4 + }, + { + "id_quiz": 2, + "nb_quest": 5 + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuiz_Question.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuiz_Question.json new file mode 100644 index 0000000..327365d --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuiz_Question.json @@ -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 + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuote.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuote.json index f38cd34..39d4bd4 100644 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuote.json +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuote.json @@ -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 n’y a pas d’un côté le bien et le mal, il y a une part de lumière et d’ombre en chacun de nous. Ce qui compte c’est celle que l’on choisit de montrer dans nos actes, ça c’est ce que l’on 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 n’est pas d’accord, il croit que tu n’en 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. C’est 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 } ] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataRecord_Quiz.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataRecord_Quiz.json new file mode 100644 index 0000000..315a27e --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataRecord_Quiz.json @@ -0,0 +1,8 @@ +[ + { + "users":1, + "quiz":1, + "nbPoint":3, + "timeQ": 0 + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataSource.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataSource.json new file mode 100644 index 0000000..efc2ddb --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataSource.json @@ -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 L’ordre 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 l’anneau", + "dateS": 2001 + } +] \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json index 0547f7e..ec07099 100644 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json @@ -5,19 +5,19 @@ "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" - } - ] - }, - { + "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", @@ -31,13 +31,13 @@ "Name": "testeur", "Email": "testeur@gmail.com", "DateCreation": "2024-08-02", - "IsAdmin": false, - "Comments": [ - { - "Text": "Premier test effectué, tout semble OK.", - "DateCreation": "2024-08-02" - } - ] + "IsAdmin": false, + "Comments": [ + { + "Text": "Premier test effectué, tout semble OK.", + "DateCreation": "2024-08-02" + } + ] }, { "Id": 4, @@ -53,13 +53,13 @@ "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" - } - ] + "IsAdmin": false, + "Comments": [ + { + "Text": "Utilisateur très actif, peut être un peu trop intrusif.", + "DateCreation": "2024-06-25" + } + ] }, { "Id": 6, @@ -91,13 +91,13 @@ "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" - } - ] + "IsAdmin": false, + "Comments": [ + { + "Text": "Support rapide et efficace, mais manquant un peu de détails.", + "DateCreation": "2024-11-20" + } + ] }, { "Id": 10, @@ -113,13 +113,13 @@ "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" - } - ] + "IsAdmin": false, + "Comments": [ + { + "Text": "Le design doit être retravaillé pour plus de clarté.", + "DateCreation": "2024-07-01" + } + ] }, { "Id": 12, diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataValidQuote.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataValidQuote.json deleted file mode 100644 index e004ed9..0000000 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataValidQuote.json +++ /dev/null @@ -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 n’y a pas d’un côté le bien et le mal, il y a une part de lumière et d’ombre en chacun de nous. Ce qui compte c’est celle que l’on choisit de montrer dans nos actes, ça c’est ce que l’on est vraiment.'", - "Charac": "Sirius Black", - "TitleSrc": "Harry Potter et L’ordre 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" - } -] \ No newline at end of file