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.
|
||
|---|---|---|
| .. | ||
| Components | ||
| Platforms | ||
| Resources | ||
| Services | ||
| wwwroot | ||
| App.xaml | ||
| App.xaml.cs | ||
| FruitBankHybrid.csproj | ||
| MainPage.xaml | ||
| MainPage.xaml.cs | ||
| MauiProgram.cs | ||
| README.md | ||
| fruitbank.keystore | ||
README.md
FruitBankHybrid
@project { type = "product" own-dep-projects = [ "AyCode.Core, AyCode.Services, AyCode.Entities (in AyCode.Core repo)", "Mango.Nop.Core (in Mango.Nop Libraries repo)" ] }
.NET MAUI Hybrid cross-platform app hosting Blazor components via BlazorWebView. Targets Android (API 33+), iOS (15.0+), and Windows.
Folder Structure
| Folder | Purpose |
|---|---|
Services/ |
Platform-specific: FormFactor, SecureCredentialService, BrowserConsoleLogWriter |
Platforms/ |
Per-platform entry points: Android, iOS, Windows |
Components/ |
Razor component imports (_Imports.razor) |
Resources/ |
AppIcon, splash screens, fonts, images |
Key Files (Root)
MauiProgram.cs— DI registration, DevExpress init, SignalR client setup.MainPage.xaml.cs— BlazorWebView host page.App.xaml.cs— MAUI Application entry point.