blob: 9b90ef4fa31a644ae4e3dd0973abe10a6bde10d3 (
plain) (
blame)
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
26
27
28
29
30
31
32
33
34
35
36
|
@page "/Alarm"
<h1>Alarm</h1>
<br/><br/>
@if (Exception != null) {
<div class="alert alert-danger">
<strong>Error:</strong><br/>
<pre>
@Exception
</pre>
</div>
}
@if (Result != null) {
<div class="alert alert-success">
<strong>Result:</strong><br/>
<pre>
@Result.ToJson(indent: true)
</pre>
</div>
}
@code {
private Exception? Exception { get; set; }
private object? Result { get; set; }
protected override async Task OnInitializedAsync() {
if (App.Client is null) {
NavigationManager.NavigateTo("/Auth");
return;
}
}
}
|