* fix blazor naming

* code cleanup

* update dependencies
This commit is contained in:
Jason Dove
2024-05-06 17:00:52 -05:00
committed by GitHub
parent ef6c8b0816
commit a87ec2d75d
168 changed files with 1549 additions and 1614 deletions
@@ -1,11 +1,8 @@
@page "/media/sources/jellyfin/{Id:int}/paths"
@using ErsatzTV.Application.MediaSources
@using ErsatzTV.Application.Jellyfin
@using ErsatzTV.Application.MediaSources
@implements IDisposable
@inject NavigationManager _navigationManager
@inject ILogger<ScheduleItemsEditor> _logger
@inject ISnackbar _snackbar
@inject IMediator _mediator
@inject IMediator Mediator
<RemoteMediaSourcePathReplacementsEditor
Id="@Id"
@@ -27,11 +24,11 @@
}
private async Task<Option<RemoteMediaSourceViewModel>> GetMediaSourceById(int id) =>
await _mediator.Send(new GetJellyfinMediaSourceById(Id), _cts.Token)
await Mediator.Send(new GetJellyfinMediaSourceById(Id), _cts.Token)
.MapT(vm => new RemoteMediaSourceViewModel(vm.Id, vm.Name, vm.Address));
private async Task<List<RemoteMediaSourcePathReplacementEditViewModel>> GetPathReplacementsBySourceId(int mediaSourceId) =>
await _mediator.Send(new GetJellyfinPathReplacementsBySourceId(Id), _cts.Token)
await Mediator.Send(new GetJellyfinPathReplacementsBySourceId(Id), _cts.Token)
.Map(list => list.Map(ProjectToEditViewModel).ToList());
private RemoteMediaSourcePathReplacementEditViewModel ProjectToEditViewModel(JellyfinPathReplacementViewModel item) =>