diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..fe1152b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,30 @@ +**/.classpath +**/.dockerignore +**/.env +**/.git +**/.gitignore +**/.project +**/.settings +**/.toolstarget +**/.vs +**/.vscode +**/*.*proj.user +**/*.dbmdl +**/*.jfm +**/azds.yaml +**/bin +**/charts +**/docker-compose* +**/Dockerfile* +**/node_modules +**/npm-debug.log +**/obj +**/secrets.dev.yaml +**/values.dev.yaml +LICENSE +README.md +!**/.gitignore +!.git/HEAD +!.git/config +!.git/packed-refs +!.git/refs/heads/** \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..67babe0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +## ========================================== +## 1. Fichiers de compilation & Cache .NET +## ========================================== +**/bin/ +**/obj/ +**/out/ + +## ========================================== +## 2. Visual Studio & IDE (VS Code, JetBrains) +## ========================================== +.vs/ +.vscode/ +*.suo +*.user +*.userosscache +*.sln.docstates + +## ========================================== +## 3. Packages NuGet temporaires +## ========================================== +nupkgs/ +*.nupkg +*.snupkg + +## ========================================== +## 4. Fichiers système +## ========================================== +Thumbs.db +[Dd]esktop.ini +.DS_Store \ No newline at end of file diff --git a/HA_Shopping_List.Server/Components/App.razor b/HA_Shopping_List.Server/Components/App.razor new file mode 100644 index 0000000..b90968a --- /dev/null +++ b/HA_Shopping_List.Server/Components/App.razor @@ -0,0 +1,17 @@ + + + +
+ + +
+ Request ID: @RequestId
+
+ Swapping to Development environment will display more detailed information about the error that occurred. +
++ The Development environment shouldn't be enabled for deployed applications. + It can result in displaying sensitive information from exceptions to end users. + For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development + and restarting the app. +
+ +@code{ + [CascadingParameter] + private HttpContext? HttpContext { get; set; } + + private string? RequestId { get; set; } + private bool ShowRequestId => !string.IsNullOrEmpty(RequestId); + + protected override void OnInitialized() => + RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; +} diff --git a/HA_Shopping_List.Server/Components/Pages/Home.razor b/HA_Shopping_List.Server/Components/Pages/Home.razor new file mode 100644 index 0000000..3822bee --- /dev/null +++ b/HA_Shopping_List.Server/Components/Pages/Home.razor @@ -0,0 +1,445 @@ +@page "/" +@rendermode InteractiveServer +@using HA_Shopping_List.Server.Data +@using HA_Shopping_List.Server.Enum +@using Microsoft.EntityFrameworkCore +@inject IDbContextFactory