Introduced IAppTitleService for platform-agnostic environment badge in the app title ("[PROD]" or "[DEV] FruitBank"), with implementations for Web (document.title), MAUI (window title), and server (no-op). Registered the service per platform in DI. MainLayout now updates the title reactively on environment changes via FruitBankConstClient.IsProdChanged. Improved event handling and prevented redundant environment hydration calls. No business logic affected; changes are UI/infrastructure only.
|
||
|---|---|---|
| .. | ||
| MainLayout.razor | ||
| MainLayout.razor.cs | ||
| MainLayout.razor.css | ||
| NavMenu.razor | ||
| NavMenu.razor.css | ||
| README.md | ||
README.md
Layout
Application shell: root layout, navigation menu, auto-login, and toast notifications.
Key Files
MainLayout.razor— Root layout with navigation menu.MainLayout.razor.cs— SignalR message handling, auto-login on first render, toast notification for orders, login/logout handling, navigation guards.NavMenu.razor— Navigation component.