minor fixes

This commit is contained in:
Gordon Pedersen 2024-06-11 13:55:40 +10:00
parent 3f1531a934
commit 831dc0d213
3 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@
</Virtualize> </Virtualize>
@code { @code {
private List<string> messages = new List<string>(); private List<MarkupString> messages = new List<MarkupString>();
protected override async Task OnInitializedAsync() { protected override async Task OnInitializedAsync() {
//await Shell.Current.GoToAsync(nameof(EphemeralWebPage)); //await Shell.Current.GoToAsync(nameof(EphemeralWebPage));

View file

@ -1,7 +1,7 @@
@inject IJSRuntime JS @inject IJSRuntime JS
<article class="no-padding"> <article class="no-padding">
<img src="@Pic.Url"> <img src="@Pic.Url" loading="lazy">
<div class="padding"> <div class="padding">
<nav> <nav>
<a class="author" href="/person/@Pic.Address#pics"> <a class="author" href="/person/@Pic.Address#pics">

View file

@ -151,7 +151,7 @@ namespace Neighbourhood.omg.lol {
public async Task<List<NowData>?> NowGarden() => public async Task<List<NowData>?> NowGarden() =>
(await Get<NowResponseData>($"/now/garden"))?.Garden ?? new List<NowData>(); (await Get<NowResponseData>($"/now/garden"))?.Garden ?? new List<NowData>();
public async Task<List<string>> Ephemeral() { public async Task<List<MarkupString>> Ephemeral() {
List<string> notes = new List<string>(); List<string> notes = new List<string>();
Uri Uri = new Uri($"https://eph.emer.al/"); Uri Uri = new Uri($"https://eph.emer.al/");
try { try {
@ -166,7 +166,7 @@ namespace Neighbourhood.omg.lol {
catch (Exception ex) { catch (Exception ex) {
Debug.WriteLine(ex); Debug.WriteLine(ex);
} }
return notes; return notes.Select(s => (MarkupString)s).ToList();
} }
public async Task<string?> OAuth(string code, string client_id, string client_secret, string redirect_uri) { public async Task<string?> OAuth(string code, string client_id, string client_secret, string redirect_uri) {