Files
Andre Beging 027a36ce17 Refactor interaction and user deletion logic
Consolidated repeated methods for interaction/user deletion into reusable components to improve maintainability. Introduced a `ConfirmDialog` for consistent confirmation UI and streamlined associated logic across pages. Removed redundant methods and enhanced admin-specific page security checks.
2025-03-28 23:55:12 +01:00

30 lines
859 B
Plaintext

<Blazorise.ThemeProvider Theme="@_theme">
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(DefaultLayout)">
</AuthorizeRouteView>
<FocusOnNavigate RouteData="@routeData" Selector="h1"/>
</Found>
<NotFound>
<PageTitle>Not found</PageTitle>
<LayoutView Layout="@typeof(DefaultLayout)">
<p role="alert">Sorry, there's nothing at this address.</p>
</LayoutView>
</NotFound>
</Router>
<ModalProvider Centered="true" />
</Blazorise.ThemeProvider>
@code{
private readonly Theme _theme = new()
{
ColorOptions = new()
{
Primary = "#64ae24",
Secondary = "#533a20",
},
};
}