From 415257342cbd4296d5877f804630d062ffabc444 Mon Sep 17 00:00:00 2001 From: "kentin.brongniart" Date: Wed, 8 Jan 2025 15:58:09 +0100 Subject: [PATCH 01/32] recuperation push --- WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs | 4 +- WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor | 59 ++++++++++--------- WF-WebAdmin/WF-WebAdmin/Pages/_Layout.cshtml | 1 + WF-WebAdmin/WF-WebAdmin/Program.cs | 3 + WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj | 7 +++ WF-WebAdmin/WF-WebAdmin/_Imports.razor | 2 +- .../WF-WebAdmin/wwwroot/fake-dataQuote.json | 16 ++--- 7 files changed, 55 insertions(+), 37 deletions(-) diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs index 6553676..d98f86e 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs @@ -1,4 +1,6 @@ -using Microsoft.AspNetCore.Components; +using Blazored.LocalStorage; +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 bba7495..e9f0d0b 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/_Layout.cshtml b/WF-WebAdmin/WF-WebAdmin/Pages/_Layout.cshtml index dd71165..db114bc 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/_Layout.cshtml +++ b/WF-WebAdmin/WF-WebAdmin/Pages/_Layout.cshtml @@ -28,5 +28,6 @@ + diff --git a/WF-WebAdmin/WF-WebAdmin/Program.cs b/WF-WebAdmin/WF-WebAdmin/Program.cs index cdcdbeb..77896c4 100644 --- a/WF-WebAdmin/WF-WebAdmin/Program.cs +++ b/WF-WebAdmin/WF-WebAdmin/Program.cs @@ -1,3 +1,4 @@ +using Blazored.LocalStorage; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using WF_WebAdmin.Data; @@ -11,6 +12,8 @@ builder.Services.AddSingleton(); builder.Services.AddHttpClient(); +builder.Services.AddBlazoredLocalStorage(); + var app = builder.Build(); // Configure the HTTP request pipeline. diff --git a/WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj b/WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj index 9c94761..5eab720 100644 --- a/WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj +++ b/WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj @@ -7,4 +7,11 @@ WF_WebAdmin + + + + + + + diff --git a/WF-WebAdmin/WF-WebAdmin/_Imports.razor b/WF-WebAdmin/WF-WebAdmin/_Imports.razor index 5f99f58..d4da21d 100644 --- a/WF-WebAdmin/WF-WebAdmin/_Imports.razor +++ b/WF-WebAdmin/WF-WebAdmin/_Imports.razor @@ -7,4 +7,4 @@ @using Microsoft.AspNetCore.Components.Web.Virtualization @using Microsoft.JSInterop @using WF_WebAdmin -@using WF_WebAdmin.Shared +@using WF_WebAdmin.Shared \ 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..1378868 100644 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuote.json +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuote.json @@ -1,20 +1,20 @@ [ { "Id": 1, - "Content": "coucou", - "Charac": "moi", - "ImgPath": "img", - "TitleSrc": "G4", + "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", + "ImgPath": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7", + "TitleSrc": "Harry Potter et L’ordre du Phoenix", "DateSrc": "2001-01-01", "Like": 20, "Langue": "fr" }, { "Id": 2, - "Content": "boujour", - "Charac": "toi", - "ImgPath": "img", - "TitleSrc": "G4", + "Content": "'Une autre citation'", + "Charac": "Un personnage", + "ImgPath": "https://tse2.mm.bing.net/th/id/OIP.zR4rzkK7q2wCcNwZd6jjegHaIC?w=163&h=180&c=7&r=0&o=5&pid=1.7", + "TitleSrc": "Un super film", "DateSrc": "2002-02-02", "Like": 0, "Langue": "fr" From a5fd2911026c674a5fcc423a78c58a52245fc0d6 Mon Sep 17 00:00:00 2001 From: tomivt Date: Wed, 8 Jan 2025 16:42:00 +0100 Subject: [PATCH 02/32] Start /ValidQuiz view --- .../.idea/.idea.WF-WebAdmin/.idea/.gitignore | 13 +++++++++++++ .../.idea/.idea.WF-WebAdmin/.idea/indexLayout.xml | 8 ++++++++ WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/vcs.xml | 6 ++++++ WF-WebAdmin/WF-WebAdmin/Model/Quiz.cs | 12 ++++++++++++ WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor | 11 +++++++++++ WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor.cs | 11 +++++++++++ WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor | 8 +++++++- 7 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/.gitignore create mode 100644 WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/indexLayout.xml create mode 100644 WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/vcs.xml create mode 100644 WF-WebAdmin/WF-WebAdmin/Model/Quiz.cs create mode 100644 WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor create mode 100644 WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor.cs diff --git a/WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/.gitignore b/WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/.gitignore new file mode 100644 index 0000000..f755717 --- /dev/null +++ b/WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/.gitignore @@ -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 diff --git a/WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/indexLayout.xml b/WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/vcs.xml b/WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/WF-WebAdmin/.idea/.idea.WF-WebAdmin/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/Model/Quiz.cs b/WF-WebAdmin/WF-WebAdmin/Model/Quiz.cs new file mode 100644 index 0000000..a5ecef4 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Model/Quiz.cs @@ -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; } +} \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor new file mode 100644 index 0000000..ad96674 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor @@ -0,0 +1,11 @@ +@page "/ValidQuiz" +@using WF_WebAdmin.Model + +

