@using NetinaShop.AdminPanel.PWA.Pages
@using Radzen.Blazor
@inherits LayoutComponentBase
@inject IPWAUpdaterService PwaUpdaterService
@inject NavigationManager NavigationManager
@inject IUserUtility UserUtility
امیرحسین خادمی
09214802813
@code
{
MudTheme MyCustomTheme = new MudTheme()
{
Typography = new Typography()
{
Default = new Default()
{
FontFamily = new[] { "iranyekan" }
}
},
Palette = new PaletteLight()
{
Primary = "#001A46",
Secondary = "#E59F2E",
},
PaletteDark = new PaletteDark()
{
Primary = "#001A46",
Secondary = "#E59F2E",
}
};
private string _updateText = "! نسخه جدید پنل ادمین رسید";
private async Task LogoutAsync()
{
await UserUtility.LogoutAsync();
NavigationManager.NavigateTo("login",true,true);
}
protected override void OnInitialized()
{
string? version = typeof(Program)?.Assembly.GetName()?.Version?.ToString();
if (version != null)
_updateText = $"نسخه جدید پنل ادمین رسید - {version}";
base.OnInitialized();
}
}