43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
@inherits LayoutComponentBase
|
|
|
|
<RadzenLayout>
|
|
<RadzenHeader Style="height: 5rem; font-size: 2rem;" class="rz-px-5">
|
|
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.SpaceBetween" Gap="0">
|
|
<RadzenStack Style="height: 5rem;" Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" JustifyContent="JustifyContent.Center">
|
|
<RadzenLabel Text="@($"{ApplicationName}")" />
|
|
</RadzenStack>
|
|
<div class="rz-mr-2">
|
|
<RadzenAppearanceToggle />
|
|
</div>
|
|
</RadzenStack>
|
|
</RadzenHeader>
|
|
<RadzenSidebar @bind-Expanded="@sidebarExpanded">
|
|
<RadzenPanelMenu>
|
|
<RadzenPanelMenuItem Text="Home" Icon="home" Path="/"/>
|
|
<RadzenPanelMenuItem Text="CPMeta" Icon="assignment" Path="/CpMeta"/>
|
|
@* <RadzenPanelMenuItem Text="ProxyKms" Icon="assignment" Path="/ProxyKms"/> *@
|
|
</RadzenPanelMenu>
|
|
</RadzenSidebar>
|
|
<RadzenBody Style="margin:0; padding:1rem; overflow:auto; font-size: 2rem;">
|
|
@Body
|
|
</RadzenBody>
|
|
</RadzenLayout>
|
|
<RadzenComponents @rendermode="InteractiveServer" />
|
|
|
|
@code {
|
|
bool sidebarExpanded = true;
|
|
string ApplicationName = string.Empty;
|
|
string Page = string.Empty;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
ApplicationName = configService?.GetConfig()?.ApplicationName;
|
|
Page = NavigationManager.ToBaseRelativePath(NavigationManager.Uri);
|
|
}
|
|
|
|
private void OnClickMenu(MenuItemEventArgs args)
|
|
{
|
|
Page = args.Text;
|
|
}
|
|
}
|