@using Microsoft.AspNetCore.Mvc.ViewFeatures
@inject IFileVersionProvider FileVersionProvider
@DxResourceManager.RegisterTheme(ActiveTheme)
@DxResourceManager.RegisterScripts()
@code {
static readonly ITheme ActiveTheme = Themes.Fluent.Clone(properties =>
{
properties.Mode = ThemeMode.Light;
});
[CascadingParameter]
private HttpContext HttpContext { get; set; } = default!;
private string AppendVersion(string path)
=> FileVersionProvider.AddFileVersionToPath(
HttpContext.Request.PathBase.HasValue
? HttpContext.Request.PathBase.Value
: "/",
path);
}