Started working on frontend
All checks were successful
HopFrame CI / build (push) Successful in 44s
HopFrame CI / test (push) Successful in 52s

This commit is contained in:
2026-02-25 16:33:46 +01:00
parent d2082ef33c
commit ff2634ff41
27 changed files with 558 additions and 26 deletions

View File

@@ -0,0 +1,27 @@
using HopFrame.Core.Configuration;
using HopFrame.Core.Services;
using Microsoft.AspNetCore.Components;
namespace HopFrame.Web.Components.Pages;
public partial class TablePage(IConfigAccessor accessor, NavigationManager navigator) : CancellableComponent {
private const int PerPage = 25;
[Parameter]
public string TableRoute { get; set; } = null!;
public TableConfig Table { get; set; } = null!;
protected override void OnInitialized() {
base.OnInitialized();
var table = accessor.GetTableByRoute(TableRoute);
if (table is null) {
navigator.NavigateTo("/admin", true);
return;
}
Table = table;
}
}