From 7af23518e557093afcc7d4c7a9d2aadb64035599 Mon Sep 17 00:00:00 2001 From: Penry Date: Thu, 28 May 2026 23:48:03 +0200 Subject: [PATCH] Added MockUp Code for the PrivateEntity Cards --- .../PrivateList/Components/EntityCard.razor | 87 ++++++++++++++++++- .../Pages/PrivateList/PrivateList.razor | 6 +- 2 files changed, 87 insertions(+), 6 deletions(-) diff --git a/CouchLog/Components/Pages/PrivateList/Components/EntityCard.razor b/CouchLog/Components/Pages/PrivateList/Components/EntityCard.razor index 7cecc62..1b5b8d4 100644 --- a/CouchLog/Components/Pages/PrivateList/Components/EntityCard.razor +++ b/CouchLog/Components/Pages/PrivateList/Components/EntityCard.razor @@ -1,10 +1,91 @@ @using CouchLog.Data - - @PrivateEntity.GlobalEntity.Title - + + + + + + + + + + + + + + @PrivateEntity.GlobalEntity.Title + + Bearbeiten + Entfernen + + + + + + + + + + + + + + + + + + + + + + + + + Details + + + + + + + @code { [Parameter] public PrivateEntity PrivateEntity { get; set; } = null!; + [Parameter] public List UserWatchStatuses { get; set; } = null!; } diff --git a/CouchLog/Components/Pages/PrivateList/PrivateList.razor b/CouchLog/Components/Pages/PrivateList/PrivateList.razor index 4422a10..e1e4602 100644 --- a/CouchLog/Components/Pages/PrivateList/PrivateList.razor +++ b/CouchLog/Components/Pages/PrivateList/PrivateList.razor @@ -7,7 +7,7 @@ @using Microsoft.AspNetCore.Identity @using Microsoft.EntityFrameworkCore -@inject ApplicationDbContext CouchLogDB +@inject ApplicationDbContext CouchLogDb @inject UserManager UserManager @inject AuthenticationStateProvider AuthenticationStateProvider @inject NavigationManager NavigationManager @@ -80,7 +80,7 @@ if (_appUser != null) { - _privateEntities = await CouchLogDB.PrivateEntities + _privateEntities = await CouchLogDb.PrivateEntities .Where(x => x.UserId == _appUser.Id) .Include(x => x.GlobalEntity) .Include(x => x.UserWatchStatus) @@ -88,7 +88,7 @@ .OrderByDescending(entity => entity.LastChange ?? entity.CreationTime) .ToListAsync(); - _userWatchStatuses = await CouchLogDB.UserWatchStatuses.OrderByDescending(entity => entity.Id).ToListAsync(); + _userWatchStatuses = await CouchLogDb.UserWatchStatuses.OrderByDescending(entity => entity.Id).ToListAsync(); } } } \ No newline at end of file