@page "/Tools/ViewAccountData"
@using ArcaneLibs.Extensions
@using LibMatrix
View account data
@globalAccountData?.Events.ToJson(ignoreNull: true)
@foreach (var (key, value) in perRoomAccountData) {
@key
@value?.Events.ToJson(ignoreNull: true)
}
@code {
EventList? globalAccountData;
Dictionary perRoomAccountData = new();
protected override async Task OnInitializedAsync() {
var hs = await RMUStorage.GetCurrentSessionOrNavigate();
if (hs is null) return;
perRoomAccountData = await hs.EnumerateAccountDataPerRoom();
globalAccountData = await hs.EnumerateAccountData();
StateHasChanged();
}
}