Added custom views

This commit is contained in:
2025-02-01 16:15:28 +01:00
parent bfea4e9cff
commit 2256a59f9a
9 changed files with 246 additions and 47 deletions

View File

@@ -1,11 +1,8 @@
using System.Collections;
using HopFrame.Core.Events;
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);
@@ -76,8 +73,13 @@ builder.Services.AddHopFrame(options => {
})*/;
context.Table<Post>()
.SetOrderIndex(-1);
.SetOrderIndex(-1)
.Ignore(true);
});
options.AddCustomView("Counter", "/counter")
.SetDescription("A custom view")
.SetPolicy("counter.view");
});
var app = builder.Build();