Spaces:
Runtime error
Runtime error
File size: 1,146 Bytes
3dd5c9a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <CascadingAuthenticationState>
<Router AppAssembly="typeof(Program).Assembly">
<Navigating>
<LayoutView Layout="typeof(Layout.MainLayout)">
<div class="surface-panel mx-auto flex min-h-64 w-full max-w-3xl items-center justify-center p-8 text-sm font-semibold text-slate-500 dark:text-slate-300">
@AppLocalization.Text("page.loadingPage", "Loading page...")
</div>
</LayoutView>
</Navigating>
<Found Context="routeData">
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)">
<NotAuthorized>
<RedirectToLogin />
</NotAuthorized>
</AuthorizeRouteView>
<FocusOnNavigate RouteData="routeData" Selector="h1" />
</Found>
<NotFound>
<LayoutView Layout="typeof(Layout.MainLayout)">
<p class="p-8 text-center text-slate-500 font-sans">@AppLocalization.Text("page.notFound", "Page not found.")</p>
</LayoutView>
</NotFound>
</Router>
</CascadingAuthenticationState>
|