Add redirection to login

This commit is contained in:
2025-10-07 09:48:24 +09:00
parent c29f7ef7dd
commit 695fea54b4
3 changed files with 45 additions and 31 deletions

View File

@ -18,37 +18,39 @@
<PageTitle>Тестирование экспорта</PageTitle>
<RadzenSplitter Orientation="Orientation.Vertical" Style="height: 100%; border: 1px solid rgba(0,0,0,.08);">
<RadzenSplitterPane Size="200px">
<div style="height: 100%;overflow: auto;">
<RadzenCardGroup Responsive="true">
<RadzenCard Variant="Variant.Filled">
<RadzenStack JustifyContent="JustifyContent.SpaceBetween" Gap="1rem">
<RadzenStack Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Normal">
<RadzenText TextStyle="TextStyle.H6">Сервис nsi</RadzenText>
<RadzenButton Click=@(() => OnNsiExportItem1Click()) Disabled=@inputDisabled Text="Экспорт НСИ 1" ButtonStyle="ButtonStyle.Primary" />
<AuthorizeView>
<RadzenSplitter Orientation="Orientation.Vertical" Style="height: 100%; border: 1px solid rgba(0,0,0,.08);">
<RadzenSplitterPane Size="200px">
<div style="height: 100%;overflow: auto;">
<RadzenCardGroup Responsive="true">
<RadzenCard Variant="Variant.Filled">
<RadzenStack JustifyContent="JustifyContent.SpaceBetween" Gap="1rem">
<RadzenStack Orientation="Orientation.Vertical" AlignItems="AlignItems.Start" JustifyContent="JustifyContent.Normal">
<RadzenText TextStyle="TextStyle.H6">Сервис nsi</RadzenText>
<RadzenButton Click=@(() => OnNsiExportItem1Click()) Disabled=@inputDisabled Text="Экспорт НСИ 1" ButtonStyle="ButtonStyle.Primary" />
</RadzenStack>
</RadzenStack>
</RadzenStack>
</RadzenCard>
</RadzenCardGroup>
</div>
</RadzenSplitterPane>
<RadzenSplitterPane>
<RadzenTabs RenderMode="TabRenderMode.Client" Style="height: 100%;">
<Tabs>
<RadzenTabsItem Text="Запрос">
<RadzenTextArea @ref=@messageTextArea Value=@messageBody Disabled="true" ReadOnly="true" Style="resize: none; white-space: pre; overflow-wrap: normal; overflow-x: auto;" class="rz-w-stretch" />
</RadzenTabsItem>
<RadzenTabsItem Text="Результат">
<RadzenTextArea @ref=@responseTextArea Value=@responseBody Disabled="true" ReadOnly="true" Style="resize: none; white-space: pre; overflow-wrap: normal; overflow-x: auto;" class="rz-w-stretch" />
</RadzenTabsItem>
</Tabs>
</RadzenTabs>
</RadzenSplitterPane>
<RadzenSplitterPane Size="auto" Resizable="false">
<EventConsole @ref=@console />
</RadzenSplitterPane>
</RadzenSplitter>
</RadzenCard>
</RadzenCardGroup>
</div>
</RadzenSplitterPane>
<RadzenSplitterPane>
<RadzenTabs RenderMode="TabRenderMode.Client" Style="height: 100%;">
<Tabs>
<RadzenTabsItem Text="Запрос">
<RadzenTextArea @ref=@messageTextArea Value=@messageBody Disabled="true" ReadOnly="true" Style="resize: none; white-space: pre; overflow-wrap: normal; overflow-x: auto;" class="rz-w-stretch" />
</RadzenTabsItem>
<RadzenTabsItem Text="Результат">
<RadzenTextArea @ref=@responseTextArea Value=@responseBody Disabled="true" ReadOnly="true" Style="resize: none; white-space: pre; overflow-wrap: normal; overflow-x: auto;" class="rz-w-stretch" />
</RadzenTabsItem>
</Tabs>
</RadzenTabs>
</RadzenSplitterPane>
<RadzenSplitterPane Size="auto" Resizable="false">
<EventConsole @ref=@console />
</RadzenSplitterPane>
</RadzenSplitter>
</AuthorizeView>
@code {
EventConsole console = default!;