From a9183d1eaf27fbd8e7d08f720acff653584801a5 Mon Sep 17 00:00:00 2001 From: Harold Pulcher Date: Mon, 4 Dec 2023 21:41:41 -0600 Subject: [PATCH 1/3] got the web frontend up to .net 8.0 --- MrBigHead.Web/MrBigHead.Web.csproj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MrBigHead.Web/MrBigHead.Web.csproj b/MrBigHead.Web/MrBigHead.Web.csproj index 3452bc8..856b108 100644 --- a/MrBigHead.Web/MrBigHead.Web.csproj +++ b/MrBigHead.Web/MrBigHead.Web.csproj @@ -1,16 +1,16 @@  - net7.0 + net8.0 d7ece554-3987-4f6c-8100-f5b918a12cb1 - - - - - + + + + + From c10278cce5f71a3a8d591b02351a19bffa33d5af Mon Sep 17 00:00:00 2001 From: Harold Pulcher Date: Mon, 11 Dec 2023 20:34:24 -0600 Subject: [PATCH 2/3] merge --- MrBigHead.Web/MrBigHead.Web.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/MrBigHead.Web/MrBigHead.Web.csproj b/MrBigHead.Web/MrBigHead.Web.csproj index 856b108..22e99fb 100644 --- a/MrBigHead.Web/MrBigHead.Web.csproj +++ b/MrBigHead.Web/MrBigHead.Web.csproj @@ -6,6 +6,7 @@ + From 1a996d8cb79df490fc1908814f9a949a79e31cad Mon Sep 17 00:00:00 2001 From: Harold Pulcher Date: Mon, 11 Dec 2023 22:02:12 -0600 Subject: [PATCH 3/3] added in quickgrid --- MrBigHead.Web/MrBigHead.Web.csproj | 1 + MrBigHead.Web/Pages/Quips.razor | 43 +++++++++++++----------------- 2 files changed, 19 insertions(+), 25 deletions(-) diff --git a/MrBigHead.Web/MrBigHead.Web.csproj b/MrBigHead.Web/MrBigHead.Web.csproj index 22e99fb..1892b5a 100644 --- a/MrBigHead.Web/MrBigHead.Web.csproj +++ b/MrBigHead.Web/MrBigHead.Web.csproj @@ -3,6 +3,7 @@ net8.0 d7ece554-3987-4f6c-8100-f5b918a12cb1 + false diff --git a/MrBigHead.Web/Pages/Quips.razor b/MrBigHead.Web/Pages/Quips.razor index a20eb4d..0e927c0 100644 --- a/MrBigHead.Web/Pages/Quips.razor +++ b/MrBigHead.Web/Pages/Quips.razor @@ -1,4 +1,5 @@ @page "/quips" +@using Microsoft.AspNetCore.Components.QuickGrid @inject HttpClient Http

Phrases

@@ -11,37 +12,29 @@ } else { - - - - - - - - - - @foreach (var quip in sayings) - { - - - - - - } - -
MoodPhraseActions
@quip.Mood@quip.Phrase - - - -
+ + + + @if (isAdmin) + { + + + + + } + + + } @code { - private Sayings[] sayings; + private IEnumerable sayings; + PaginationState pagination = new PaginationState { ItemsPerPage = 20 }; + bool isAdmin { get; set; } = true; protected override async Task OnInitializedAsync() { - sayings = await Http.GetFromJsonAsync("https://bigheadfuncs.azurewebsites.net/api/getallphrases"); + sayings = await Http.GetFromJsonAsync>("https://bigheadfuncs.azurewebsites.net/api/getallphrases"); } public class Sayings