@using System.Reflection
@using ErsatzTV.Extensions
@inherits LayoutComponentBase
@inject NavigationManager _navigationManager
M3U
XMLTV
@* API *@
Channels
FFmpeg Profiles
Watermarks
Local
Emby
Jellyfin
Plex
Libraries
Trash
TV Shows
Movies
Music
Other Videos
Songs
Collections
Trakt Lists
Filler Presets
Schedules
Playouts
Settings
Logs
ErsatzTV Version
@InfoVersion
@Body
@code {
private static readonly string InfoVersion = Assembly.GetEntryAssembly().GetCustomAttribute()?.InformationalVersion ?? "unknown";
private string _query;
private record SearchModel;
private readonly SearchModel _dummyModel = new();
private MudTheme _ersatzTvTheme => new()
{
Palette = new Palette
{
ActionDefault = "rgba(255,255,255, 0.80)",
Primary = "#009000",
Secondary = "#009090",
AppbarBackground = "#121212",
Background = "#272727",
DrawerBackground = "#1f1f1f",
Surface = "#1f1f1f",
DrawerText = "rgba(255,255,255, 0.80)",
TextPrimary = "rgba(255,255,255, 0.80)",
TextSecondary = "rgba(255,255,255, 0.80)",
TextDisabled = "rgba(255,255,255, 0.40)",
ActionDisabled = "rgba(255,255,255, 0.40)",
TableHover = "rgba(255,255,255, 0.10)",
Info = "#00c0c0",
Tertiary = "#00c000",
White = Colors.Shades.White
}
};
protected override async Task OnParametersSetAsync()
{
await base.OnParametersSetAsync();
_query = _navigationManager.Uri.GetSearchQuery();
}
private void PerformSearch()
{
_navigationManager.NavigateTo(_query.GetRelativeSearchQuery(), true);
StateHasChanged();
}
}