diff --git a/VeraxShield/.vs/ProjectEvaluation/veraxshield.metadata.v7.bin b/VeraxShield/.vs/ProjectEvaluation/veraxshield.metadata.v7.bin
new file mode 100644
index 0000000..9a55831
Binary files /dev/null and b/VeraxShield/.vs/ProjectEvaluation/veraxshield.metadata.v7.bin differ
diff --git a/VeraxShield/.vs/ProjectEvaluation/veraxshield.projects.v7.bin b/VeraxShield/.vs/ProjectEvaluation/veraxshield.projects.v7.bin
new file mode 100644
index 0000000..f6ee178
Binary files /dev/null and b/VeraxShield/.vs/ProjectEvaluation/veraxshield.projects.v7.bin differ
diff --git a/VeraxShield/.vs/VeraxShield/DesignTimeBuild/.dtbcache.v2 b/VeraxShield/.vs/VeraxShield/DesignTimeBuild/.dtbcache.v2
new file mode 100644
index 0000000..0e23ac7
Binary files /dev/null and b/VeraxShield/.vs/VeraxShield/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/VeraxShield/.vs/VeraxShield/FileContentIndex/1d12514f-0073-49cc-ab19-b6b37ddef988.vsidx b/VeraxShield/.vs/VeraxShield/FileContentIndex/1d12514f-0073-49cc-ab19-b6b37ddef988.vsidx
new file mode 100644
index 0000000..5a48248
Binary files /dev/null and b/VeraxShield/.vs/VeraxShield/FileContentIndex/1d12514f-0073-49cc-ab19-b6b37ddef988.vsidx differ
diff --git a/VeraxShield/.vs/VeraxShield/FileContentIndex/5af74429-dad7-4891-902d-5156ab83f011.vsidx b/VeraxShield/.vs/VeraxShield/FileContentIndex/5af74429-dad7-4891-902d-5156ab83f011.vsidx
new file mode 100644
index 0000000..b60eede
Binary files /dev/null and b/VeraxShield/.vs/VeraxShield/FileContentIndex/5af74429-dad7-4891-902d-5156ab83f011.vsidx differ
diff --git a/VeraxShield/.vs/VeraxShield/FileContentIndex/ad16da57-bc8b-45f8-88d8-4b2e22de469e.vsidx b/VeraxShield/.vs/VeraxShield/FileContentIndex/ad16da57-bc8b-45f8-88d8-4b2e22de469e.vsidx
new file mode 100644
index 0000000..8cd5a77
Binary files /dev/null and b/VeraxShield/.vs/VeraxShield/FileContentIndex/ad16da57-bc8b-45f8-88d8-4b2e22de469e.vsidx differ
diff --git a/VeraxShield/.vs/VeraxShield/FileContentIndex/c9d63bde-a3f1-4296-b89e-27f8e014e00d.vsidx b/VeraxShield/.vs/VeraxShield/FileContentIndex/c9d63bde-a3f1-4296-b89e-27f8e014e00d.vsidx
new file mode 100644
index 0000000..d5bf64f
Binary files /dev/null and b/VeraxShield/.vs/VeraxShield/FileContentIndex/c9d63bde-a3f1-4296-b89e-27f8e014e00d.vsidx differ
diff --git a/VeraxShield/.vs/VeraxShield/v17/.futdcache.v2 b/VeraxShield/.vs/VeraxShield/v17/.futdcache.v2
new file mode 100644
index 0000000..5da1801
Binary files /dev/null and b/VeraxShield/.vs/VeraxShield/v17/.futdcache.v2 differ
diff --git a/VeraxShield/.vs/VeraxShield/v17/.suo b/VeraxShield/.vs/VeraxShield/v17/.suo
new file mode 100644
index 0000000..f0065ea
Binary files /dev/null and b/VeraxShield/.vs/VeraxShield/v17/.suo differ
diff --git a/VeraxShield/VeraxShield/Pages/_Imports.razor b/VeraxShield/VeraxShield/Pages/_Imports.razor
index 03c5504..a97b21f 100644
--- a/VeraxShield/VeraxShield/Pages/_Imports.razor
+++ b/VeraxShield/VeraxShield/Pages/_Imports.razor
@@ -1 +1,2 @@
-@using VeraxShield.composants
\ No newline at end of file
+@using VeraxShield.composants
+@using VeraxShield.composants.modals
\ No newline at end of file
diff --git a/VeraxShield/VeraxShield/Pages/utilisateurs/AjouterUtilisateur.razor.cs b/VeraxShield/VeraxShield/Pages/utilisateurs/AjouterUtilisateur.razor.cs
index 8a58605..81a48d7 100644
--- a/VeraxShield/VeraxShield/Pages/utilisateurs/AjouterUtilisateur.razor.cs
+++ b/VeraxShield/VeraxShield/Pages/utilisateurs/AjouterUtilisateur.razor.cs
@@ -1,4 +1,7 @@
-namespace VeraxShield.Pages.utilisateurs
+using Microsoft.AspNetCore.Components;
+using VeraxShield.services.UtilisateursDataService;
+
+namespace VeraxShield.Pages.utilisateurs
{
public partial class AjouterUtilisateur
{
diff --git a/VeraxShield/VeraxShield/Pages/utilisateurs/ListeUtilisateurs.razor b/VeraxShield/VeraxShield/Pages/utilisateurs/ListeUtilisateurs.razor
index 89b30df..4c9cb3a 100644
--- a/VeraxShield/VeraxShield/Pages/utilisateurs/ListeUtilisateurs.razor
+++ b/VeraxShield/VeraxShield/Pages/utilisateurs/ListeUtilisateurs.razor
@@ -64,5 +64,19 @@
+
+
+ Ajouter
+
+
+
+
+
+
+
+
+
diff --git a/VeraxShield/VeraxShield/Pages/utilisateurs/ListeUtilisateurs.razor.cs b/VeraxShield/VeraxShield/Pages/utilisateurs/ListeUtilisateurs.razor.cs
index c01b473..05ecc6c 100644
--- a/VeraxShield/VeraxShield/Pages/utilisateurs/ListeUtilisateurs.razor.cs
+++ b/VeraxShield/VeraxShield/Pages/utilisateurs/ListeUtilisateurs.razor.cs
@@ -9,7 +9,7 @@ namespace VeraxShield.Pages.utilisateurs
[Inject]
private IUtilisateursDataService utilisateursDataService { get; set; }
- private List Utilisateurs { get; set; }
+ public List Utilisateurs { get; set; }
private Utilisateur utilisateurSelectionne;
@@ -18,12 +18,12 @@ namespace VeraxShield.Pages.utilisateurs
//await this.utilisateursDataService.resetDataUtilisateurs();
this.Utilisateurs = await this.utilisateursDataService.getAllUtilisateurs();
- Console.WriteLine(" nb Utilisateurs : " + Utilisateurs.Count());
- foreach (Utilisateur u in Utilisateurs)
- {
- Console.WriteLine("Pseudo : " + u.Pseudo);
- }
+ //Console.WriteLine(" nb Utilisateurs : " + Utilisateurs.Count());
+ //foreach (Utilisateur u in Utilisateurs)
+ //{
+ // Console.WriteLine("Pseudo : " + u.Pseudo);
+ //}
await base.OnInitializedAsync();
}
diff --git a/VeraxShield/VeraxShield/VeraxShield.csproj b/VeraxShield/VeraxShield/VeraxShield.csproj
index 29a8d52..cc1d6a1 100644
--- a/VeraxShield/VeraxShield/VeraxShield.csproj
+++ b/VeraxShield/VeraxShield/VeraxShield.csproj
@@ -13,6 +13,7 @@
+
diff --git a/VeraxShield/VeraxShield/bin/Debug/net7.0/Blazorise.Components.dll b/VeraxShield/VeraxShield/bin/Debug/net7.0/Blazorise.Components.dll
new file mode 100644
index 0000000..6c63d69
Binary files /dev/null and b/VeraxShield/VeraxShield/bin/Debug/net7.0/Blazorise.Components.dll differ
diff --git a/VeraxShield/VeraxShield/bin/Debug/net7.0/Blazorise.Snackbar.dll b/VeraxShield/VeraxShield/bin/Debug/net7.0/Blazorise.Snackbar.dll
new file mode 100644
index 0000000..c5b8813
Binary files /dev/null and b/VeraxShield/VeraxShield/bin/Debug/net7.0/Blazorise.Snackbar.dll differ
diff --git a/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.deps.json b/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.deps.json
index 3cb4a52..dfb6a4a 100644
--- a/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.deps.json
+++ b/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.deps.json
@@ -10,6 +10,7 @@
"dependencies": {
"Blazored.LocalStorage": "4.4.0",
"Blazorise.Bootstrap": "1.4.0",
+ "Blazorise.Components": "1.4.0",
"Blazorise.DataGrid": "1.4.0",
"Blazorise.Icons.FontAwesome": "1.4.0"
},
@@ -57,6 +58,21 @@
}
}
},
+ "Blazorise.Components/1.4.0": {
+ "dependencies": {
+ "Blazorise": "1.4.0",
+ "Blazorise.Snackbar": "1.4.0",
+ "Microsoft.AspNetCore.Components": "7.0.14",
+ "Microsoft.AspNetCore.Components.Web": "7.0.14",
+ "Microsoft.Extensions.Logging.Abstractions": "7.0.1"
+ },
+ "runtime": {
+ "lib/net7.0/Blazorise.Components.dll": {
+ "assemblyVersion": "1.4.0.0",
+ "fileVersion": "1.4.0.0"
+ }
+ }
+ },
"Blazorise.DataGrid/1.4.0": {
"dependencies": {
"Blazorise": "1.4.0",
@@ -93,6 +109,20 @@
}
}
},
+ "Blazorise.Snackbar/1.4.0": {
+ "dependencies": {
+ "Blazorise": "1.4.0",
+ "Microsoft.AspNetCore.Components": "7.0.14",
+ "Microsoft.AspNetCore.Components.Web": "7.0.14",
+ "Microsoft.Extensions.Logging.Abstractions": "7.0.1"
+ },
+ "runtime": {
+ "lib/net7.0/Blazorise.Snackbar.dll": {
+ "assemblyVersion": "1.4.0.0",
+ "fileVersion": "1.4.0.0"
+ }
+ }
+ },
"DeepCloner/0.10.4": {
"dependencies": {
"NETStandard.Library": "1.6.1"
@@ -895,6 +925,13 @@
"path": "blazorise.bootstrap/1.4.0",
"hashPath": "blazorise.bootstrap.1.4.0.nupkg.sha512"
},
+ "Blazorise.Components/1.4.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-syN0frsIncMa7/gi4h/QGCl4Iecv0Yn6qpZYH/tv+9Svmvp8Bbj7iUJOaRUz2BsMSFntF80fsOEpV2Sx8MHTJQ==",
+ "path": "blazorise.components/1.4.0",
+ "hashPath": "blazorise.components.1.4.0.nupkg.sha512"
+ },
"Blazorise.DataGrid/1.4.0": {
"type": "package",
"serviceable": true,
@@ -916,6 +953,13 @@
"path": "blazorise.licensing/1.2.0",
"hashPath": "blazorise.licensing.1.2.0.nupkg.sha512"
},
+ "Blazorise.Snackbar/1.4.0": {
+ "type": "package",
+ "serviceable": true,
+ "sha512": "sha512-3b1EsNRjJrfWDDw56XHUAfaPMZzNIlVNHyEOsF2hcJQiM3xsgFN+iclKL6bpvyOOjz9cTpCMqNuUJOqmU/tJ9w==",
+ "path": "blazorise.snackbar/1.4.0",
+ "hashPath": "blazorise.snackbar.1.4.0.nupkg.sha512"
+ },
"DeepCloner/0.10.4": {
"type": "package",
"serviceable": true,
diff --git a/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.dll b/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.dll
index 79cbc23..cf653d1 100644
Binary files a/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.dll and b/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.dll differ
diff --git a/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.exe b/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.exe
index 4c9d97c..20613a0 100644
Binary files a/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.exe and b/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.exe differ
diff --git a/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.pdb b/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.pdb
index 93bc7c0..ab4a9f3 100644
Binary files a/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.pdb and b/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.pdb differ
diff --git a/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.staticwebassets.runtime.json b/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.staticwebassets.runtime.json
index ab3b9c0..ff9cec8 100644
--- a/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.staticwebassets.runtime.json
+++ b/VeraxShield/VeraxShield/bin/Debug/net7.0/VeraxShield.staticwebassets.runtime.json
@@ -1 +1 @@
-{"ContentRoots":["C:\\Users\\jeanm\\OneDrive\\Documents\\BUT\\Blazor_SAE\\VeraxShield\\VeraxShield\\wwwroot\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise\\1.4.0\\staticwebassets\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise.datagrid\\1.4.0\\staticwebassets\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise.bootstrap\\1.4.0\\staticwebassets\\"],"Root":{"Children":{"css":{"Children":{"site.css":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"css/site.css"},"Patterns":null}},"Asset":null,"Patterns":null},"data":{"Children":{"fakeUtilisateurs.json":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"data/fakeUtilisateurs.json"},"Patterns":null}},"Asset":null,"Patterns":null},"_content":{"Children":{"Blazorise":{"Children":{"blazorise.css":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"blazorise.css"},"Patterns":null},"blazorise.min.css":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"blazorise.min.css"},"Patterns":null},"breakpoint.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"breakpoint.js"},"Patterns":null},"button.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"button.js"},"Patterns":null},"closable.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"closable.js"},"Patterns":null},"colorPicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"colorPicker.js"},"Patterns":null},"datePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"datePicker.js"},"Patterns":null},"dragDrop.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"dragDrop.js"},"Patterns":null},"dropdown.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"dropdown.js"},"Patterns":null},"fileEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"fileEdit.js"},"Patterns":null},"filePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"filePicker.js"},"Patterns":null},"floatingUi.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"floatingUi.js"},"Patterns":null},"inputMask.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"inputMask.js"},"Patterns":null},"io.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"io.js"},"Patterns":null},"memoEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"memoEdit.js"},"Patterns":null},"numericPicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"numericPicker.js"},"Patterns":null},"observer.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"observer.js"},"Patterns":null},"table.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"table.js"},"Patterns":null},"textEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"textEdit.js"},"Patterns":null},"theme.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"theme.js"},"Patterns":null},"timePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"timePicker.js"},"Patterns":null},"tooltip.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"tooltip.js"},"Patterns":null},"utilities.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"utilities.js"},"Patterns":null},"validators":{"Children":{"DateTimeMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/DateTimeMaskValidator.js"},"Patterns":null},"NoValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/NoValidator.js"},"Patterns":null},"NumericMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/NumericMaskValidator.js"},"Patterns":null},"RegExMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/RegExMaskValidator.js"},"Patterns":null}},"Asset":null,"Patterns":null},"vendors":{"Children":{"autoNumeric.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/autoNumeric.js"},"Patterns":null},"Behave.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/Behave.js"},"Patterns":null},"flatpickr.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/flatpickr.js"},"Patterns":null},"floating-ui-core.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/floating-ui-core.js"},"Patterns":null},"floating-ui.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/floating-ui.js"},"Patterns":null},"inputmask.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/inputmask.js"},"Patterns":null},"jsencrypt.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/jsencrypt.js"},"Patterns":null},"Pickr.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/Pickr.js"},"Patterns":null},"sha512.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/sha512.js"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":null},"Blazorise.DataGrid":{"Children":{"datagrid.js":{"Children":null,"Asset":{"ContentRootIndex":2,"SubPath":"datagrid.js"},"Patterns":null}},"Asset":null,"Patterns":null},"Blazorise.Bootstrap":{"Children":{"blazorise.bootstrap.css":{"Children":null,"Asset":{"ContentRootIndex":3,"SubPath":"blazorise.bootstrap.css"},"Patterns":null},"blazorise.bootstrap.min.css":{"Children":null,"Asset":{"ContentRootIndex":3,"SubPath":"blazorise.bootstrap.min.css"},"Patterns":null},"modal.js":{"Children":null,"Asset":{"ContentRootIndex":3,"SubPath":"modal.js"},"Patterns":null},"tooltip.js":{"Children":null,"Asset":{"ContentRootIndex":3,"SubPath":"tooltip.js"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":[{"ContentRootIndex":0,"Pattern":"**","Depth":0}]}}
\ No newline at end of file
+{"ContentRoots":["C:\\Users\\jeanm\\OneDrive\\Documents\\BUT\\Blazor_SAE\\VeraxShield\\VeraxShield\\wwwroot\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise\\1.4.0\\staticwebassets\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise.snackbar\\1.4.0\\staticwebassets\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise.datagrid\\1.4.0\\staticwebassets\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise.bootstrap\\1.4.0\\staticwebassets\\"],"Root":{"Children":{"css":{"Children":{"site.css":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"css/site.css"},"Patterns":null}},"Asset":null,"Patterns":null},"data":{"Children":{"fakeUtilisateurs.json":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"data/fakeUtilisateurs.json"},"Patterns":null}},"Asset":null,"Patterns":null},"_content":{"Children":{"Blazorise":{"Children":{"blazorise.css":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"blazorise.css"},"Patterns":null},"blazorise.min.css":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"blazorise.min.css"},"Patterns":null},"breakpoint.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"breakpoint.js"},"Patterns":null},"button.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"button.js"},"Patterns":null},"closable.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"closable.js"},"Patterns":null},"colorPicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"colorPicker.js"},"Patterns":null},"datePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"datePicker.js"},"Patterns":null},"dragDrop.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"dragDrop.js"},"Patterns":null},"dropdown.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"dropdown.js"},"Patterns":null},"fileEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"fileEdit.js"},"Patterns":null},"filePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"filePicker.js"},"Patterns":null},"floatingUi.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"floatingUi.js"},"Patterns":null},"inputMask.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"inputMask.js"},"Patterns":null},"io.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"io.js"},"Patterns":null},"memoEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"memoEdit.js"},"Patterns":null},"numericPicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"numericPicker.js"},"Patterns":null},"observer.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"observer.js"},"Patterns":null},"table.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"table.js"},"Patterns":null},"textEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"textEdit.js"},"Patterns":null},"theme.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"theme.js"},"Patterns":null},"timePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"timePicker.js"},"Patterns":null},"tooltip.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"tooltip.js"},"Patterns":null},"utilities.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"utilities.js"},"Patterns":null},"validators":{"Children":{"DateTimeMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/DateTimeMaskValidator.js"},"Patterns":null},"NoValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/NoValidator.js"},"Patterns":null},"NumericMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/NumericMaskValidator.js"},"Patterns":null},"RegExMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/RegExMaskValidator.js"},"Patterns":null}},"Asset":null,"Patterns":null},"vendors":{"Children":{"autoNumeric.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/autoNumeric.js"},"Patterns":null},"Behave.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/Behave.js"},"Patterns":null},"flatpickr.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/flatpickr.js"},"Patterns":null},"floating-ui-core.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/floating-ui-core.js"},"Patterns":null},"floating-ui.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/floating-ui.js"},"Patterns":null},"inputmask.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/inputmask.js"},"Patterns":null},"jsencrypt.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/jsencrypt.js"},"Patterns":null},"Pickr.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/Pickr.js"},"Patterns":null},"sha512.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/sha512.js"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":null},"Blazorise.Snackbar":{"Children":{"blazorise.snackbar.css":{"Children":null,"Asset":{"ContentRootIndex":2,"SubPath":"blazorise.snackbar.css"},"Patterns":null},"blazorise.snackbar.min.css":{"Children":null,"Asset":{"ContentRootIndex":2,"SubPath":"blazorise.snackbar.min.css"},"Patterns":null}},"Asset":null,"Patterns":null},"Blazorise.DataGrid":{"Children":{"datagrid.js":{"Children":null,"Asset":{"ContentRootIndex":3,"SubPath":"datagrid.js"},"Patterns":null}},"Asset":null,"Patterns":null},"Blazorise.Bootstrap":{"Children":{"blazorise.bootstrap.css":{"Children":null,"Asset":{"ContentRootIndex":4,"SubPath":"blazorise.bootstrap.css"},"Patterns":null},"blazorise.bootstrap.min.css":{"Children":null,"Asset":{"ContentRootIndex":4,"SubPath":"blazorise.bootstrap.min.css"},"Patterns":null},"modal.js":{"Children":null,"Asset":{"ContentRootIndex":4,"SubPath":"modal.js"},"Patterns":null},"tooltip.js":{"Children":null,"Asset":{"ContentRootIndex":4,"SubPath":"tooltip.js"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":[{"ContentRootIndex":0,"Pattern":"**","Depth":0}]}}
\ No newline at end of file
diff --git a/VeraxShield/VeraxShield/composants/formulaires/FormulaireAjout.razor.cs b/VeraxShield/VeraxShield/composants/formulaires/FormulaireAjout.razor.cs
index bf1c4ed..31fb388 100644
--- a/VeraxShield/VeraxShield/composants/formulaires/FormulaireAjout.razor.cs
+++ b/VeraxShield/VeraxShield/composants/formulaires/FormulaireAjout.razor.cs
@@ -25,29 +25,17 @@ namespace VeraxShield.composants.formulaires
{
this.Modele = new FormulaireAjoutModele();
this.Modele.IsBan = false;
- await base.OnInitializedAsync();
- }
-
- protected override Task OnAfterRenderAsync(bool firstRender)
- {
- //// [Temporaire] : Pour mettre au propre le localstorage à chaque essai
- //if (firstRender)
- //{
- // this.utilisateursDataService.resetDataUtilisateurs();
- //}
- return base.OnAfterRenderAsync(firstRender);
+ await base.OnInitializedAsync();
}
public async void ajouterUtilisateur()
{
- List data = await this.utilisateursDataService.getAllUtilisateurs();
-
Utilisateur nouvelUtilisateur = UtilisateursFactory.toUtilisateur(this.Modele);
- data.Add(nouvelUtilisateur);
- await this.utilisateursDataService.SaveAllUtilisateurs(data);
+ await this.utilisateursDataService.AjouterUtilisateur(nouvelUtilisateur);
+
+ //Console.WriteLine("Utilisateur bien ajouté !");
- Console.WriteLine("Utilisateur bien ajouté !");
this.NavigationManager.NavigateTo("/utilisateurs/liste");
}
}
diff --git a/VeraxShield/VeraxShield/composants/modals/ConfirmationSuppressionUtilisateur.razor b/VeraxShield/VeraxShield/composants/modals/ConfirmationSuppressionUtilisateur.razor
new file mode 100644
index 0000000..7134c6e
--- /dev/null
+++ b/VeraxShield/VeraxShield/composants/modals/ConfirmationSuppressionUtilisateur.razor
@@ -0,0 +1,22 @@
+
+
+
+
+
+ Etes-vous sûr de vouloir supprimer ?
+
+
+
+ Souhaitez-vous supprimer l'utilisateur ?
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/VeraxShield/VeraxShield/composants/modals/ConfirmationSuppressionUtilisateur.razor.cs b/VeraxShield/VeraxShield/composants/modals/ConfirmationSuppressionUtilisateur.razor.cs
new file mode 100644
index 0000000..79443e5
--- /dev/null
+++ b/VeraxShield/VeraxShield/composants/modals/ConfirmationSuppressionUtilisateur.razor.cs
@@ -0,0 +1,51 @@
+using Blazorise;
+using Microsoft.AspNetCore.Components;
+using VeraxShield.modele.utilisateurs;
+using VeraxShield.services.UtilisateursDataService;
+
+namespace VeraxShield.composants.modals
+{
+ public partial class ConfirmationSuppressionUtilisateur
+ {
+ private Modal modalRef;
+
+ [Inject]
+ private IUtilisateursDataService utilisateursDataService { get; set; }
+
+ [Inject]
+ private NavigationManager NavigationManager { get; set; }
+
+ [Parameter]
+ public Utilisateur utilisateur { get; set; }
+
+ [Parameter]
+ public List listeVueUtilisateurs { get; set; }
+
+ public async Task fermetureModal(ModalClosingEventArgs e)
+ {
+ this.NavigationManager.NavigateTo("/utilisateurs/liste");
+ }
+
+ protected async Task suppressionConfirmee()
+ {
+ await this.utilisateursDataService.SupprimerUtilisateur(this.utilisateur);
+ this.listeVueUtilisateurs = await this.utilisateursDataService.getAllUtilisateurs();
+ await this.HideModal();
+ }
+
+ protected async Task suppressionAnnulee()
+ {
+ await this.HideModal();
+ }
+
+ private Task ShowModal()
+ {
+ return modalRef.Show();
+ }
+
+ private Task HideModal()
+ {
+ return modalRef.Hide();
+ }
+ }
+}
diff --git a/VeraxShield/VeraxShield/composants/modals/_Imports.razor b/VeraxShield/VeraxShield/composants/modals/_Imports.razor
new file mode 100644
index 0000000..d894404
--- /dev/null
+++ b/VeraxShield/VeraxShield/composants/modals/_Imports.razor
@@ -0,0 +1 @@
+@using Blazorise.Components
\ No newline at end of file
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.AssemblyInfo.cs b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.AssemblyInfo.cs
index 0818ff8..bbde486 100644
--- a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.AssemblyInfo.cs
+++ b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.AssemblyInfo.cs
@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("VeraxShield")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+75d514782ac1d19976dee0fe4d89c5f1e3632903")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+54949aa042e1cc7b2a01be1b4be817b151d266fa")]
[assembly: System.Reflection.AssemblyProductAttribute("VeraxShield")]
[assembly: System.Reflection.AssemblyTitleAttribute("VeraxShield")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.AssemblyInfoInputs.cache b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.AssemblyInfoInputs.cache
index 7f63521..a57f942 100644
--- a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.AssemblyInfoInputs.cache
+++ b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.AssemblyInfoInputs.cache
@@ -1 +1 @@
-47e3321343110f8a1fb2f2722d2a00589c17d54d97eb7b4f87cfbbf1c30278eb
+b791b6e916444fa992d90d9ee1a5196cd864ce11351ed475587f6270e51cd13d
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.GeneratedMSBuildEditorConfig.editorconfig b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.GeneratedMSBuildEditorConfig.editorconfig
index ea184e1..fde2078 100644
--- a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.GeneratedMSBuildEditorConfig.editorconfig
+++ b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.GeneratedMSBuildEditorConfig.editorconfig
@@ -30,6 +30,14 @@ build_metadata.AdditionalFiles.CssScope =
build_metadata.AdditionalFiles.TargetPath = Y29tcG9zYW50c1xmb3JtdWxhaXJlc1xfSW1wb3J0cy5yYXpvcg==
build_metadata.AdditionalFiles.CssScope =
+[C:/Users/jeanm/OneDrive/Documents/BUT/Blazor_SAE/VeraxShield/VeraxShield/composants/modals/ConfirmationSuppressionUtilisateur.razor]
+build_metadata.AdditionalFiles.TargetPath = Y29tcG9zYW50c1xtb2RhbHNcQ29uZmlybWF0aW9uU3VwcHJlc3Npb25VdGlsaXNhdGV1ci5yYXpvcg==
+build_metadata.AdditionalFiles.CssScope =
+
+[C:/Users/jeanm/OneDrive/Documents/BUT/Blazor_SAE/VeraxShield/VeraxShield/composants/modals/_Imports.razor]
+build_metadata.AdditionalFiles.TargetPath = Y29tcG9zYW50c1xtb2RhbHNcX0ltcG9ydHMucmF6b3I=
+build_metadata.AdditionalFiles.CssScope =
+
[C:/Users/jeanm/OneDrive/Documents/BUT/Blazor_SAE/VeraxShield/VeraxShield/MainLayout.razor]
build_metadata.AdditionalFiles.TargetPath = TWFpbkxheW91dC5yYXpvcg==
build_metadata.AdditionalFiles.CssScope =
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.assets.cache b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.assets.cache
index f84cd13..0828d24 100644
Binary files a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.assets.cache and b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.assets.cache differ
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.AssemblyReference.cache b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.AssemblyReference.cache
index fc330be..9a0ae32 100644
Binary files a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.AssemblyReference.cache and b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.AssemblyReference.cache differ
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.CoreCompileInputs.cache b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.CoreCompileInputs.cache
index 4f21f30..675693e 100644
--- a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.CoreCompileInputs.cache
+++ b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-4e9643b80eaea77e7a1b53666f88f65f4e0b8e00911dc6f3dbc540e2864b16f6
+c8127aa121574b52dba77ac8befc4002e3054ff43d495a19953b0a6402b9a71a
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.FileListAbsolute.txt b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.FileListAbsolute.txt
index c3f2857..2a6aacf 100644
--- a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.FileListAbsolute.txt
+++ b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.csproj.FileListAbsolute.txt
@@ -43,3 +43,5 @@ C:\Users\jeanm\OneDrive\Documents\BUT\Blazor_SAE\VeraxShield\VeraxShield\bin\Deb
C:\Users\jeanm\OneDrive\Documents\BUT\Blazor_SAE\VeraxShield\VeraxShield\bin\Debug\net7.0\Microsoft.Extensions.Logging.Abstractions.dll
C:\Users\jeanm\OneDrive\Documents\BUT\Blazor_SAE\VeraxShield\VeraxShield\bin\Debug\net7.0\Microsoft.Extensions.Options.dll
C:\Users\jeanm\OneDrive\Documents\BUT\Blazor_SAE\VeraxShield\VeraxShield\bin\Debug\net7.0\Microsoft.JSInterop.dll
+C:\Users\jeanm\OneDrive\Documents\BUT\Blazor_SAE\VeraxShield\VeraxShield\bin\Debug\net7.0\Blazorise.Components.dll
+C:\Users\jeanm\OneDrive\Documents\BUT\Blazor_SAE\VeraxShield\VeraxShield\bin\Debug\net7.0\Blazorise.Snackbar.dll
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.dll b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.dll
index 79cbc23..cf653d1 100644
Binary files a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.dll and b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.dll differ
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.pdb b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.pdb
index 93bc7c0..ab4a9f3 100644
Binary files a/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.pdb and b/VeraxShield/VeraxShield/obj/Debug/net7.0/VeraxShield.pdb differ
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/apphost.exe b/VeraxShield/VeraxShield/obj/Debug/net7.0/apphost.exe
index 4c9d97c..20613a0 100644
Binary files a/VeraxShield/VeraxShield/obj/Debug/net7.0/apphost.exe and b/VeraxShield/VeraxShield/obj/Debug/net7.0/apphost.exe differ
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/project.razor.vs.bin b/VeraxShield/VeraxShield/obj/Debug/net7.0/project.razor.vs.bin
index 4cee732..e319ef9 100644
Binary files a/VeraxShield/VeraxShield/obj/Debug/net7.0/project.razor.vs.bin and b/VeraxShield/VeraxShield/obj/Debug/net7.0/project.razor.vs.bin differ
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/ref/VeraxShield.dll b/VeraxShield/VeraxShield/obj/Debug/net7.0/ref/VeraxShield.dll
index d1d9ddd..15d1445 100644
Binary files a/VeraxShield/VeraxShield/obj/Debug/net7.0/ref/VeraxShield.dll and b/VeraxShield/VeraxShield/obj/Debug/net7.0/ref/VeraxShield.dll differ
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/refint/VeraxShield.dll b/VeraxShield/VeraxShield/obj/Debug/net7.0/refint/VeraxShield.dll
index d1d9ddd..15d1445 100644
Binary files a/VeraxShield/VeraxShield/obj/Debug/net7.0/refint/VeraxShield.dll and b/VeraxShield/VeraxShield/obj/Debug/net7.0/refint/VeraxShield.dll differ
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/staticwebassets.build.json b/VeraxShield/VeraxShield/obj/Debug/net7.0/staticwebassets.build.json
index c4d759a..ae4e5fb 100644
--- a/VeraxShield/VeraxShield/obj/Debug/net7.0/staticwebassets.build.json
+++ b/VeraxShield/VeraxShield/obj/Debug/net7.0/staticwebassets.build.json
@@ -1,6 +1,6 @@
{
"Version": 1,
- "Hash": "1LsCA/TioJp4017E8gSNehp78R/IOC/AM5mi11j2pY4=",
+ "Hash": "1Y9UOHIbbBoRdzjCG27pKoNvUjVEgsDTJMI1/wI3o2s=",
"Source": "VeraxShield",
"BasePath": "_content/VeraxShield",
"Mode": "Default",
@@ -111,6 +111,44 @@
"CopyToPublishDirectory": "PreserveNewest",
"OriginalItemSpec": "C:\\Users\\jeanm\\.nuget\\packages\\blazorise.datagrid\\1.4.0\\staticwebassets\\datagrid.js"
},
+ {
+ "Identity": "C:\\Users\\jeanm\\.nuget\\packages\\blazorise.snackbar\\1.4.0\\staticwebassets\\blazorise.snackbar.css",
+ "SourceId": "Blazorise.Snackbar",
+ "SourceType": "Package",
+ "ContentRoot": "C:\\Users\\jeanm\\.nuget\\packages\\blazorise.snackbar\\1.4.0\\staticwebassets\\",
+ "BasePath": "_content/Blazorise.Snackbar",
+ "RelativePath": "blazorise.snackbar.css",
+ "AssetKind": "All",
+ "AssetMode": "All",
+ "AssetRole": "Primary",
+ "AssetMergeBehavior": "",
+ "AssetMergeSource": "",
+ "RelatedAsset": "",
+ "AssetTraitName": "",
+ "AssetTraitValue": "",
+ "CopyToOutputDirectory": "Never",
+ "CopyToPublishDirectory": "PreserveNewest",
+ "OriginalItemSpec": "C:\\Users\\jeanm\\.nuget\\packages\\blazorise.snackbar\\1.4.0\\staticwebassets\\blazorise.snackbar.css"
+ },
+ {
+ "Identity": "C:\\Users\\jeanm\\.nuget\\packages\\blazorise.snackbar\\1.4.0\\staticwebassets\\blazorise.snackbar.min.css",
+ "SourceId": "Blazorise.Snackbar",
+ "SourceType": "Package",
+ "ContentRoot": "C:\\Users\\jeanm\\.nuget\\packages\\blazorise.snackbar\\1.4.0\\staticwebassets\\",
+ "BasePath": "_content/Blazorise.Snackbar",
+ "RelativePath": "blazorise.snackbar.min.css",
+ "AssetKind": "All",
+ "AssetMode": "All",
+ "AssetRole": "Primary",
+ "AssetMergeBehavior": "",
+ "AssetMergeSource": "",
+ "RelatedAsset": "",
+ "AssetTraitName": "",
+ "AssetTraitValue": "",
+ "CopyToOutputDirectory": "Never",
+ "CopyToPublishDirectory": "PreserveNewest",
+ "OriginalItemSpec": "C:\\Users\\jeanm\\.nuget\\packages\\blazorise.snackbar\\1.4.0\\staticwebassets\\blazorise.snackbar.min.css"
+ },
{
"Identity": "C:\\Users\\jeanm\\.nuget\\packages\\blazorise\\1.4.0\\staticwebassets\\blazorise.css",
"SourceId": "Blazorise",
diff --git a/VeraxShield/VeraxShield/obj/Debug/net7.0/staticwebassets.development.json b/VeraxShield/VeraxShield/obj/Debug/net7.0/staticwebassets.development.json
index ab3b9c0..ff9cec8 100644
--- a/VeraxShield/VeraxShield/obj/Debug/net7.0/staticwebassets.development.json
+++ b/VeraxShield/VeraxShield/obj/Debug/net7.0/staticwebassets.development.json
@@ -1 +1 @@
-{"ContentRoots":["C:\\Users\\jeanm\\OneDrive\\Documents\\BUT\\Blazor_SAE\\VeraxShield\\VeraxShield\\wwwroot\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise\\1.4.0\\staticwebassets\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise.datagrid\\1.4.0\\staticwebassets\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise.bootstrap\\1.4.0\\staticwebassets\\"],"Root":{"Children":{"css":{"Children":{"site.css":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"css/site.css"},"Patterns":null}},"Asset":null,"Patterns":null},"data":{"Children":{"fakeUtilisateurs.json":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"data/fakeUtilisateurs.json"},"Patterns":null}},"Asset":null,"Patterns":null},"_content":{"Children":{"Blazorise":{"Children":{"blazorise.css":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"blazorise.css"},"Patterns":null},"blazorise.min.css":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"blazorise.min.css"},"Patterns":null},"breakpoint.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"breakpoint.js"},"Patterns":null},"button.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"button.js"},"Patterns":null},"closable.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"closable.js"},"Patterns":null},"colorPicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"colorPicker.js"},"Patterns":null},"datePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"datePicker.js"},"Patterns":null},"dragDrop.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"dragDrop.js"},"Patterns":null},"dropdown.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"dropdown.js"},"Patterns":null},"fileEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"fileEdit.js"},"Patterns":null},"filePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"filePicker.js"},"Patterns":null},"floatingUi.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"floatingUi.js"},"Patterns":null},"inputMask.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"inputMask.js"},"Patterns":null},"io.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"io.js"},"Patterns":null},"memoEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"memoEdit.js"},"Patterns":null},"numericPicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"numericPicker.js"},"Patterns":null},"observer.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"observer.js"},"Patterns":null},"table.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"table.js"},"Patterns":null},"textEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"textEdit.js"},"Patterns":null},"theme.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"theme.js"},"Patterns":null},"timePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"timePicker.js"},"Patterns":null},"tooltip.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"tooltip.js"},"Patterns":null},"utilities.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"utilities.js"},"Patterns":null},"validators":{"Children":{"DateTimeMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/DateTimeMaskValidator.js"},"Patterns":null},"NoValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/NoValidator.js"},"Patterns":null},"NumericMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/NumericMaskValidator.js"},"Patterns":null},"RegExMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/RegExMaskValidator.js"},"Patterns":null}},"Asset":null,"Patterns":null},"vendors":{"Children":{"autoNumeric.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/autoNumeric.js"},"Patterns":null},"Behave.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/Behave.js"},"Patterns":null},"flatpickr.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/flatpickr.js"},"Patterns":null},"floating-ui-core.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/floating-ui-core.js"},"Patterns":null},"floating-ui.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/floating-ui.js"},"Patterns":null},"inputmask.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/inputmask.js"},"Patterns":null},"jsencrypt.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/jsencrypt.js"},"Patterns":null},"Pickr.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/Pickr.js"},"Patterns":null},"sha512.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/sha512.js"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":null},"Blazorise.DataGrid":{"Children":{"datagrid.js":{"Children":null,"Asset":{"ContentRootIndex":2,"SubPath":"datagrid.js"},"Patterns":null}},"Asset":null,"Patterns":null},"Blazorise.Bootstrap":{"Children":{"blazorise.bootstrap.css":{"Children":null,"Asset":{"ContentRootIndex":3,"SubPath":"blazorise.bootstrap.css"},"Patterns":null},"blazorise.bootstrap.min.css":{"Children":null,"Asset":{"ContentRootIndex":3,"SubPath":"blazorise.bootstrap.min.css"},"Patterns":null},"modal.js":{"Children":null,"Asset":{"ContentRootIndex":3,"SubPath":"modal.js"},"Patterns":null},"tooltip.js":{"Children":null,"Asset":{"ContentRootIndex":3,"SubPath":"tooltip.js"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":[{"ContentRootIndex":0,"Pattern":"**","Depth":0}]}}
\ No newline at end of file
+{"ContentRoots":["C:\\Users\\jeanm\\OneDrive\\Documents\\BUT\\Blazor_SAE\\VeraxShield\\VeraxShield\\wwwroot\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise\\1.4.0\\staticwebassets\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise.snackbar\\1.4.0\\staticwebassets\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise.datagrid\\1.4.0\\staticwebassets\\","C:\\Users\\jeanm\\.nuget\\packages\\blazorise.bootstrap\\1.4.0\\staticwebassets\\"],"Root":{"Children":{"css":{"Children":{"site.css":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"css/site.css"},"Patterns":null}},"Asset":null,"Patterns":null},"data":{"Children":{"fakeUtilisateurs.json":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"data/fakeUtilisateurs.json"},"Patterns":null}},"Asset":null,"Patterns":null},"_content":{"Children":{"Blazorise":{"Children":{"blazorise.css":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"blazorise.css"},"Patterns":null},"blazorise.min.css":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"blazorise.min.css"},"Patterns":null},"breakpoint.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"breakpoint.js"},"Patterns":null},"button.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"button.js"},"Patterns":null},"closable.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"closable.js"},"Patterns":null},"colorPicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"colorPicker.js"},"Patterns":null},"datePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"datePicker.js"},"Patterns":null},"dragDrop.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"dragDrop.js"},"Patterns":null},"dropdown.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"dropdown.js"},"Patterns":null},"fileEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"fileEdit.js"},"Patterns":null},"filePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"filePicker.js"},"Patterns":null},"floatingUi.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"floatingUi.js"},"Patterns":null},"inputMask.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"inputMask.js"},"Patterns":null},"io.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"io.js"},"Patterns":null},"memoEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"memoEdit.js"},"Patterns":null},"numericPicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"numericPicker.js"},"Patterns":null},"observer.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"observer.js"},"Patterns":null},"table.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"table.js"},"Patterns":null},"textEdit.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"textEdit.js"},"Patterns":null},"theme.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"theme.js"},"Patterns":null},"timePicker.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"timePicker.js"},"Patterns":null},"tooltip.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"tooltip.js"},"Patterns":null},"utilities.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"utilities.js"},"Patterns":null},"validators":{"Children":{"DateTimeMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/DateTimeMaskValidator.js"},"Patterns":null},"NoValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/NoValidator.js"},"Patterns":null},"NumericMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/NumericMaskValidator.js"},"Patterns":null},"RegExMaskValidator.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"validators/RegExMaskValidator.js"},"Patterns":null}},"Asset":null,"Patterns":null},"vendors":{"Children":{"autoNumeric.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/autoNumeric.js"},"Patterns":null},"Behave.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/Behave.js"},"Patterns":null},"flatpickr.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/flatpickr.js"},"Patterns":null},"floating-ui-core.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/floating-ui-core.js"},"Patterns":null},"floating-ui.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/floating-ui.js"},"Patterns":null},"inputmask.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/inputmask.js"},"Patterns":null},"jsencrypt.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/jsencrypt.js"},"Patterns":null},"Pickr.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/Pickr.js"},"Patterns":null},"sha512.js":{"Children":null,"Asset":{"ContentRootIndex":1,"SubPath":"vendors/sha512.js"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":null},"Blazorise.Snackbar":{"Children":{"blazorise.snackbar.css":{"Children":null,"Asset":{"ContentRootIndex":2,"SubPath":"blazorise.snackbar.css"},"Patterns":null},"blazorise.snackbar.min.css":{"Children":null,"Asset":{"ContentRootIndex":2,"SubPath":"blazorise.snackbar.min.css"},"Patterns":null}},"Asset":null,"Patterns":null},"Blazorise.DataGrid":{"Children":{"datagrid.js":{"Children":null,"Asset":{"ContentRootIndex":3,"SubPath":"datagrid.js"},"Patterns":null}},"Asset":null,"Patterns":null},"Blazorise.Bootstrap":{"Children":{"blazorise.bootstrap.css":{"Children":null,"Asset":{"ContentRootIndex":4,"SubPath":"blazorise.bootstrap.css"},"Patterns":null},"blazorise.bootstrap.min.css":{"Children":null,"Asset":{"ContentRootIndex":4,"SubPath":"blazorise.bootstrap.min.css"},"Patterns":null},"modal.js":{"Children":null,"Asset":{"ContentRootIndex":4,"SubPath":"modal.js"},"Patterns":null},"tooltip.js":{"Children":null,"Asset":{"ContentRootIndex":4,"SubPath":"tooltip.js"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":[{"ContentRootIndex":0,"Pattern":"**","Depth":0}]}}
\ No newline at end of file
diff --git a/VeraxShield/VeraxShield/obj/VeraxShield.csproj.nuget.dgspec.json b/VeraxShield/VeraxShield/obj/VeraxShield.csproj.nuget.dgspec.json
index b4cda58..1285e05 100644
--- a/VeraxShield/VeraxShield/obj/VeraxShield.csproj.nuget.dgspec.json
+++ b/VeraxShield/VeraxShield/obj/VeraxShield.csproj.nuget.dgspec.json
@@ -53,6 +53,10 @@
"target": "Package",
"version": "[1.4.0, )"
},
+ "Blazorise.Components": {
+ "target": "Package",
+ "version": "[1.4.0, )"
+ },
"Blazorise.DataGrid": {
"target": "Package",
"version": "[1.4.0, )"
diff --git a/VeraxShield/VeraxShield/obj/VeraxShield.csproj.nuget.g.props b/VeraxShield/VeraxShield/obj/VeraxShield.csproj.nuget.g.props
index 0b37e74..fc5ff13 100644
--- a/VeraxShield/VeraxShield/obj/VeraxShield.csproj.nuget.g.props
+++ b/VeraxShield/VeraxShield/obj/VeraxShield.csproj.nuget.g.props
@@ -15,6 +15,7 @@
+
diff --git a/VeraxShield/VeraxShield/obj/project.assets.json b/VeraxShield/VeraxShield/obj/project.assets.json
index 8360d46..06dce63 100644
--- a/VeraxShield/VeraxShield/obj/project.assets.json
+++ b/VeraxShield/VeraxShield/obj/project.assets.json
@@ -61,6 +61,26 @@
"buildMultiTargeting/Blazorise.Bootstrap.props": {}
}
},
+ "Blazorise.Components/1.4.0": {
+ "type": "package",
+ "dependencies": {
+ "Blazorise": "1.4.0",
+ "Blazorise.Snackbar": "1.4.0",
+ "Microsoft.AspNetCore.Components": "7.0.14",
+ "Microsoft.AspNetCore.Components.Web": "7.0.14",
+ "Microsoft.Extensions.Logging.Abstractions": "7.0.1"
+ },
+ "compile": {
+ "lib/net7.0/Blazorise.Components.dll": {
+ "related": ".xml"
+ }
+ },
+ "runtime": {
+ "lib/net7.0/Blazorise.Components.dll": {
+ "related": ".xml"
+ }
+ }
+ },
"Blazorise.DataGrid/1.4.0": {
"type": "package",
"dependencies": {
@@ -110,6 +130,31 @@
"lib/net7.0/Blazorise.Licensing.dll": {}
}
},
+ "Blazorise.Snackbar/1.4.0": {
+ "type": "package",
+ "dependencies": {
+ "Blazorise": "1.4.0",
+ "Microsoft.AspNetCore.Components": "7.0.14",
+ "Microsoft.AspNetCore.Components.Web": "7.0.14",
+ "Microsoft.Extensions.Logging.Abstractions": "7.0.1"
+ },
+ "compile": {
+ "lib/net7.0/Blazorise.Snackbar.dll": {
+ "related": ".xml"
+ }
+ },
+ "runtime": {
+ "lib/net7.0/Blazorise.Snackbar.dll": {
+ "related": ".xml"
+ }
+ },
+ "build": {
+ "buildTransitive/Blazorise.Snackbar.props": {}
+ },
+ "buildMultiTargeting": {
+ "buildMultiTargeting/Blazorise.Snackbar.props": {}
+ }
+ },
"DeepCloner/0.10.4": {
"type": "package",
"dependencies": {
@@ -1714,6 +1759,25 @@
"staticwebassets/tooltip.js"
]
},
+ "Blazorise.Components/1.4.0": {
+ "sha512": "syN0frsIncMa7/gi4h/QGCl4Iecv0Yn6qpZYH/tv+9Svmvp8Bbj7iUJOaRUz2BsMSFntF80fsOEpV2Sx8MHTJQ==",
+ "type": "package",
+ "path": "blazorise.components/1.4.0",
+ "files": [
+ ".nupkg.metadata",
+ ".signature.p7s",
+ "Blazorise.png",
+ "LICENSE.md",
+ "blazorise.components.1.4.0.nupkg.sha512",
+ "blazorise.components.nuspec",
+ "lib/net6.0/Blazorise.Components.dll",
+ "lib/net6.0/Blazorise.Components.xml",
+ "lib/net7.0/Blazorise.Components.dll",
+ "lib/net7.0/Blazorise.Components.xml",
+ "lib/net8.0/Blazorise.Components.dll",
+ "lib/net8.0/Blazorise.Components.xml"
+ ]
+ },
"Blazorise.DataGrid/1.4.0": {
"sha512": "qyK9Y0MBCeqW9EsOZ2CT5MBKtAz5g1aDlMO35hNIkmrTX20lvE1kXUj3pRNpraGKKbLw8Q1TGja+BS58O3FBfQ==",
"type": "package",
@@ -1770,6 +1834,31 @@
"lib/net8.0/Blazorise.Licensing.dll"
]
},
+ "Blazorise.Snackbar/1.4.0": {
+ "sha512": "3b1EsNRjJrfWDDw56XHUAfaPMZzNIlVNHyEOsF2hcJQiM3xsgFN+iclKL6bpvyOOjz9cTpCMqNuUJOqmU/tJ9w==",
+ "type": "package",
+ "path": "blazorise.snackbar/1.4.0",
+ "files": [
+ ".nupkg.metadata",
+ ".signature.p7s",
+ "Blazorise.png",
+ "LICENSE.md",
+ "blazorise.snackbar.1.4.0.nupkg.sha512",
+ "blazorise.snackbar.nuspec",
+ "build/Blazorise.Snackbar.props",
+ "build/Microsoft.AspNetCore.StaticWebAssets.props",
+ "buildMultiTargeting/Blazorise.Snackbar.props",
+ "buildTransitive/Blazorise.Snackbar.props",
+ "lib/net6.0/Blazorise.Snackbar.dll",
+ "lib/net6.0/Blazorise.Snackbar.xml",
+ "lib/net7.0/Blazorise.Snackbar.dll",
+ "lib/net7.0/Blazorise.Snackbar.xml",
+ "lib/net8.0/Blazorise.Snackbar.dll",
+ "lib/net8.0/Blazorise.Snackbar.xml",
+ "staticwebassets/blazorise.snackbar.css",
+ "staticwebassets/blazorise.snackbar.min.css"
+ ]
+ },
"DeepCloner/0.10.4": {
"sha512": "z8ASd9bjXkVjcnIrwUKrxb/bPi/gvG5NX3nv7MHK/5QrlYwbK7N5ZTDNaYXQ5qunaUCMGN0UHdgkNARIEBTEyA==",
"type": "package",
@@ -5385,6 +5474,7 @@
"net7.0": [
"Blazored.LocalStorage >= 4.4.0",
"Blazorise.Bootstrap >= 1.4.0",
+ "Blazorise.Components >= 1.4.0",
"Blazorise.DataGrid >= 1.4.0",
"Blazorise.Icons.FontAwesome >= 1.4.0"
]
@@ -5442,6 +5532,10 @@
"target": "Package",
"version": "[1.4.0, )"
},
+ "Blazorise.Components": {
+ "target": "Package",
+ "version": "[1.4.0, )"
+ },
"Blazorise.DataGrid": {
"target": "Package",
"version": "[1.4.0, )"
diff --git a/VeraxShield/VeraxShield/obj/project.nuget.cache b/VeraxShield/VeraxShield/obj/project.nuget.cache
index 8b2c830..8423aab 100644
--- a/VeraxShield/VeraxShield/obj/project.nuget.cache
+++ b/VeraxShield/VeraxShield/obj/project.nuget.cache
@@ -1,15 +1,17 @@
{
"version": 2,
- "dgSpecHash": "PqdTvNAzMhUfaGg7/kZkePY5VMDmY7DcpEqK21prvIymDoQGxTK1VqEmKoB6+50zTfkSXvVKFUieHw8bo5Q9Ww==",
+ "dgSpecHash": "dqbtlAV1AYUixQ9WbvKpl8rr8O1+wmPKHM7E7C58WdfGhPPGD+zXkYDYdXdD08I6v0eE4hRHsQhhnJHR/s9UyQ==",
"success": true,
"projectFilePath": "C:\\Users\\jeanm\\OneDrive\\Documents\\BUT\\Blazor_SAE\\VeraxShield\\VeraxShield\\VeraxShield.csproj",
"expectedPackageFiles": [
"C:\\Users\\jeanm\\.nuget\\packages\\blazored.localstorage\\4.4.0\\blazored.localstorage.4.4.0.nupkg.sha512",
"C:\\Users\\jeanm\\.nuget\\packages\\blazorise\\1.4.0\\blazorise.1.4.0.nupkg.sha512",
"C:\\Users\\jeanm\\.nuget\\packages\\blazorise.bootstrap\\1.4.0\\blazorise.bootstrap.1.4.0.nupkg.sha512",
+ "C:\\Users\\jeanm\\.nuget\\packages\\blazorise.components\\1.4.0\\blazorise.components.1.4.0.nupkg.sha512",
"C:\\Users\\jeanm\\.nuget\\packages\\blazorise.datagrid\\1.4.0\\blazorise.datagrid.1.4.0.nupkg.sha512",
"C:\\Users\\jeanm\\.nuget\\packages\\blazorise.icons.fontawesome\\1.4.0\\blazorise.icons.fontawesome.1.4.0.nupkg.sha512",
"C:\\Users\\jeanm\\.nuget\\packages\\blazorise.licensing\\1.2.0\\blazorise.licensing.1.2.0.nupkg.sha512",
+ "C:\\Users\\jeanm\\.nuget\\packages\\blazorise.snackbar\\1.4.0\\blazorise.snackbar.1.4.0.nupkg.sha512",
"C:\\Users\\jeanm\\.nuget\\packages\\deepcloner\\0.10.4\\deepcloner.0.10.4.nupkg.sha512",
"C:\\Users\\jeanm\\.nuget\\packages\\microsoft.aspnetcore.authorization\\7.0.14\\microsoft.aspnetcore.authorization.7.0.14.nupkg.sha512",
"C:\\Users\\jeanm\\.nuget\\packages\\microsoft.aspnetcore.components\\7.0.14\\microsoft.aspnetcore.components.7.0.14.nupkg.sha512",
diff --git a/VeraxShield/VeraxShield/services/UtilisateursDataService/IUtilisateursDataService.cs b/VeraxShield/VeraxShield/services/UtilisateursDataService/IUtilisateursDataService.cs
index b846f6d..7a11bf3 100644
--- a/VeraxShield/VeraxShield/services/UtilisateursDataService/IUtilisateursDataService.cs
+++ b/VeraxShield/VeraxShield/services/UtilisateursDataService/IUtilisateursDataService.cs
@@ -5,9 +5,12 @@ namespace VeraxShield.services.UtilisateursDataService
public interface IUtilisateursDataService
{
public Task> getAllUtilisateurs();
+
public Task SaveAllUtilisateurs(List list);
public Task resetDataUtilisateurs();
+ public Task AjouterUtilisateur(Utilisateur u);
+ public Task SupprimerUtilisateur(Utilisateur u);
}
}
diff --git a/VeraxShield/VeraxShield/services/UtilisateursDataService/UtilisateursDataServiceFactice.cs b/VeraxShield/VeraxShield/services/UtilisateursDataService/UtilisateursDataServiceFactice.cs
index 88715c9..52328b7 100644
--- a/VeraxShield/VeraxShield/services/UtilisateursDataService/UtilisateursDataServiceFactice.cs
+++ b/VeraxShield/VeraxShield/services/UtilisateursDataService/UtilisateursDataServiceFactice.cs
@@ -60,6 +60,51 @@ namespace VeraxShield.services.UtilisateursDataService
await this.saveUtilisateursLocalStorage(list);
}
+ public async Task AjouterUtilisateur(Utilisateur u)
+ {
+ List data = await this.getAllUtilisateurs();
+ data.Add(u);
+ await this.SaveAllUtilisateurs(data);
+ }
+
+ public async Task SupprimerUtilisateur(Utilisateur u)
+ {
+ List data = await this.getAllUtilisateurs();
+
+ foreach (Utilisateur temp in data)
+ {
+ Console.WriteLine(" - d : " + temp.Pseudo);
+ }
+
+ int index = -1;
+
+ foreach(Utilisateur temp in data)
+ {
+ if (temp.Pseudo == u.Pseudo)
+ {
+ index = data.IndexOf(temp);
+ }
+ }
+
+ Console.WriteLine("Index : " + index);
+
+ if (index != -1)
+ {
+ data.RemoveAt(index);
+ }
+
+ await this.SaveAllUtilisateurs(data);
+
+ Console.WriteLine("L'utilisateur " + u.Pseudo + "supprimé !");
+
+ data = await this.getAllUtilisateurs();
+
+ foreach (Utilisateur temp in data)
+ {
+ Console.WriteLine(temp.Pseudo);
+ }
+ }
+
private async Task> getUtilisateursFromJson(String cheminVersJson)
{
List utilisateursDeserialise = new List ();