From 226e2531b09c0195415ad85e63e0eea625570abf Mon Sep 17 00:00:00 2001 From: "kentin.brongniart" Date: Thu, 9 Jan 2025 09:47:04 +0100 Subject: [PATCH] =?UTF-8?q?cr=C3=A9ation=20fausse=20basse=20de=20donn?= =?UTF-8?q?=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