1 files changed, 36 insertions, 0 deletions
diff --git a/testFrontend/SafeNSound.Frontend/Pages/Alarm.razor b/testFrontend/SafeNSound.Frontend/Pages/Alarm.razor
new file mode 100644
index 0000000..9b90ef4
--- /dev/null
+++ b/testFrontend/SafeNSound.Frontend/Pages/Alarm.razor
@@ -0,0 +1,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;
+ }
+ }
+
+}
\ No newline at end of file
|