Files
GmRelayBot/src/GmRelay.Web/Components/Routes.razor
T
Toutsu 116f1f5b0e
Deploy Telegram Bot / build-and-push (push) Failing after 3m5s
Deploy Telegram Bot / deploy (push) Has been skipped
feat: translate web interface to Russian
2026-04-17 15:40:35 +03:00

21 lines
851 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@using Microsoft.AspNetCore.Components.Authorization
<CascadingAuthenticationState>
<Router AppAssembly="typeof(Program).Assembly">
<Found Context="routeData">
<AuthorizeRouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)">
<NotAuthorized>
@if (context.User.Identity?.IsAuthenticated != true)
{
<RedirectToLogin />
}
else
{
<p role="alert">У вас нет прав для доступа к этому ресурсу.</p>
}
</NotAuthorized>
</AuthorizeRouteView>
<FocusOnNavigate RouteData="routeData" Selector="h1" />
</Found>
</Router>
</CascadingAuthenticationState>