From 388efb5357da7e2b6d9a661442685fbe0c7f2d17 Mon Sep 17 00:00:00 2001 From: Henry Trumme Date: Mon, 14 Apr 2025 23:44:47 +0200 Subject: [PATCH] Some little Changes --- .gitignore | 2 + Docs/ER-Diagramm.drawio | 389 ++++++++++++------ WatchLog/Components/Layout/MainLayout.razor | 3 - WatchLog/Components/Layout/NavMenu.razor | 22 +- WatchLog/Components/Layout/NavMenu.razor.css | 12 - WatchLog/Components/Pages/Counter.razor | 19 - WatchLog/Components/Pages/Weather.razor | 64 --- .../obj/Debug/net8.0/WatchLog.AssemblyInfo.cs | 2 +- .../net8.0/WatchLog.AssemblyInfoInputs.cache | 2 +- ....GeneratedMSBuildEditorConfig.editorconfig | 8 - 10 files changed, 279 insertions(+), 244 deletions(-) delete mode 100644 WatchLog/Components/Pages/Counter.razor delete mode 100644 WatchLog/Components/Pages/Weather.razor diff --git a/.gitignore b/.gitignore index 360ea12..8bcd9ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .vs +bin +Debug \ No newline at end of file diff --git a/Docs/ER-Diagramm.drawio b/Docs/ER-Diagramm.drawio index 2409ade..b359ad5 100644 --- a/Docs/ER-Diagramm.drawio +++ b/Docs/ER-Diagramm.drawio @@ -1,246 +1,246 @@ - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -250,31 +250,33 @@ - + - + - + - - + + + + - + - + - + @@ -284,174 +286,299 @@ - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WatchLog/Components/Layout/MainLayout.razor b/WatchLog/Components/Layout/MainLayout.razor index 5a24bb1..b1155ce 100644 --- a/WatchLog/Components/Layout/MainLayout.razor +++ b/WatchLog/Components/Layout/MainLayout.razor @@ -6,9 +6,6 @@
-
- About -
@Body diff --git a/WatchLog/Components/Layout/NavMenu.razor b/WatchLog/Components/Layout/NavMenu.razor index fd642c8..f8fa283 100644 --- a/WatchLog/Components/Layout/NavMenu.razor +++ b/WatchLog/Components/Layout/NavMenu.razor @@ -10,19 +10,31 @@ diff --git a/WatchLog/Components/Layout/NavMenu.razor.css b/WatchLog/Components/Layout/NavMenu.razor.css index 4e15395..a705931 100644 --- a/WatchLog/Components/Layout/NavMenu.razor.css +++ b/WatchLog/Components/Layout/NavMenu.razor.css @@ -34,18 +34,6 @@ background-size: cover; } -.bi-house-door-fill-nav-menu { - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E"); -} - -.bi-plus-square-fill-nav-menu { - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E"); -} - -.bi-list-nested-nav-menu { - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E"); -} - .nav-item { font-size: 0.9rem; padding-bottom: 0.5rem; diff --git a/WatchLog/Components/Pages/Counter.razor b/WatchLog/Components/Pages/Counter.razor deleted file mode 100644 index 1a4f8e7..0000000 --- a/WatchLog/Components/Pages/Counter.razor +++ /dev/null @@ -1,19 +0,0 @@ -@page "/counter" -@rendermode InteractiveServer - -Counter - -

Counter

- -

Current count: @currentCount

- - - -@code { - private int currentCount = 0; - - private void IncrementCount() - { - currentCount++; - } -} diff --git a/WatchLog/Components/Pages/Weather.razor b/WatchLog/Components/Pages/Weather.razor deleted file mode 100644 index 43a1ecb..0000000 --- a/WatchLog/Components/Pages/Weather.razor +++ /dev/null @@ -1,64 +0,0 @@ -@page "/weather" -@attribute [StreamRendering] - -Weather - -

Weather

- -

This component demonstrates showing data.

- -@if (forecasts == null) -{ -

Loading...

-} -else -{ - - - - - - - - - - - @foreach (var forecast in forecasts) - { - - - - - - - } - -
DateTemp. (C)Temp. (F)Summary
@forecast.Date.ToShortDateString()@forecast.TemperatureC@forecast.TemperatureF@forecast.Summary
-} - -@code { - private WeatherForecast[]? forecasts; - - protected override async Task OnInitializedAsync() - { - // Simulate asynchronous loading to demonstrate streaming rendering - await Task.Delay(500); - - var startDate = DateOnly.FromDateTime(DateTime.Now); - var summaries = new[] { "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }; - forecasts = Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = startDate.AddDays(index), - TemperatureC = Random.Shared.Next(-20, 55), - Summary = summaries[Random.Shared.Next(summaries.Length)] - }).ToArray(); - } - - private class WeatherForecast - { - public DateOnly Date { get; set; } - public int TemperatureC { get; set; } - public string? Summary { get; set; } - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - } -} diff --git a/WatchLog/obj/Debug/net8.0/WatchLog.AssemblyInfo.cs b/WatchLog/obj/Debug/net8.0/WatchLog.AssemblyInfo.cs index 163028b..712231c 100644 --- a/WatchLog/obj/Debug/net8.0/WatchLog.AssemblyInfo.cs +++ b/WatchLog/obj/Debug/net8.0/WatchLog.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("WatchLog")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9703ecf154d2b2d241441469f6e4d3f14d89430a")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+22836a4267e61cda2ad7a2509fcf57f0612d57f1")] [assembly: System.Reflection.AssemblyProductAttribute("WatchLog")] [assembly: System.Reflection.AssemblyTitleAttribute("WatchLog")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/WatchLog/obj/Debug/net8.0/WatchLog.AssemblyInfoInputs.cache b/WatchLog/obj/Debug/net8.0/WatchLog.AssemblyInfoInputs.cache index d65d96f..52c2b6f 100644 --- a/WatchLog/obj/Debug/net8.0/WatchLog.AssemblyInfoInputs.cache +++ b/WatchLog/obj/Debug/net8.0/WatchLog.AssemblyInfoInputs.cache @@ -1 +1 @@ -04efcf38ce5fed9d425693e0b6f81488a16ada1438eee021ee7d11ac129bd8f0 +3e406fa81a2eec0b0c1676a22be998fae449b9988405786ef5d7ffdee79399cd diff --git a/WatchLog/obj/Debug/net8.0/WatchLog.GeneratedMSBuildEditorConfig.editorconfig b/WatchLog/obj/Debug/net8.0/WatchLog.GeneratedMSBuildEditorConfig.editorconfig index 85e707c..08f5d13 100644 --- a/WatchLog/obj/Debug/net8.0/WatchLog.GeneratedMSBuildEditorConfig.editorconfig +++ b/WatchLog/obj/Debug/net8.0/WatchLog.GeneratedMSBuildEditorConfig.editorconfig @@ -24,10 +24,6 @@ build_property.EnableCodeStyleSeverity = build_metadata.AdditionalFiles.TargetPath = Q29tcG9uZW50c1xBcHAucmF6b3I= build_metadata.AdditionalFiles.CssScope = -[D:/wc/Watchlog/WatchLog/Components/Pages/Counter.razor] -build_metadata.AdditionalFiles.TargetPath = Q29tcG9uZW50c1xQYWdlc1xDb3VudGVyLnJhem9y -build_metadata.AdditionalFiles.CssScope = - [D:/wc/Watchlog/WatchLog/Components/Pages/Error.razor] build_metadata.AdditionalFiles.TargetPath = Q29tcG9uZW50c1xQYWdlc1xFcnJvci5yYXpvcg== build_metadata.AdditionalFiles.CssScope = @@ -36,10 +32,6 @@ build_metadata.AdditionalFiles.CssScope = build_metadata.AdditionalFiles.TargetPath = Q29tcG9uZW50c1xQYWdlc1xIb21lLnJhem9y build_metadata.AdditionalFiles.CssScope = -[D:/wc/Watchlog/WatchLog/Components/Pages/Weather.razor] -build_metadata.AdditionalFiles.TargetPath = Q29tcG9uZW50c1xQYWdlc1xXZWF0aGVyLnJhem9y -build_metadata.AdditionalFiles.CssScope = - [D:/wc/Watchlog/WatchLog/Components/Routes.razor] build_metadata.AdditionalFiles.TargetPath = Q29tcG9uZW50c1xSb3V0ZXMucmF6b3I= build_metadata.AdditionalFiles.CssScope =