Creata pagina "user"
This commit is contained in:
22
SteUp.Shared/Components/SingleElements/AppVersion.razor
Normal file
22
SteUp.Shared/Components/SingleElements/AppVersion.razor
Normal file
@@ -0,0 +1,22 @@
|
||||
@using SteUp.Shared.Core.Interface.System
|
||||
@inject IGenericSystemService GenericSystemService
|
||||
|
||||
<div class="app-version">
|
||||
<span>@Version</span>
|
||||
</div>
|
||||
|
||||
@code
|
||||
{
|
||||
private string Version { get; set; } = "";
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
#if DEBUG
|
||||
Version = $"v{GenericSystemService.GetCurrentAppVersion()} [DEBUG]";
|
||||
#else
|
||||
Version = $"v{GenericSystemService.GetCurrentAppVersion()}";
|
||||
#endif
|
||||
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
11
SteUp.Shared/Components/SingleElements/AppVersion.razor.css
Normal file
11
SteUp.Shared/Components/SingleElements/AppVersion.razor.css
Normal file
@@ -0,0 +1,11 @@
|
||||
.app-version{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
.app-version span{
|
||||
font-size: smaller;
|
||||
color: var(--mud-palette-gray-darker);
|
||||
}
|
||||
Reference in New Issue
Block a user