@using System.Reflection
@using System.Web
@inherits LayoutComponentBase
@inject NavigationManager NavigationManager
M3U
XMLTV
API
Channels
FFmpeg
@* *@
@* Plex *@
@* *@
Libraries
TV Shows
Movies
Collections
Schedules
Playouts
Logs
ErsatzTV Version
@InfoVersion
@Body
@code {
private static readonly string InfoVersion = Assembly.GetEntryAssembly().GetCustomAttribute()?.InformationalVersion ?? "unknown";
private MudTextField _textField;
private MudTheme _ersatzTvTheme => new()
{
Palette = new Palette
{
ActionDefault = "rgba(255,255,255, 0.80)",
Primary = "#009000",
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)",
Info = "#00c0c0",
Tertiary = "#00c000",
White = Colors.Shades.White
}
};
private void OnSearchKeyDown(KeyboardEventArgs args)
{
if (args.Code == "Enter")
{
string query = HttpUtility.UrlEncode(_textField.Value);
_textField.Reset();
NavigationManager.NavigateTo($"/search?query={query}", true);
StateHasChanged();
}
}
}