Added admin page navigation

This commit is contained in:
2025-01-14 12:46:47 +01:00
parent f0bc9e23b8
commit 313f6e046a
12 changed files with 211 additions and 42 deletions

View File

@@ -1,8 +1,8 @@
using HopFrame.Testing;
using Microsoft.FluentUI.AspNetCore.Components;
using HopFrame.Testing.Components;
using HopFrame.Testing.Models;
using HopFrame.Web;
using HopFrame.Web.Components.Pages;
using Microsoft.EntityFrameworkCore;
var builder = WebApplication.CreateBuilder(args);
@@ -17,8 +17,8 @@ builder.Services.AddDbContext<DatabaseContext>(options => {
});
builder.Services.AddHopFrame(options => {
options.AddDbContext<DatabaseContext>()
.Table<User>(table => table.Ignore());
options.DisplayUserInfo(false);
options.AddDbContext<DatabaseContext>();
});
var app = builder.Build();
@@ -36,6 +36,7 @@ app.UseAntiforgery();
app.MapStaticAssets();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
.AddInteractiveServerRenderMode()
.AddAdditionalAssemblies(typeof(HopFrameHome).Assembly);
app.Run();