@page "/person/{Address}" @inject State State @inject IJSRuntime JS

@Address

@Address
@if (bio == null) {

Getting Bio...

} else { @bio }
@(Address).omg.lol Status.lol Some.pics @if(now != null){ /Now }
Open in browser
@if(Editable){ }
@if(now != null){
Open in browser
}
@code { [Parameter] public string Address { get; set; } public string ProfileUrl { get => $"https://{Address}.omg.lol/"; } private EditPicDialog? editPicDialog { get; set; } public ExternalPageComponent? NowPage { get; set; } public ExternalPageComponent? ProfilePage { get; set; } private bool Editable { get => Address == State.SelectedAddressName; } private MarkupString? bio; private NowData? now; protected override async Task OnInitializedAsync() { bio = await State.GetBio(Address); List garden = await State.GetNowGarden(); now = garden.FirstOrDefault(n => n.Address == Address); } private async Task ReloadNow() { if(NowPage != null) { await NowPage.Reload(); await ResizeIframes(); } } private async Task ReloadProfile() { if (ProfilePage != null) { await ProfilePage.Reload(); await ResizeIframes(); } } private async Task ResizeIframes() { await JS.InvokeVoidAsync("iframeResize", new { license = "GPLv3" }); } }