Open
Description
Is this a Bug or Feature request?:
Bug
Logs
OmniSharp
------------------- Please fill in this section -------------------------
To find the OmniSharp log, open VS Code's "Output" pane, then in the dropdown choose "OmniSharp Log".
Razor
Expand
-- Starting Issue Data Collection--
3814 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3814 - Projected document in sync with host document
3814 - Projected text document in sync with data type
3814 - Synchronization successful!
3815 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3815 - Projected document in sync with host document
3815 - Projected text document in sync with data type
3815 - Synchronization successful!
3816 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3816 - Projected document in sync with host document
3816 - Projected text document in sync with data type
3816 - Synchronization successful!
3817 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3817 - Projected document in sync with host document
3817 - Projected text document in sync with data type
3817 - Synchronization successful!
3818 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3818 - Projected document in sync with host document
3818 - Projected text document in sync with data type
3818 - Synchronization successful!
3819 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3819 - Projected document in sync with host document
3819 - Projected text document in sync with data type
3819 - Synchronization successful!
3820 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3820 - Projected document in sync with host document
3820 - Projected text document in sync with data type
3820 - Synchronization successful!
3821 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3821 - Projected document in sync with host document
3821 - Projected text document in sync with data type
3821 - Synchronization successful!
3822 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3822 - Projected document in sync with host document
3822 - Projected text document in sync with data type
3822 - Synchronization successful!
3823 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3823 - Projected document in sync with host document
3823 - Projected text document in sync with data type
3823 - Synchronization successful!
3824 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '828'.'
3824 - Projected document in sync with host document
3824 - Projected text document in sync with data type
3824 - Synchronization successful!
Re-mapping location [205:0, 205:11] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [17:21, 17:32] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [222:0, 222:9] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [18:19, 18:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [256:0, 256:11] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [20:21, 20:32] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [239:0, 239:11] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [19:21, 19:32] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [426:17, 426:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [58:17, 58:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [431:17, 431:26] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [63:17, 63:26] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [445:17, 445:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [77:17, 77:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [439:17, 439:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [71:17, 71:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
3825 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 828, synchronizing to version '829'.'
3825 - Projected document not in sync with host document, waiting for update...
Current host document sync version: 828
Updating the HTML document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (829)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'htmlChanged'
Updating the C# document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (829)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'csharpChanged'
3825 - Projected document in sync with host document
3825 - Projected text document not in sync with data type, waiting for update...
Current projected text document sync version: 828
3825 - Projected text document synchronized to 829.
3825 - Projected text document in sync with data type
3825 - Synchronization successful!
3826 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 829, synchronizing to version '829'.'
3826 - Projected document in sync with host document
3826 - Projected text document in sync with data type
3826 - Synchronization successful!
3827 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 829, synchronizing to version '829'.'
3827 - Projected document in sync with host document
3827 - Projected text document in sync with data type
3827 - Synchronization successful!
3828 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 829, synchronizing to version '829'.'
3828 - Projected document in sync with host document
3828 - Projected text document in sync with data type
3828 - Synchronization successful!
3829 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 829, synchronizing to version '830'.'
3829 - Projected document not in sync with host document, waiting for update...
Current host document sync version: 829
Updating the HTML document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (830)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'htmlChanged'
Updating the C# document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (830)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'csharpChanged'
3829 - Projected document in sync with host document
3829 - Projected text document not in sync with data type, waiting for update...
Current projected text document sync version: 829
3829 - Projected text document synchronized to 830.
3829 - Projected text document in sync with data type
3829 - Synchronization successful!
3830 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 830, synchronizing to version '830'.'
3830 - Projected document in sync with host document
3830 - Projected text document in sync with data type
3830 - Synchronization successful!
3831 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 830, synchronizing to version '830'.'
3831 - Projected document in sync with host document
3831 - Projected text document in sync with data type
3831 - Synchronization successful!
Updating the HTML document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (831)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'htmlChanged'
Updating the C# document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (831)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'csharpChanged'
3832 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 831, synchronizing to version '831'.'
3832 - Projected document in sync with host document
3832 - Projected text document in sync with data type
3832 - Synchronization successful!
3833 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 831, synchronizing to version '831'.'
3833 - Projected document in sync with host document
3833 - Projected text document in sync with data type
3833 - Synchronization successful!
3834 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.html':
Currently at 831, synchronizing to version '831'.'
3834 - Projected document in sync with host document
3834 - Projected text document in sync with data type
3834 - Synchronization successful!
3835 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 831, synchronizing to version '832'.'
3835 - Projected document not in sync with host document, waiting for update...
Current host document sync version: 831
Updating the HTML document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (832)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'htmlChanged'
Updating the C# document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (832)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'csharpChanged'
3835 - Projected document in sync with host document
3835 - Projected text document not in sync with data type, waiting for update...
Current projected text document sync version: 831
3835 - Projected text document synchronized to 832.
3835 - Projected text document in sync with data type
3835 - Synchronization successful!
3836 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 832, synchronizing to version '832'.'
3836 - Projected document in sync with host document
3836 - Projected text document in sync with data type
3836 - Synchronization successful!
3837 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 832, synchronizing to version '832'.'
3837 - Projected document in sync with host document
3837 - Projected text document in sync with data type
3837 - Synchronization successful!
3838 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 832, synchronizing to version '833'.'
3838 - Projected document not in sync with host document, waiting for update...
Current host document sync version: 832
Updating the HTML document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (833)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'htmlChanged'
Updating the C# document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (833)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'csharpChanged'
3838 - Projected document in sync with host document
3838 - Projected text document not in sync with data type, waiting for update...
Current projected text document sync version: 832
3838 - Projected text document synchronized to 833.
3838 - Projected text document in sync with data type
3838 - Synchronization successful!
3839 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 833, synchronizing to version '833'.'
3839 - Projected document in sync with host document
3839 - Projected text document in sync with data type
3839 - Synchronization successful!
3840 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 833, synchronizing to version '833'.'
3840 - Projected document in sync with host document
3840 - Projected text document in sync with data type
3840 - Synchronization successful!
3841 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 833, synchronizing to version '833'.'
3841 - Projected document in sync with host document
3841 - Projected text document in sync with data type
3841 - Synchronization successful!
3842 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 833, synchronizing to version '835'.'
3842 - Projected document not in sync with host document, waiting for update...
Current host document sync version: 833
Updating the HTML document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (835)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'htmlChanged'
Updating the C# document for Razor file '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' (835)
Notifying document '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor' changed 'csharpChanged'
3842 - Projected document in sync with host document
3842 - Projected text document not in sync with data type, waiting for update...
Current projected text document sync version: 833
3842 - Projected text document synchronized to 835.
3842 - Projected text document in sync with data type
3842 - Synchronization successful!
3843 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 835, synchronizing to version '835'.'
3843 - Projected document in sync with host document
3843 - Projected text document in sync with data type
3843 - Synchronization successful!
3844 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 835, synchronizing to version '835'.'
3844 - Projected document in sync with host document
3844 - Projected text document in sync with data type
3844 - Synchronization successful!
3845 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.html':
Currently at 835, synchronizing to version '835'.'
3845 - Projected document in sync with host document
3845 - Projected text document in sync with data type
3845 - Synchronization successful!
3846 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 835, synchronizing to version '835'.'
3846 - Projected document in sync with host document
3846 - Projected text document in sync with data type
3846 - Synchronization successful!
3847 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 835, synchronizing to version '835'.'
3847 - Projected document in sync with host document
3847 - Projected text document in sync with data type
3847 - Synchronization successful!
3848 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 835, synchronizing to version '835'.'
3848 - Projected document in sync with host document
3848 - Projected text document in sync with data type
3848 - Synchronization successful!
3849 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 835, synchronizing to version '835'.'
3849 - Projected document in sync with host document
3849 - Projected text document in sync with data type
3849 - Synchronization successful!
3850 - Synchronizing '/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs':
Currently at 835, synchronizing to version '835'.'
3850 - Projected document in sync with host document
3850 - Projected text document in sync with data type
3850 - Synchronization successful!
Re-mapping location [239:0, 239:11] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [19:21, 19:32] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [205:0, 205:11] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [17:21, 17:32] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [222:0, 222:9] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [18:19, 18:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [256:0, 256:11] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [20:21, 20:32] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [439:17, 439:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [71:17, 71:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [431:17, 431:26] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [63:17, 63:26] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [426:17, 426:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [58:17, 58:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
Re-mapping location [445:17, 445:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor__virtual.cs to [77:17, 77:28] in /home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor
-- Stopping Issue Data Collection--
Workspace information
Razor document:
Expand
@page "/setlist/{id}"
@using Microsoft.AspNetCore.Mvc
@inject SetListApiClient SetListApiClient
@if (SetList is null)
{
<FluentProgressRing></FluentProgressRing>
}
else
{
<FluentHeader>
@SetList.Name
<FluentDivider />
@SetList.Duration
</FluentHeader>
<FluentDragContainer
TItem="Song"
OnDragStart="OnDragStart"
OnDragEnd="OnDragEnd"
OnDragEnter="OnDragEnter"
OnDragLeave="OnDragLeave">
<FluentGrid AdaptiveRendering="true" >
@foreach (var song in SetList.Songs)
{
<FluentGridItem xs="12">
<FluentDropZone Id="@song.Id.ToString()" Draggable="true" Droppable="true" Item="@song">
<FluentCard>
@song.Name
@song.Duration
</FluentCard>
</FluentDropZone>
</FluentGridItem>
}
</FluentGrid>
</FluentDragContainer>
}
@code {
[Parameter] public required string Id { get; set; }
SetList? SetList { get; set; }
IQueryable<Song>? Songs { get; set; }
Song? _lastEnteredSong;
protected override async Task OnInitializedAsync()
{
if (Guid.TryParse(Id, out var guidId))
{
SetList = await SetListApiClient.GetSetListAsync(guidId);
if (SetList is not null)
Songs = SetList.Songs.ToArray().AsQueryable();
}
}
private void OnDragStart(FluentDragEventArgs<Song> args)
{
Console.WriteLine($"Drag Start: {args.Source.Item.Name}");
}
private void OnDragEnd(FluentDragEventArgs<Song> args)
{
var dropSong = _lastEnteredSong ??AbandonedMutexException
Console.WriteLine($"Swapping {args.Source.Item.Name} with {args.Target.Item.Name}");
SetList = SetList!.SwapSongs(args.Source.Item, args.Target.Item);
StateHasChanged();
}
private void OnDragEnter(FluentDragEventArgs<Song> args)
{
_lastEnteredSong = args.Target.Item;
Console.WriteLine($"Drag Enter: {args.Source.Item.Name} to {args.Target.Item.Name}");
}
private void OnDragLeave(FluentDragEventArgs<Song> args)
{
Console.WriteLine($"Drag Leave: {args.Source.Item.Name} from {args.Target.Item.Name}");
}
}
Projected CSharp document:
Expand
////////////////////// Projected CSharp as seen by extension ///////////////////////
#pragma checksum "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "32782ba3813eb09e7a4350f4539f187fab41e3d7"
// <auto-generated/>
#pragma warning disable 1591
namespace SetListr.Web.Pages
{
#line default
using global::System;
using global::System.Collections.Generic;
using global::System.Linq;
using global::System.Threading.Tasks;
using global::Microsoft.AspNetCore.Components;
#nullable restore
#line (1,2)-(1,23) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using System.Net.Http
#nullable disable
;
#nullable restore
#line (2,2)-(2,28) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using System.Net.Http.Json
#nullable disable
;
#nullable restore
#line (3,2)-(3,45) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.AspNetCore.Components.Forms
#nullable disable
;
#nullable restore
#line (4,2)-(4,47) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.AspNetCore.Components.Routing
#nullable disable
;
#nullable restore
#line (5,2)-(5,43) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.AspNetCore.Components.Web
#nullable disable
;
#nullable restore
#line (6,2)-(6,61) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using static Microsoft.AspNetCore.Components.Web.RenderMode
#nullable disable
;
#nullable restore
#line (7,2)-(7,58) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.AspNetCore.Components.Web.Virtualization
#nullable disable
;
#nullable restore
#line (8,2)-(8,42) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.AspNetCore.OutputCaching
#nullable disable
;
#nullable restore
#line (9,2)-(9,48) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.FluentUI.AspNetCore.Components
#nullable disable
;
#nullable restore
#line (10,2)-(10,62) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Icons = Microsoft.FluentUI.AspNetCore.Components.Icons
#nullable disable
;
#nullable restore
#line (11,2)-(11,27) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.JSInterop
#nullable disable
;
#nullable restore
#line (12,2)-(12,20) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using SetListr.Web
#nullable disable
;
#nullable restore
#line (13,2)-(13,31) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using SetListr.Web.Components
#nullable disable
;
#nullable restore
#line (14,2)-(14,31) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using SetListr.Web.Extensions
#nullable disable
;
#nullable restore
#line (1,2)-(1,36) "/home/anonymous/src/SetListr/SetListr.Web/Pages/_Imports.razor"
using System.Collections.Immutable
#nullable disable
;
#nullable restore
#line (2,2)-(2,41) "/home/anonymous/src/SetListr/SetListr.Web/Pages/_Imports.razor"
using Microsoft.AspNetCore.WebUtilities
#nullable disable
;
#nullable restore
#line (3,2)-(3,42) "/home/anonymous/src/SetListr/SetListr.Web/Pages/_Imports.razor"
using Microsoft.AspNetCore.Authorization
#nullable disable
;
#nullable restore
#line (4,2)-(4,33) "/home/anonymous/src/SetListr/SetListr.Web/Pages/_Imports.razor"
using SetListr.Web.Services.DTO
#nullable disable
;
#nullable restore
#line (2,2)-(2,32) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
using Microsoft.AspNetCore.Mvc
#line default
#line hidden
#nullable disable
;
[global::Microsoft.AspNetCore.Components.RouteAttribute(
// language=Route,Component
#nullable restore
#line (1,7)-(1,22) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
"/setlist/{id}"
#line default
#line hidden
#nullable disable
)]
#nullable restore
public partial class SetListView : global::Microsoft.AspNetCore.Components.ComponentBase
#nullable disable
{
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
#nullable restore
#line (5,2)-(7,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
if (SetList is null)
{
#line default
#line hidden
#nullable disable
__builder.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentProgressRing>(0);
__builder.CloseComponent();
#nullable restore
#line (8,1)-(11,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
}
else
{
#line default
#line hidden
#nullable disable
__builder.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentHeader>(1);
__builder.AddAttribute(2, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
__builder2.AddContent(3,
#nullable restore
#line (12,10)-(12,22) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
SetList.Name
#line default
#line hidden
#nullable disable
);
__builder2.AddMarkupContent(4, "\n ");
__builder2.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentDivider>(5);
__builder2.CloseComponent();
__builder2.AddMarkupContent(6, "\n ");
__builder2.AddContent(7,
#nullable restore
#line (14,10)-(14,26) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
SetList.Duration
#line default
#line hidden
#nullable disable
);
}
));
__builder.CloseComponent();
__builder.AddMarkupContent(8, "\n ");
__builder.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentDragContainer<Song>>(9);
__builder.AddComponentParameter(10, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDragContainer<Song>.
#nullable restore
#line (18,9)-(18,20) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragStart
#line default
#line hidden
#nullable disable
), (global::System.Action<global::Microsoft.FluentUI.AspNetCore.Components.FluentDragEventArgs<Song>>)(
#nullable restore
#line (18,22)-(18,33) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragStart
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(11, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDragContainer<Song>.
#nullable restore
#line (19,9)-(19,18) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragEnd
#line default
#line hidden
#nullable disable
), (global::System.Action<global::Microsoft.FluentUI.AspNetCore.Components.FluentDragEventArgs<Song>>)(
#nullable restore
#line (19,20)-(19,29) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragEnd
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(12, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDragContainer<Song>.
#nullable restore
#line (20,9)-(20,20) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragEnter
#line default
#line hidden
#nullable disable
), (global::System.Action<global::Microsoft.FluentUI.AspNetCore.Components.FluentDragEventArgs<Song>>)(
#nullable restore
#line (20,22)-(20,33) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragEnter
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(13, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDragContainer<Song>.
#nullable restore
#line (21,9)-(21,20) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragLeave
#line default
#line hidden
#nullable disable
), (global::System.Action<global::Microsoft.FluentUI.AspNetCore.Components.FluentDragEventArgs<Song>>)(
#nullable restore
#line (21,22)-(21,33) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragLeave
#line default
#line hidden
#nullable disable
));
__builder.AddAttribute(14, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
__builder2.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentGrid>(15);
__builder2.AddComponentParameter(16, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentGrid.
#nullable restore
#line (23,21)-(23,38) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
AdaptiveRendering
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Boolean>(
#nullable restore
#line (23,40)-(23,44) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
true
#line default
#line hidden
#nullable disable
));
__builder2.AddAttribute(17, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
#nullable restore
#line (24,1)-(24,13) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
#line default
#line hidden
#nullable disable
#nullable restore
#line (24,14)-(26,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
foreach (var song in SetList.Songs)
{
#line default
#line hidden
#nullable disable
__builder3.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentGridItem>(18);
__builder3.AddComponentParameter(19, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentGridItem.
#nullable restore
#line (26,33)-(26,35) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
xs
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Int32?>(
#nullable restore
#line (26,37)-(26,39) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
12
#line default
#line hidden
#nullable disable
));
__builder3.AddAttribute(20, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder4) => {
global::__Blazor.SetListr.Web.Pages.SetListView.TypeInference.CreateFluentDropZone_0(__builder4, 21, 22,
#nullable restore
#line (27,42)-(27,60) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
song.Id.ToString()
#line default
#line hidden
#nullable disable
, 23,
#nullable restore
#line (27,73)-(27,77) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
true
#line default
#line hidden
#nullable disable
, 24,
#nullable restore
#line (27,90)-(27,94) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
true
#line default
#line hidden
#nullable disable
, 25,
#nullable restore
#line (27,103)-(27,107) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
song
#line default
#line hidden
#nullable disable
, 26, (__builder5) => {
__builder5.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentCard>(27);
__builder5.AddAttribute(28, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder6) => {
__builder6.AddContent(29,
#nullable restore
#line (29,30)-(29,39) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
song.Name
#line default
#line hidden
#nullable disable
);
__builder6.AddMarkupContent(30, "\n ");
__builder6.AddContent(31,
#nullable restore
#line (30,30)-(30,43) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
song.Duration
#line default
#line hidden
#nullable disable
);
}
));
__builder5.CloseComponent();
}
);
}
));
__builder3.CloseComponent();
#nullable restore
#line (34,1)-(35,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
}
#line default
#line hidden
#nullable disable
}
));
__builder2.CloseComponent();
}
));
__builder.CloseComponent();
#nullable restore
#line (37,1)-(38,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
}
#line default
#line hidden
#nullable disable
}
#pragma warning restore 1998
#nullable restore
#line (39,8)-(82,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
[Parameter] public required string Id { get; set; }
SetList? SetList { get; set; }
IQueryable<Song>? Songs { get; set; }
Song? _lastEnteredSong;
protected override async Task OnInitializedAsync()
{
if (Guid.TryParse(Id, out var guidId))
{
SetList = await SetListApiClient.GetSetListAsync(guidId);
if (SetList is not null)
Songs = SetList.Songs.ToArray().AsQueryable();
}
}
private void OnDragStart(FluentDragEventArgs<Song> args)
{
Console.WriteLine($"Drag Start: {args.Source.Item.Name}");
}
private void OnDragEnd(FluentDragEventArgs<Song> args)
{
var dropSong = _lastEnteredSong ??AbandonedMutexException
Console.WriteLine($"Swapping {args.Source.Item.Name} with {args.Target.Item.Name}");
SetList = SetList!.SwapSongs(args.Source.Item, args.Target.Item);
StateHasChanged();
}
private void OnDragEnter(FluentDragEventArgs<Song> args)
{
_lastEnteredSong = args.Target.Item;
Console.WriteLine($"Drag Enter: {args.Source.Item.Name} to {args.Target.Item.Name}");
}
private void OnDragLeave(FluentDragEventArgs<Song> args)
{
Console.WriteLine($"Drag Leave: {args.Source.Item.Name} from {args.Target.Item.Name}");
}
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Components.InjectAttribute] private
#nullable restore
#line (3,9)-(3,25) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
SetListApiClient
#line default
#line hidden
#nullable disable
#nullable restore
#line (3,26)-(3,42) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
SetListApiClient
#line default
#line hidden
#nullable disable
{ get; set; }
= default!;
}
}
namespace __Blazor.SetListr.Web.Pages.SetListView
{
#line hidden
internal static class TypeInference
{
public static void CreateFluentDropZone_0<TItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.String __arg0, int __seq1, global::System.Boolean __arg1, int __seq2, global::System.Boolean __arg2, int __seq3, TItem __arg3, int __seq4, global::Microsoft.AspNetCore.Components.RenderFragment __arg4)
{
__builder.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentDropZone<TItem>>(seq);
__builder.AddComponentParameter(__seq0, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDropZone<TItem>.
#nullable restore
#line (27,37)-(27,39) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
Id
#line default
#line hidden
#nullable disable
), __arg0);
__builder.AddComponentParameter(__seq1, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDropZone<TItem>.
#nullable restore
#line (27,62)-(27,71) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
Draggable
#line default
#line hidden
#nullable disable
), __arg1);
__builder.AddComponentParameter(__seq2, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDropZone<TItem>.
#nullable restore
#line (27,79)-(27,88) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
Droppable
#line default
#line hidden
#nullable disable
), __arg2);
__builder.AddComponentParameter(__seq3, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDropZone<TItem>.
#nullable restore
#line (27,96)-(27,100) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
Item
#line default
#line hidden
#nullable disable
), __arg3);
__builder.AddComponentParameter(__seq4, "ChildContent", __arg4);
__builder.CloseComponent();
}
}
}
#pragma warning restore 1591
////////////////////// Projected CSharp as seen by extension ///////////////////////
#pragma checksum "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "32782ba3813eb09e7a4350f4539f187fab41e3d7"
// <auto-generated/>
#pragma warning disable 1591
namespace SetListr.Web.Pages
{
#line default
using global::System;
using global::System.Collections.Generic;
using global::System.Linq;
using global::System.Threading.Tasks;
using global::Microsoft.AspNetCore.Components;
#nullable restore
#line (1,2)-(1,23) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using System.Net.Http
#nullable disable
;
#nullable restore
#line (2,2)-(2,28) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using System.Net.Http.Json
#nullable disable
;
#nullable restore
#line (3,2)-(3,45) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.AspNetCore.Components.Forms
#nullable disable
;
#nullable restore
#line (4,2)-(4,47) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.AspNetCore.Components.Routing
#nullable disable
;
#nullable restore
#line (5,2)-(5,43) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.AspNetCore.Components.Web
#nullable disable
;
#nullable restore
#line (6,2)-(6,61) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using static Microsoft.AspNetCore.Components.Web.RenderMode
#nullable disable
;
#nullable restore
#line (7,2)-(7,58) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.AspNetCore.Components.Web.Virtualization
#nullable disable
;
#nullable restore
#line (8,2)-(8,42) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.AspNetCore.OutputCaching
#nullable disable
;
#nullable restore
#line (9,2)-(9,48) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.FluentUI.AspNetCore.Components
#nullable disable
;
#nullable restore
#line (10,2)-(10,62) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Icons = Microsoft.FluentUI.AspNetCore.Components.Icons
#nullable disable
;
#nullable restore
#line (11,2)-(11,27) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using Microsoft.JSInterop
#nullable disable
;
#nullable restore
#line (12,2)-(12,20) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using SetListr.Web
#nullable disable
;
#nullable restore
#line (13,2)-(13,31) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using SetListr.Web.Components
#nullable disable
;
#nullable restore
#line (14,2)-(14,31) "/home/anonymous/src/SetListr/SetListr.Web/_Imports.razor"
using SetListr.Web.Extensions
#nullable disable
;
#nullable restore
#line (1,2)-(1,36) "/home/anonymous/src/SetListr/SetListr.Web/Pages/_Imports.razor"
using System.Collections.Immutable
#nullable disable
;
#nullable restore
#line (2,2)-(2,41) "/home/anonymous/src/SetListr/SetListr.Web/Pages/_Imports.razor"
using Microsoft.AspNetCore.WebUtilities
#nullable disable
;
#nullable restore
#line (3,2)-(3,42) "/home/anonymous/src/SetListr/SetListr.Web/Pages/_Imports.razor"
using Microsoft.AspNetCore.Authorization
#nullable disable
;
#nullable restore
#line (4,2)-(4,33) "/home/anonymous/src/SetListr/SetListr.Web/Pages/_Imports.razor"
using SetListr.Web.Services.DTO
#nullable disable
;
#nullable restore
#line (2,2)-(2,32) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
using Microsoft.AspNetCore.Mvc
#line default
#line hidden
#nullable disable
;
[global::Microsoft.AspNetCore.Components.RouteAttribute(
// language=Route,Component
#nullable restore
#line (1,7)-(1,22) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
"/setlist/{id}"
#line default
#line hidden
#nullable disable
)]
#nullable restore
public partial class SetListView : global::Microsoft.AspNetCore.Components.ComponentBase
#nullable disable
{
#pragma warning disable 1998
protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder)
{
#nullable restore
#line (5,2)-(7,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
if (SetList is null)
{
#line default
#line hidden
#nullable disable
__builder.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentProgressRing>(0);
__builder.CloseComponent();
#nullable restore
#line (8,1)-(11,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
}
else
{
#line default
#line hidden
#nullable disable
__builder.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentHeader>(1);
__builder.AddAttribute(2, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
__builder2.AddContent(3,
#nullable restore
#line (12,10)-(12,22) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
SetList.Name
#line default
#line hidden
#nullable disable
);
__builder2.AddMarkupContent(4, "\n ");
__builder2.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentDivider>(5);
__builder2.CloseComponent();
__builder2.AddMarkupContent(6, "\n ");
__builder2.AddContent(7,
#nullable restore
#line (14,10)-(14,26) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
SetList.Duration
#line default
#line hidden
#nullable disable
);
}
));
__builder.CloseComponent();
__builder.AddMarkupContent(8, "\n ");
__builder.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentDragContainer<Song>>(9);
__builder.AddComponentParameter(10, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDragContainer<Song>.
#nullable restore
#line (18,9)-(18,20) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragStart
#line default
#line hidden
#nullable disable
), (global::System.Action<global::Microsoft.FluentUI.AspNetCore.Components.FluentDragEventArgs<Song>>)(
#nullable restore
#line (18,22)-(18,33) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragStart
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(11, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDragContainer<Song>.
#nullable restore
#line (19,9)-(19,18) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragEnd
#line default
#line hidden
#nullable disable
), (global::System.Action<global::Microsoft.FluentUI.AspNetCore.Components.FluentDragEventArgs<Song>>)(
#nullable restore
#line (19,20)-(19,29) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragEnd
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(12, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDragContainer<Song>.
#nullable restore
#line (20,9)-(20,20) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragEnter
#line default
#line hidden
#nullable disable
), (global::System.Action<global::Microsoft.FluentUI.AspNetCore.Components.FluentDragEventArgs<Song>>)(
#nullable restore
#line (20,22)-(20,33) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragEnter
#line default
#line hidden
#nullable disable
));
__builder.AddComponentParameter(13, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDragContainer<Song>.
#nullable restore
#line (21,9)-(21,20) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragLeave
#line default
#line hidden
#nullable disable
), (global::System.Action<global::Microsoft.FluentUI.AspNetCore.Components.FluentDragEventArgs<Song>>)(
#nullable restore
#line (21,22)-(21,33) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
OnDragLeave
#line default
#line hidden
#nullable disable
));
__builder.AddAttribute(14, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => {
__builder2.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentGrid>(15);
__builder2.AddComponentParameter(16, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentGrid.
#nullable restore
#line (23,21)-(23,38) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
AdaptiveRendering
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Boolean>(
#nullable restore
#line (23,40)-(23,44) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
true
#line default
#line hidden
#nullable disable
));
__builder2.AddAttribute(17, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder3) => {
#nullable restore
#line (24,1)-(24,13) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
#line default
#line hidden
#nullable disable
#nullable restore
#line (24,14)-(26,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
foreach (var song in SetList.Songs)
{
#line default
#line hidden
#nullable disable
__builder3.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentGridItem>(18);
__builder3.AddComponentParameter(19, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentGridItem.
#nullable restore
#line (26,33)-(26,35) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
xs
#line default
#line hidden
#nullable disable
), global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck<global::System.Int32?>(
#nullable restore
#line (26,37)-(26,39) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
12
#line default
#line hidden
#nullable disable
));
__builder3.AddAttribute(20, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder4) => {
global::__Blazor.SetListr.Web.Pages.SetListView.TypeInference.CreateFluentDropZone_0(__builder4, 21, 22,
#nullable restore
#line (27,42)-(27,60) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
song.Id.ToString()
#line default
#line hidden
#nullable disable
, 23,
#nullable restore
#line (27,73)-(27,77) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
true
#line default
#line hidden
#nullable disable
, 24,
#nullable restore
#line (27,90)-(27,94) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
true
#line default
#line hidden
#nullable disable
, 25,
#nullable restore
#line (27,103)-(27,107) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
song
#line default
#line hidden
#nullable disable
, 26, (__builder5) => {
__builder5.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentCard>(27);
__builder5.AddAttribute(28, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder6) => {
__builder6.AddContent(29,
#nullable restore
#line (29,30)-(29,39) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
song.Name
#line default
#line hidden
#nullable disable
);
__builder6.AddMarkupContent(30, "\n ");
__builder6.AddContent(31,
#nullable restore
#line (30,30)-(30,43) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
song.Duration
#line default
#line hidden
#nullable disable
);
}
));
__builder5.CloseComponent();
}
);
}
));
__builder3.CloseComponent();
#nullable restore
#line (34,1)-(35,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
}
#line default
#line hidden
#nullable disable
}
));
__builder2.CloseComponent();
}
));
__builder.CloseComponent();
#nullable restore
#line (37,1)-(38,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
}
#line default
#line hidden
#nullable disable
}
#pragma warning restore 1998
#nullable restore
#line (39,8)-(82,1) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
[Parameter] public required string Id { get; set; }
SetList? SetList { get; set; }
IQueryable<Song>? Songs { get; set; }
Song? _lastEnteredSong;
protected override async Task OnInitializedAsync()
{
if (Guid.TryParse(Id, out var guidId))
{
SetList = await SetListApiClient.GetSetListAsync(guidId);
if (SetList is not null)
Songs = SetList.Songs.ToArray().AsQueryable();
}
}
private void OnDragStart(FluentDragEventArgs<Song> args)
{
Console.WriteLine($"Drag Start: {args.Source.Item.Name}");
}
private void OnDragEnd(FluentDragEventArgs<Song> args)
{
var dropSong = _lastEnteredSong ??AbandonedMutexException
Console.WriteLine($"Swapping {args.Source.Item.Name} with {args.Target.Item.Name}");
SetList = SetList!.SwapSongs(args.Source.Item, args.Target.Item);
StateHasChanged();
}
private void OnDragEnter(FluentDragEventArgs<Song> args)
{
_lastEnteredSong = args.Target.Item;
Console.WriteLine($"Drag Enter: {args.Source.Item.Name} to {args.Target.Item.Name}");
}
private void OnDragLeave(FluentDragEventArgs<Song> args)
{
Console.WriteLine($"Drag Leave: {args.Source.Item.Name} from {args.Target.Item.Name}");
}
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Components.InjectAttribute] private
#nullable restore
#line (3,9)-(3,25) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
SetListApiClient
#line default
#line hidden
#nullable disable
#nullable restore
#line (3,26)-(3,42) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
SetListApiClient
#line default
#line hidden
#nullable disable
{ get; set; }
= default!;
}
}
namespace __Blazor.SetListr.Web.Pages.SetListView
{
#line hidden
internal static class TypeInference
{
public static void CreateFluentDropZone_0<TItem>(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, global::System.String __arg0, int __seq1, global::System.Boolean __arg1, int __seq2, global::System.Boolean __arg2, int __seq3, TItem __arg3, int __seq4, global::Microsoft.AspNetCore.Components.RenderFragment __arg4)
{
__builder.OpenComponent<global::Microsoft.FluentUI.AspNetCore.Components.FluentDropZone<TItem>>(seq);
__builder.AddComponentParameter(__seq0, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDropZone<TItem>.
#nullable restore
#line (27,37)-(27,39) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
Id
#line default
#line hidden
#nullable disable
), __arg0);
__builder.AddComponentParameter(__seq1, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDropZone<TItem>.
#nullable restore
#line (27,62)-(27,71) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
Draggable
#line default
#line hidden
#nullable disable
), __arg1);
__builder.AddComponentParameter(__seq2, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDropZone<TItem>.
#nullable restore
#line (27,79)-(27,88) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
Droppable
#line default
#line hidden
#nullable disable
), __arg2);
__builder.AddComponentParameter(__seq3, nameof(global::Microsoft.FluentUI.AspNetCore.Components.FluentDropZone<TItem>.
#nullable restore
#line (27,96)-(27,100) "/home/anonymous/src/SetListr/SetListr.Web/Pages/SetListView.razor"
Item
#line default
#line hidden
#nullable disable
), __arg3);
__builder.AddComponentParameter(__seq4, "ChildContent", __arg4);
__builder.CloseComponent();
}
}
}
#pragma warning restore 1591
// 835
Projected Html document:
Expand
////////////////////// Projected Html as seen by extension ///////////////////////
/*~*/ /*~~~~~~~~~~~*/
/*~~*/ /*~~~~~~~~~~~~~~~~~~~~*/
/*~~~*/ /*~~~~~~~~~~~~*/ /*~~~~~~~~~~~~*/
~~~ /*~~~~*/ ~~ /*~*/
~
<FluentProgressRing></FluentProgressRing>
~
/**/
~
<FluentHeader>
/*~~~~~~~~~*/
<FluentDivider />
/*~~~~~~~~~~~~~*/
</FluentHeader>
<FluentDragContainer
TItem="/**/"
OnDragStart="/*~~~~~~~*/"
OnDragEnd="/*~~~~~*/"
OnDragEnter="/*~~~~~~~*/"
OnDragLeave="/*~~~~~~~*/">
<FluentGrid AdaptiveRendering="/**/" >
/*~~~~*/ /**/ /**/ ~~ /*~~~~~~~~~~*/
~
<FluentGridItem xs="~~">
<FluentDropZone Id="/*~~~~~~~~~~~~~~~*/" Draggable="/**/" Droppable="/**/" Item="/*~*/">
<FluentCard>
/*~~~~~~*/
/*~~~~~~~~~~*/
</FluentCard>
</FluentDropZone>
</FluentGridItem>
~
</FluentGrid>
</FluentDragContainer>
~
/*~*/ ~
/*~~~~~~~*/ /*~~*/ /*~~~~*/ /*~~*/ ~~ ~ /**/ /**/ ~
/*~~~~*/ /*~~~*/ ~ /**/ /**/ ~
/*~~~~~~~~~~~~~*/ /*~*/ ~ /**/ /**/ ~
/*~*/ /*~~~~~~~~~~~~~*/
/*~~~~~*/ /*~~~~*/ /*~*/ /**/ /*~~~~~~~~~~~~~~~~*/
~
~~ /*~~~~~~~~~~~~~~*/ ~~~ ~~~ /*~~~~*/
~
/*~~~*/ ~ /*~*/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
~~ /*~~~~*/ ~~ ~~~ /*~*/
/*~*/ ~ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
~
~
/*~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~*/
~
/*~~~~~~~~~~~~~~~~~~~~*/ /*~~*/ /*~~~~~~~~~~~~~~~~~~~~~~*/
~
/*~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~*/
~
~~~ /*~~~~*/ ~ /*~~~~~~~~~~~~*/ /*~~~~~~~~~~~~~~~~~~~~~*/
/*~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~~~~~~~~~~~~~~~~~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~*/
/*~~~*/ ~ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~~~~~~~~~~~~~~*/
/*~~~~~~~~~~~~~~*/
~
/*~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~*/
~
/*~~~~~~~~~~~~*/ ~ /*~~~~~~~~~~~~~*/
/*~~~~~~~~~~~~~~~~~~~~*/ /*~~*/ /*~~~~~~~~~~~~~~~~~~~*/ ~~ /*~~~~~~~~~~~~~~~~~~~~~~*/
~
/*~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~*/
~
/*~~~~~~~~~~~~~~~~~~~~*/ /*~~*/ /*~~~~~~~~~~~~~~~~~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~*/
~
~
////////////////////// Projected Html as seen by extension ///////////////////////
/*~*/ /*~~~~~~~~~~~*/
/*~~*/ /*~~~~~~~~~~~~~~~~~~~~*/
/*~~~*/ /*~~~~~~~~~~~~*/ /*~~~~~~~~~~~~*/
~~~ /*~~~~*/ ~~ /*~*/
~
<FluentProgressRing></FluentProgressRing>
~
/**/
~
<FluentHeader>
/*~~~~~~~~~*/
<FluentDivider />
/*~~~~~~~~~~~~~*/
</FluentHeader>
<FluentDragContainer
TItem="/**/"
OnDragStart="/*~~~~~~~*/"
OnDragEnd="/*~~~~~*/"
OnDragEnter="/*~~~~~~~*/"
OnDragLeave="/*~~~~~~~*/">
<FluentGrid AdaptiveRendering="/**/" >
/*~~~~*/ /**/ /**/ ~~ /*~~~~~~~~~~*/
~
<FluentGridItem xs="~~">
<FluentDropZone Id="/*~~~~~~~~~~~~~~~*/" Draggable="/**/" Droppable="/**/" Item="/*~*/">
<FluentCard>
/*~~~~~~*/
/*~~~~~~~~~~*/
</FluentCard>
</FluentDropZone>
</FluentGridItem>
~
</FluentGrid>
</FluentDragContainer>
~
/*~*/ ~
/*~~~~~~~*/ /*~~*/ /*~~~~*/ /*~~*/ ~~ ~ /**/ /**/ ~
/*~~~~*/ /*~~~*/ ~ /**/ /**/ ~
/*~~~~~~~~~~~~~*/ /*~*/ ~ /**/ /**/ ~
/*~*/ /*~~~~~~~~~~~~~*/
/*~~~~~*/ /*~~~~*/ /*~*/ /**/ /*~~~~~~~~~~~~~~~~*/
~
~~ /*~~~~~~~~~~~~~~*/ ~~~ ~~~ /*~~~~*/
~
/*~~~*/ ~ /*~*/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
~~ /*~~~~*/ ~~ ~~~ /*~*/
/*~*/ ~ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
~
~
/*~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~*/
~
/*~~~~~~~~~~~~~~~~~~~~*/ /*~~*/ /*~~~~~~~~~~~~~~~~~~~~~~*/
~
/*~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~*/
~
~~~ /*~~~~*/ ~ /*~~~~~~~~~~~~*/ /*~~~~~~~~~~~~~~~~~~~~~*/
/*~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~~~~~~~~~~~~~~~~~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~*/
/*~~~*/ ~ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~~~~~~~~~~~~~~*/
/*~~~~~~~~~~~~~~*/
~
/*~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~*/
~
/*~~~~~~~~~~~~*/ ~ /*~~~~~~~~~~~~~*/
/*~~~~~~~~~~~~~~~~~~~~*/ /*~~*/ /*~~~~~~~~~~~~~~~~~~~*/ ~~ /*~~~~~~~~~~~~~~~~~~~~~~*/
~
/*~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ /*~*/
~
/*~~~~~~~~~~~~~~~~~~~~*/ /*~~*/ /*~~~~~~~~~~~~~~~~~~~*/ /**/ /*~~~~~~~~~~~~~~~~~~~~~~*/
~
~
// 835
Machine information
VSCode version: 1.96.2
Razor.VSCode version: 2.61.27
dotnet --info
Expand
.NET SDK:
Version: 9.0.101
Commit: f303476b53
Workload version: 9.0.100-manifests.6bf02610
MSBuild version: 17.12.12+f303476b5
Runtime Environment:
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/dotnet/sdk/9.0.101/
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.0
Architecture: x64
Commit: f303476b53
.NET SDKs installed:
9.0.101 [/usr/lib/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Extensions
Expand
Extension | Author | Version |
---|---|---|
azure-pipelines | ms-azure-devops | 1.249.0 |
copilot | GitHub | 1.256.0 |
copilot-chat | GitHub | 0.23.2 |
csdevkit | ms-dotnettools | 1.15.32 |
csharp | ms-dotnettools | 2.61.27 |
EditorConfig | EditorConfig | 0.16.4 |
prettier-vscode | esbenp | 11.0.0 |
remote-containers | ms-vscode-remote | 0.394.0 |
vscode-docker | ms-azuretools | 1.29.3 |
vscode-dotnet-runtime | ms-dotnettools | 2.2.3 |
Activity