Add detailed comments and app flow documentation for BlazorWasm

Added comprehensive inline comments (mainly in German) to key files (index.html, Program.cs, App.razor, MainLayout.razor, NavMenu.razor, Catalogs.razor, CatalogApiClient.cs) to clarify their roles and the overall application flow. Updated Home.razor with a clearer heading and intro. Introduced Ablauf.cs, which documents the loading order and responsibilities of each major component. These changes enhance codebase clarity and maintainability, especially for German-speaking developers.
This commit is contained in:
OlgunR
2026-01-28 15:03:52 +01:00
parent 05964eb02e
commit 98b841196e
9 changed files with 152 additions and 36 deletions

View File

@@ -1,4 +1,6 @@
<div class="top-row ps-3 navbar navbar-dark">
@* Definiert die Navigationsleiste, die Links zu verschiedenen Seiten der Anwendung enthält. *@
<div class="top-row ps-3 navbar navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="">DbFirst.BlazorWasm</a>
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
@@ -25,8 +27,10 @@
@code {
private bool collapseNavMenu = true;
// CSS-Klasse für die Navigation, die den Zustand (eingeklappt/ausgeklappt) steuert.
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
// Methode zum Umschalten des Navigationsmenüs.
private void ToggleNavMenu()
{
collapseNavMenu = !collapseNavMenu;