Compare commits
2 Commits
57f1359c96
...
87d19dcadf
| Author | SHA1 | Date | |
|---|---|---|---|
| 87d19dcadf | |||
| a289690b6b |
@@ -1,4 +1,6 @@
|
||||
@using MudBlazor
|
||||
@using DiunaBI.UI.Shared.Services
|
||||
@inject AppConfig AppConfig
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<AuthGuard>
|
||||
@@ -16,7 +18,7 @@
|
||||
OnClick="ToggleDrawer"
|
||||
Class="mud-hidden-md-up"/>
|
||||
<MudSpacer/>
|
||||
<MudText Typo="Typo.h6">DiunaBI</MudText>
|
||||
<MudText Typo="Typo.h6">@AppConfig.AppName</MudText>
|
||||
</MudAppBar>
|
||||
|
||||
<MudDrawer @bind-Open="_drawerOpen"
|
||||
@@ -25,6 +27,11 @@
|
||||
Elevation="1"
|
||||
ClipMode="DrawerClipMode.Always"
|
||||
Class="mud-width-250">
|
||||
<div class="nav-logo" style="text-align: center; padding: 20px;">
|
||||
<a href="https://www.diunabi.com" target="_blank">
|
||||
<img src="_content/DiunaBI.UI.Shared/images/logo.png" alt="DiunaBI" style="max-width: 180px; height: auto;" />
|
||||
</a>
|
||||
</div>
|
||||
<MudNavMenu>
|
||||
<MudNavLink Href="/dashboard" Icon="@Icons.Material.Filled.Dashboard">Dashboard</MudNavLink>
|
||||
<MudNavLink Href="/layers" Icon="@Icons.Material.Filled.Inventory">Layers</MudNavLink>
|
||||
|
||||
6
DiunaBI.UI.Shared/Services/AppConfig.cs
Normal file
6
DiunaBI.UI.Shared/Services/AppConfig.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace DiunaBI.UI.Shared.Services;
|
||||
|
||||
public class AppConfig
|
||||
{
|
||||
public string AppName { get; set; } = "DiunaBI";
|
||||
}
|
||||
BIN
DiunaBI.UI.Shared/wwwroot/images/logo.png
Normal file
BIN
DiunaBI.UI.Shared/wwwroot/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 145 KiB |
@@ -14,6 +14,10 @@ var apiBaseUrl = builder.Configuration["ApiSettings:BaseUrl"]
|
||||
?? throw new InvalidOperationException("ApiSettings:BaseUrl is not configured");
|
||||
builder.Services.AddSharedServices(apiBaseUrl);
|
||||
|
||||
// Configure App settings
|
||||
var appConfig = builder.Configuration.GetSection("App").Get<AppConfig>() ?? new AppConfig();
|
||||
builder.Services.AddSingleton(appConfig);
|
||||
|
||||
builder.Services.AddScoped<IGoogleAuthService, WebGoogleAuthService>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
@@ -12,5 +12,8 @@
|
||||
"Url": "http://0.0.0.0:7143"
|
||||
}
|
||||
}
|
||||
},
|
||||
"App": {
|
||||
"AppName": "DiunaBI"
|
||||
}
|
||||
}
|
||||
@@ -6,5 +6,8 @@
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"AllowedHosts": "*",
|
||||
"App": {
|
||||
"AppName": "DiunaBI"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user