Quiz à valider

+ +@if (quizzes is null) +{ +

+ Chargement des quiz +

+} \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor.cs b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor.cs new file mode 100644 index 0000000..c419e91 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuiz.razor.cs @@ -0,0 +1,11 @@ +using Npgsql; +using WF_WebAdmin.Model; + +namespace WF_WebAdmin.Pages + +{ + public partial class ValidQuiz + { + private List quizzes; + } +} \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor b/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor index 5464a8c..d4c1b4f 100644 --- a/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor +++ b/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor @@ -25,6 +25,12 @@ + + } - - @if (showPopup) + + @if (showPopupDelete) {
@@ -63,24 +66,21 @@
} - + @if (showPopupAdmin) {

Êtes-vous sûr de vouloir changer le rôle de cet utilisateur ?

- +
} } -else -{ -

Aucun utilisateurs présents sur le site

-} + @code { diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor.cs b/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor.cs index 8c8a98f..e2d86dc 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor.cs +++ b/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor.cs @@ -9,7 +9,7 @@ namespace WF_WebAdmin.Pages private List users; - private bool showPopup = false; + private bool showPopupDelete = false; private User userToDelete = null; private bool showPopupAdmin = false; @@ -27,11 +27,11 @@ namespace WF_WebAdmin.Pages - + // ------- Popup remove user ------- private void ShowConfirmation(User user) { userToDelete = user; - showPopup = true; + showPopupDelete = true; } @@ -47,13 +47,12 @@ namespace WF_WebAdmin.Pages private void ClosePopup() { - showPopup = false; + showPopupDelete = false; + showPopupAdmin = false; } - - - + // ------- Popup admin ------- private void ShowConfirmationAdmin(User user) { userToAdmin = user; @@ -67,21 +66,15 @@ namespace WF_WebAdmin.Pages if (!userToAdmin.IsAdmin) { userToAdmin.IsAdmin = true; - ClosePopupAdmin(); + ClosePopup(); } else { userToAdmin.IsAdmin = false; - ClosePopupAdmin(); + ClosePopup(); } } - private void ClosePopupAdmin() - { - showPopupAdmin = false; - } - - } } From 4fdfc87290076714248535c7fe0035285233d331 Mon Sep 17 00:00:00 2001 From: "maxime.rocher" Date: Thu, 9 Jan 2025 08:54:15 +0100 Subject: [PATCH 07/32] =?UTF-8?q?DTO=20user=20et=20Quote=20termin=C3=A9=20?= =?UTF-8?q?avec=20extensions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WF-WebAdmin/WF-WebAdmin/Converter/AdminDTO.cs | 7 --- .../WF-WebAdmin/Converter/AdminExtension.cs | 6 --- WF-WebAdmin/WF-WebAdmin/Converter/QuoteDTO.cs | 44 ++++--------------- .../WF-WebAdmin/Converter/QuoteExtension.cs | 2 +- WF-WebAdmin/WF-WebAdmin/Converter/UserDTO.cs | 20 +++++++++ .../WF-WebAdmin/Converter/UserExtension.cs | 19 ++++++++ WF-WebAdmin/WF-WebAdmin/Model/Quote.cs | 13 ++++++ WF-WebAdmin/WF-WebAdmin/Model/User.cs | 9 ++++ WF-WebAdmin/WF-WebAdmin/appsettings.json | 15 ++++--- 9 files changed, 79 insertions(+), 56 deletions(-) delete mode 100644 WF-WebAdmin/WF-WebAdmin/Converter/AdminDTO.cs delete mode 100644 WF-WebAdmin/WF-WebAdmin/Converter/AdminExtension.cs create mode 100644 WF-WebAdmin/WF-WebAdmin/Converter/UserDTO.cs create mode 100644 WF-WebAdmin/WF-WebAdmin/Converter/UserExtension.cs diff --git a/WF-WebAdmin/WF-WebAdmin/Converter/AdminDTO.cs b/WF-WebAdmin/WF-WebAdmin/Converter/AdminDTO.cs deleted file mode 100644 index 4356cfe..0000000 --- a/WF-WebAdmin/WF-WebAdmin/Converter/AdminDTO.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace WF_WebAdmin.Converter -{ - public class AdminDTO - { - - } -} diff --git a/WF-WebAdmin/WF-WebAdmin/Converter/AdminExtension.cs b/WF-WebAdmin/WF-WebAdmin/Converter/AdminExtension.cs deleted file mode 100644 index 9b6ef16..0000000 --- a/WF-WebAdmin/WF-WebAdmin/Converter/AdminExtension.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace WF_WebAdmin.Converter -{ - public class AdminExtension - { - } -} diff --git a/WF-WebAdmin/WF-WebAdmin/Converter/QuoteDTO.cs b/WF-WebAdmin/WF-WebAdmin/Converter/QuoteDTO.cs index d2f3a58..f8b0fea 100644 --- a/WF-WebAdmin/WF-WebAdmin/Converter/QuoteDTO.cs +++ b/WF-WebAdmin/WF-WebAdmin/Converter/QuoteDTO.cs @@ -18,42 +18,14 @@ namespace WF_WebAdmin.Converter public QuoteDTO(int id_quote, string content, int likes, string langue, bool isValide, string? reason, int id_caracter, int id_source, int? id_user_verif) { this.Id = id_quote; - } - - public int getId_quote() - { - return id_quote; - } - public string getContent() { - return content; - } - public int getLikes() - { - return likes; - } - public string getLangue() - { - return langue; - } - public bool getIsValide() - { - return isValide; - } - public string? getReason() - { - return reason; - } - public int getIdCaracter() - { - return id_caracter; - } - public int getIdSource() - { - return id_source; - } - public int? getIdUserVerif() - { - return id_user_verif; + this.Content = content; + this.Likes = likes; + this.Langue = langue; + this.IsValide = isValide; + this.Reason = reason; + this.IdCaracter = id_caracter; + this.IdSource = id_source; + this.IdUserVerif = id_user_verif; } } } diff --git a/WF-WebAdmin/WF-WebAdmin/Converter/QuoteExtension.cs b/WF-WebAdmin/WF-WebAdmin/Converter/QuoteExtension.cs index c3401f3..0f3b187 100644 --- a/WF-WebAdmin/WF-WebAdmin/Converter/QuoteExtension.cs +++ b/WF-WebAdmin/WF-WebAdmin/Converter/QuoteExtension.cs @@ -12,7 +12,7 @@ namespace WF_WebAdmin.Converter public Quote DTOToQuote(QuoteDTO q) { - Quote quote = new Quote(); + Quote quote = new Quote(q.Id, q.Content, q.Likes, q.Langue, q.IsValide, q.Reason, q.IdCaracter, q.IdSource, q.IdUserVerif); return quote; } } diff --git a/WF-WebAdmin/WF-WebAdmin/Converter/UserDTO.cs b/WF-WebAdmin/WF-WebAdmin/Converter/UserDTO.cs new file mode 100644 index 0000000..e1b64da --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Converter/UserDTO.cs @@ -0,0 +1,20 @@ +namespace WF_WebAdmin.Converter +{ + public class UserDTO + { + 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 UserDTO(int id, string image, string name, string email, DateTime dateCreation) + { + this.Id = id; + this.Image = image; + this.Name = name; + this.Email = email; + this.DateCreation = dateCreation; + } + } +} diff --git a/WF-WebAdmin/WF-WebAdmin/Converter/UserExtension.cs b/WF-WebAdmin/WF-WebAdmin/Converter/UserExtension.cs new file mode 100644 index 0000000..4ff0937 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Converter/UserExtension.cs @@ -0,0 +1,19 @@ +using WF_WebAdmin.Model; + +namespace WF_WebAdmin.Converter +{ + public class UserExtension + { + public User UserToDTO(UserDTO u) + { + User user = new User(u.Id, u.Image, u.Name, u.Email, u.DateCreation); + return user; + } + + public UserDTO DTOToUser(User u) + { + UserDTO user = new UserDTO(u.Id, u.Image, u.Name, u.Email, u.DateCreation); + return user; + } + } +} diff --git a/WF-WebAdmin/WF-WebAdmin/Model/Quote.cs b/WF-WebAdmin/WF-WebAdmin/Model/Quote.cs index 4e3d711..c640723 100644 --- a/WF-WebAdmin/WF-WebAdmin/Model/Quote.cs +++ b/WF-WebAdmin/WF-WebAdmin/Model/Quote.cs @@ -24,5 +24,18 @@ IdSource = idSource; IdUserVerif = idUserVerif; } + + public Quote(int id, string content, int likes, string langue, bool isValide, string? reason, int idCaracter, int idSource, int? idUserVerif) + { + Id = id; + Content = content; + Likes = likes; + Langue = langue; + IsValide = isValide; + Reason = reason; + IdCaracter = idCaracter; + IdSource = idSource; + IdUserVerif = idUserVerif; + } } } diff --git a/WF-WebAdmin/WF-WebAdmin/Model/User.cs b/WF-WebAdmin/WF-WebAdmin/Model/User.cs index d599e5b..7598733 100644 --- a/WF-WebAdmin/WF-WebAdmin/Model/User.cs +++ b/WF-WebAdmin/WF-WebAdmin/Model/User.cs @@ -8,5 +8,14 @@ public string Email { get; set; } public DateTime DateCreation { get; set; } + + public User(int id, string image, string name, string email, DateTime dateCreation) + { + this.Id = id; + this.Image = image; + this.Name = name; + this.Email = email; + this.DateCreation = dateCreation; + } } } diff --git a/WF-WebAdmin/WF-WebAdmin/appsettings.json b/WF-WebAdmin/WF-WebAdmin/appsettings.json index 4d56694..3ec194b 100644 --- a/WF-WebAdmin/WF-WebAdmin/appsettings.json +++ b/WF-WebAdmin/WF-WebAdmin/appsettings.json @@ -1,9 +1,12 @@ { - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*", + "ConnectionStrings": { + "DefaultConnection": "Host=localhost;Port=5432;Database=wikifantasy3;Username=postgres;Password=postgres" } - }, - "AllowedHosts": "*" } From a52e0711134cb643bcff7cebcd37569c61574e11 Mon Sep 17 00:00:00 2001 From: "kentin.brongniart" Date: Thu, 9 Jan 2025 09:45:59 +0100 Subject: [PATCH 08/32] =?UTF-8?q?cr=C3=A9ation=20fausse=20basse=20de=20don?= =?UTF-8?q?n=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WF-WebAdmin/wwwroot/fake-dataAdmin.json | 8 ++ .../wwwroot/fake-dataCaracter.json | 52 ++++++++ .../wwwroot/fake-dataCommentaty.json | 9 ++ .../wwwroot/fake-dataDailyQuote.json | 5 + .../wwwroot/fake-dataFavorite.json | 6 + .../WF-WebAdmin/wwwroot/fake-dataImage.json | 82 ++++++++++++ .../wwwroot/fake-dataQuestion.json | 83 ++++++++++++ .../WF-WebAdmin/wwwroot/fake-dataQuiz.json | 10 ++ .../wwwroot/fake-dataQuiz_Question.json | 38 ++++++ .../WF-WebAdmin/wwwroot/fake-dataQuote.json | 126 +++++++++++++++--- .../wwwroot/fake-dataRecord_Quiz.json | 8 ++ .../WF-WebAdmin/wwwroot/fake-dataSource.json | 87 ++++++++++++ .../WF-WebAdmin/wwwroot/fake-dataUsers.json | 34 +++++ 13 files changed, 530 insertions(+), 18 deletions(-) create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataAdmin.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataCaracter.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataCommentaty.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataDailyQuote.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataFavorite.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataImage.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuestion.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuiz.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataQuiz_Question.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataRecord_Quiz.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataSource.json create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json 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-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 1378868..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": "'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", - "ImgPath": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7", - "TitleSrc": "Harry Potter et L’ordre du Phoenix", - "DateSrc": "2001-01-01", - "Like": 20, - "Langue": "fr" - }, - { - "Id": 2, - "Content": "'Une autre citation'", - "Charac": "Un personnage", - "ImgPath": "https://tse2.mm.bing.net/th/id/OIP.zR4rzkK7q2wCcNwZd6jjegHaIC?w=163&h=180&c=7&r=0&o=5&pid=1.7", - "TitleSrc": "Un super film", - "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 new file mode 100644 index 0000000..5550b8b --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json @@ -0,0 +1,34 @@ +[ + { + "id_user": 1, + "username": "exploit", + "email": "exploit@gmail.com", + "password": "passwd", + "img": 1, + "creation": "2024-11-12" + }, + { + "id_user": 2, + "username": "Demo", + "email": "demo@gmail.com", + "password": "passwd", + "img": 2, + "creation": "2024-12-12" + }, + { + "id_user": 3, + "username": "testeur", + "email": "testeur@gmail.com", + "password": "passwd", + "img": 3, + "creation": "2024-08-02" + }, + { + "id_user": 4, + "username": "dev", + "email": "dev@gmail.com", + "password": "passwd", + "img": 4, + "creation": "2024-10-10" + } +] \ No newline at end of file From 226e2531b09c0195415ad85e63e0eea625570abf Mon Sep 17 00:00:00 2001 From: "kentin.brongniart" Date: Thu, 9 Jan 2025 09:47:04 +0100 Subject: [PATCH 09/32] =?UTF-8?q?cr=C3=A9ation=20fausse=20basse=20de=20don?= =?UTF-8?q?n=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs | 3 +- .../WF-WebAdmin/Pages/ValidQuote.razor.cs | 6 +- WF-WebAdmin/WF-WebAdmin/WF-WebAdmin.csproj | 2 +- .../wwwroot/fake-dataModifQuote.json | 90 ------------------- .../WF-WebAdmin/wwwroot/fake-dataUser.json | 31 ------- .../wwwroot/fake-dataValidQuote.json | 20 ----- 6 files changed, 5 insertions(+), 147 deletions(-) delete mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataModifQuote.json delete mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json delete mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataValidQuote.json diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs index d98f86e..b9e90bc 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.cs @@ -1,5 +1,4 @@ -using Blazored.LocalStorage; -using Blazorise.DataGrid; +using Blazorise.DataGrid; using Microsoft.AspNetCore.Components; using WF_WebAdmin.Model; diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor.cs b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor.cs index a42112a..931d835 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor.cs +++ b/WF-WebAdmin/WF-WebAdmin/Pages/ValidQuote.razor.cs @@ -12,9 +12,9 @@ namespace WF_WebAdmin.Pages public partial class ValidQuote { // Chaîne de connexion à adapter - private const string connectionString = - "Host=localhost;Port=5432;Database=wikifantasy3;Username=postgres;Password=postgres"; - + private const string connectionString = + "pgsql:host=localhost;dbname=dbkekentin;Username=kekentin;Password=passwd"; + //"Host=localhost;Port=5432;Database=wikifantasy3;Username=postgres;Password=postgres"; private List quotes; protected override async Task OnInitializedAsync() 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-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-dataUser.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json deleted file mode 100644 index 60632fc..0000000 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json +++ /dev/null @@ -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" - } -] \ No newline at end of file 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 From b416e774afa2401ffe94138ba8a42136d4a539c3 Mon Sep 17 00:00:00 2001 From: lebeaulato Date: Thu, 9 Jan 2025 10:14:22 +0100 Subject: [PATCH 10/32] Ajout de la page login + affichage des commentaires par utilisateur --- WF-WebAdmin/WF-WebAdmin/Model/Commentary.cs | 4 +- WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor | 2 +- .../WF-WebAdmin/Pages/DeleteUser.razor | 3 +- WF-WebAdmin/WF-WebAdmin/Pages/Login.razor | 81 +++++++++++++++++++ WF-WebAdmin/WF-WebAdmin/Pages/Login.razor.cs | 13 +++ WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor | 11 ++- WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css | 2 +- .../WF-WebAdmin/wwwroot/fake-dataUser.json | 76 ++++++++--------- 8 files changed, 148 insertions(+), 44 deletions(-) create mode 100644 WF-WebAdmin/WF-WebAdmin/Pages/Login.razor create mode 100644 WF-WebAdmin/WF-WebAdmin/Pages/Login.razor.cs diff --git a/WF-WebAdmin/WF-WebAdmin/Model/Commentary.cs b/WF-WebAdmin/WF-WebAdmin/Model/Commentary.cs index c3251c3..acb43ef 100644 --- a/WF-WebAdmin/WF-WebAdmin/Model/Commentary.cs +++ b/WF-WebAdmin/WF-WebAdmin/Model/Commentary.cs @@ -2,8 +2,8 @@ { public class Commentary { - public int Id { get; set; } - public int IdUser { get; set; } + //public int Id { get; set; } + //public int IdUser { get; set; } public string Text { get; set; } public DateTime DateCreation { get; set; } } diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor index bba7495..7bc505b 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Accueil.razor @@ -1,4 +1,4 @@ -@page "/" +@page "/Accueil" Accueil diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor b/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor index 6c180ac..0b0ec58 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor +++ b/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor @@ -31,9 +31,10 @@ else @if(user.Comments != null) { +

▶ Commentaire(s) posté(s) par @user.Name :

@foreach (var comment in user.Comments) { -

Commentaire (@comment.) : @comment.Text

+

@comment.DateCreation.ToShortDateString() - @comment.Text

} } else diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor b/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor new file mode 100644 index 0000000..f9f7369 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor @@ -0,0 +1,81 @@ +@page "/" +

▶ Connexion ◀

+ + + + + +@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 + } +} \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor.cs b/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor.cs new file mode 100644 index 0000000..0f288f5 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor.cs @@ -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 + { + + } +} \ No newline at end of file diff --git a/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor b/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor index d4c1b4f..2967cee 100644 --- a/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor +++ b/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor @@ -11,7 +11,13 @@
@@ -57,3 +63,4 @@ collapseNavMenu = !collapseNavMenu; } } + diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css b/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css index 9f8f5cf..7edc28f 100644 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css @@ -86,7 +86,7 @@ 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; } diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json index 519f6ca..0547f7e 100644 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json @@ -5,7 +5,17 @@ "Name": "Admin", "Email": "admin@gmail.com", "DateCreation": "2024-12-12", - "IsAdmin": true + "IsAdmin": true, + "Comments": [ + { + "Text": "Commentaire 1", + "DateCreation": "2024-12-12" + }, + { + "Text": "Commentaire 2", + "DateCreation": "2024-11-12" + } + ] }, { "Id": 2, @@ -21,7 +31,13 @@ "Name": "testeur", "Email": "testeur@gmail.com", "DateCreation": "2024-08-02", - "IsAdmin": false + "IsAdmin": false, + "Comments": [ + { + "Text": "Premier test effectué, tout semble OK.", + "DateCreation": "2024-08-02" + } + ] }, { "Id": 4, @@ -37,7 +53,13 @@ "Name": "jean_doe", "Email": "jean.doe@gmail.com", "DateCreation": "2024-06-25", - "IsAdmin": false + "IsAdmin": false, + "Comments": [ + { + "Text": "Utilisateur très actif, peut être un peu trop intrusif.", + "DateCreation": "2024-06-25" + } + ] }, { "Id": 6, @@ -69,7 +91,13 @@ "Name": "support_mark", "Email": "support.mark@gmail.com", "DateCreation": "2024-11-20", - "IsAdmin": false + "IsAdmin": false, + "Comments": [ + { + "Text": "Support rapide et efficace, mais manquant un peu de détails.", + "DateCreation": "2024-11-20" + } + ] }, { "Id": 10, @@ -85,7 +113,13 @@ "Name": "designer_steve", "Email": "designer.steve@gmail.com", "DateCreation": "2024-07-01", - "IsAdmin": false + "IsAdmin": false, + "Comments": [ + { + "Text": "Le design doit être retravaillé pour plus de clarté.", + "DateCreation": "2024-07-01" + } + ] }, { "Id": 12, @@ -126,37 +160,5 @@ "Email": "admin.kate@gmail.com", "DateCreation": "2024-04-16", "IsAdmin": true - }, - { - "Id": 17, - "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_olivia", - "Email": "support.olivia@gmail.com", - "DateCreation": "2024-07-30", - "IsAdmin": false - }, - { - "Id": 18, - "Image": "https://tse2.mm.bing.net/th/id/OIP.MMpXBB5RDRYQm05FJmevGAHaKl?w=137&h=195&c=7&r=0&o=5&pid=1.7", - "Name": "assistant_jack", - "Email": "assistant.jack@gmail.com", - "DateCreation": "2024-10-03", - "IsAdmin": false - }, - { - "Id": 19, - "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_bob", - "Email": "developer.bob@gmail.com", - "DateCreation": "2024-06-01", - "IsAdmin": false - }, - { - "Id": 20, - "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_sophie", - "Email": "admin.sophie@gmail.com", - "DateCreation": "2024-12-05", - "IsAdmin": true } ] \ No newline at end of file From 77d8653ffde8f7cb04473a4d4dc7ee5ec7a712d7 Mon Sep 17 00:00:00 2001 From: Louis GUICHARD-MONTGUERS Date: Thu, 9 Jan 2025 10:15:39 +0100 Subject: [PATCH 11/32] ajout --- .../WF-WebAdmin/Service/QuoteServiceLocal.cs | 119 ++++++++++++++++++ WF-WebAdmin/WF-WebAdmin/_Imports.razor | 1 + 2 files changed, 120 insertions(+) create mode 100644 WF-WebAdmin/WF-WebAdmin/Service/QuoteServiceLocal.cs diff --git a/WF-WebAdmin/WF-WebAdmin/Service/QuoteServiceLocal.cs b/WF-WebAdmin/WF-WebAdmin/Service/QuoteServiceLocal.cs new file mode 100644 index 0000000..433e5d4 --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/Service/QuoteServiceLocal.cs @@ -0,0 +1,119 @@ +using WF_WebAdmin.Converter; +using WF_WebAdmin.Model; +using Npgsql; + +namespace WF_WebAdmin.Service +{ + public class QuoteServiceLocal: IQuoteService + { + private readonly string? _connectionString = "Host=localhost;Port=5432;Username=loguichard3;Password=Reglisse15.;Database=dbloguichard3"; + + + + + public async Task AddQuoteAsync(Quote quote) + { + QuoteExtension extension = new QuoteExtension(); + QuoteDTO quoteDTO = extension.QuoteToDTO(quote); + + // Utilisation de NpgsqlConnection pour PostgreSQL + using (var connection = new NpgsqlConnection(_connectionString)) + { + // Définir la requête SQL d'insertion + var commandText = "INSERT INTO Quote (content, langue, reason, id_source, id_caracter, id_user_verif, img_path) " + + "VALUES (@content, @langue, @reason, @source, @character, @user, @img_path)"; + + // Créer une commande Npgsql + var command = new NpgsqlCommand(commandText, connection); + + // Ajouter des paramètres à la commande + command.Parameters.AddWithValue("@content", quote.Content); + command.Parameters.AddWithValue("@langue", quote.Langue); + command.Parameters.AddWithValue("@reason", "À vérifier"); // Vous pouvez changer ça si nécessaire + command.Parameters.AddWithValue("@source", quote.Source); + command.Parameters.AddWithValue("@character", quote.Character); + command.Parameters.AddWithValue("@user", quote.User); // Assurez-vous que `quote.User` est correctement défini + command.Parameters.AddWithValue("@img_path", quote.ImgPath); + + try + { + // Ouvrir la connexion à la base de données + await connection.OpenAsync(); + + // Exécuter la commande d'insertion + await command.ExecuteNonQueryAsync(); + } + catch (Exception ex) + { + // Gérer les erreurs ici (par exemple, afficher ou enregistrer les erreurs) + Console.WriteLine($"Une erreur est survenue lors de l'ajout de la citation : {ex.Message}"); + } + finally + { + // Fermer la connexion (automatiquement géré avec `using`, mais ajouté pour explicitement montrer le processus) + await connection.CloseAsync(); + } + } + + // Retourner l'objet DTO pour que vous puissiez l'utiliser ailleurs dans votre application + return quoteDTO; + } + } + + public Task RemoveQuote(Quote quote) + { + QuoteExtension extension = new QuoteExtension(); + QuoteDTO quoteDTO = extension.QuoteToDTO(quote); + + return Task.FromResult(quoteDTO); + } + + public Task validQuote(Quote quote) + { + QuoteExtension extension = new QuoteExtension(); + QuoteDTO quoteDTO = extension.QuoteToDTO(quote); + + return Task.FromResult(quoteDTO); + } + + public Task updateQuote(Quote quote) + { + QuoteExtension extension = new QuoteExtension(); + QuoteDTO quoteDTO = extension.QuoteToDTO(quote); + + return Task.FromResult(quoteDTO); + } + + public Task> getAllQuote() + { + + } + + public Task> getSomeQuote(int nb, int page) + { + + } + + public Task> getOnequote(int id) + { + + } + + public Task> reserchQuote(string reserch, List argument) + { + + } + + public Task> getAllQuoteInvalid() + { + + } + + public Task> getSomeQuoteInvalid(int nb, int page) + { + + } + + + } +} diff --git a/WF-WebAdmin/WF-WebAdmin/_Imports.razor b/WF-WebAdmin/WF-WebAdmin/_Imports.razor index f261bea..cbc1f08 100644 --- a/WF-WebAdmin/WF-WebAdmin/_Imports.razor +++ b/WF-WebAdmin/WF-WebAdmin/_Imports.razor @@ -9,3 +9,4 @@ @using WF_WebAdmin @using WF_WebAdmin.Shared @using Blazorise.DataGrid + From 5ed7fa68d85589e6be28d776d7d7841370771005 Mon Sep 17 00:00:00 2001 From: lebeaulato Date: Thu, 9 Jan 2025 10:16:12 +0100 Subject: [PATCH 12/32] css login --- WF-WebAdmin/WF-WebAdmin/Pages/Login.razor | 53 -------------------- WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css | 52 ++++++++++++++++++- 2 files changed, 51 insertions(+), 54 deletions(-) diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor b/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor index f9f7369..7fc91e3 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor +++ b/WF-WebAdmin/WF-WebAdmin/Pages/Login.razor @@ -18,59 +18,6 @@ @* *@ - @code { private void ShowFullSite() diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css b/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css index 7edc28f..98f5a67 100644 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/css/site.css @@ -121,4 +121,54 @@ button { gap: 10px; width: 300px; text-align: center; -} \ No newline at end of file +} + + +.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; +} From afa6845535563a1bebabe9392de641659c4bb885 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 9 Jan 2025 10:20:23 +0100 Subject: [PATCH 13/32] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'WF-WebAdmin/?= =?UTF-8?q?WF-WebAdmin/wwwroot/fake-dataUsers.json'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WF-WebAdmin/wwwroot/fake-dataUsers.json | 196 +++++++++++++++--- 1 file changed, 163 insertions(+), 33 deletions(-) diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json index 5550b8b..07db7bb 100644 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json @@ -1,34 +1,164 @@ -[ - { - "id_user": 1, - "username": "exploit", - "email": "exploit@gmail.com", - "password": "passwd", - "img": 1, - "creation": "2024-11-12" - }, - { - "id_user": 2, - "username": "Demo", - "email": "demo@gmail.com", - "password": "passwd", - "img": 2, - "creation": "2024-12-12" - }, - { - "id_user": 3, - "username": "testeur", - "email": "testeur@gmail.com", - "password": "passwd", - "img": 3, - "creation": "2024-08-02" - }, - { - "id_user": 4, - "username": "dev", - "email": "dev@gmail.com", - "password": "passwd", - "img": 4, - "creation": "2024-10-10" - } +[ + { + "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 + } ] \ No newline at end of file From ce916e442201b56a575bcf54795586f4c3752381 Mon Sep 17 00:00:00 2001 From: lebeaulato Date: Thu, 9 Jan 2025 10:28:39 +0100 Subject: [PATCH 14/32] renommage --- .../wwwroot/{fake-dataUser.json => fake-dataUsers.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename WF-WebAdmin/WF-WebAdmin/wwwroot/{fake-dataUser.json => fake-dataUsers.json} (100%) diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json similarity index 100% rename from WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUser.json rename to WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json From 2d83bd8014007596ec1a6b5f681f76598eb47bcb Mon Sep 17 00:00:00 2001 From: lebeaulato Date: Thu, 9 Jan 2025 10:32:39 +0100 Subject: [PATCH 15/32] pour la fusion --- .../WF-WebAdmin/wwwroot/fake-dataUsers.json | 164 ------------------ 1 file changed, 164 deletions(-) delete mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json deleted file mode 100644 index 0547f7e..0000000 --- a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json +++ /dev/null @@ -1,164 +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": "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 - } -] \ No newline at end of file From 9c76e5204e9d8b1ef735bd48031229a581f66d08 Mon Sep 17 00:00:00 2001 From: lebeaulato Date: Thu, 9 Jan 2025 10:34:49 +0100 Subject: [PATCH 16/32] encore pour la fusion --- .../WF-WebAdmin/wwwroot/fake-dataUsers.json | 164 ++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json diff --git a/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json new file mode 100644 index 0000000..0547f7e --- /dev/null +++ b/WF-WebAdmin/WF-WebAdmin/wwwroot/fake-dataUsers.json @@ -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 + } +] \ No newline at end of file From b4c50be5784163aade68e15ad8fa2a0fef8ff973 Mon Sep 17 00:00:00 2001 From: lebeaulato Date: Thu, 9 Jan 2025 11:01:38 +0100 Subject: [PATCH 17/32] correcton bug --- WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor.cs | 2 +- WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor.cs b/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor.cs index e2d86dc..9d2a681 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor.cs +++ b/WF-WebAdmin/WF-WebAdmin/Pages/DeleteUser.razor.cs @@ -22,7 +22,7 @@ namespace WF_WebAdmin.Pages protected override async Task OnInitializedAsync() { - users = await Http.GetFromJsonAsync>($"{NavigationManager.BaseUri}fake-dataUser.json"); + users = await Http.GetFromJsonAsync>($"{NavigationManager.BaseUri}fake-dataUsers.json"); } diff --git a/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor.cs b/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor.cs index 6bb7933..727c394 100644 --- a/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor.cs +++ b/WF-WebAdmin/WF-WebAdmin/Pages/ModifQuote.razor.cs @@ -17,7 +17,7 @@ namespace WF_WebAdmin.Pages protected override async Task OnInitializedAsync() { - quotes = await Http.GetFromJsonAsync($"{NavigationManager.BaseUri}fake-dataModifQuote.json"); + //quotes = await Http.GetFromJsonAsync($"{NavigationManager.BaseUri}fake-dataModifQuote.json"); } } } From d1c7001bf7d7056ae0a8cc41695acda0e1b0a03b Mon Sep 17 00:00:00 2001 From: lebeaulato Date: Thu, 9 Jan 2025 11:32:30 +0100 Subject: [PATCH 18/32] changement de nom --- WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor b/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor index 2967cee..86c7ce7 100644 --- a/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor +++ b/WF-WebAdmin/WF-WebAdmin/Shared/NavMenu.razor @@ -1,6 +1,6 @@