diff --git a/Moonlight/Shared/Components/Forms/SmartForm.razor b/Moonlight/Shared/Components/Forms/SmartForm.razor index e71c4030..f78d4fa5 100644 --- a/Moonlight/Shared/Components/Forms/SmartForm.razor +++ b/Moonlight/Shared/Components/Forms/SmartForm.razor @@ -15,7 +15,7 @@ { if (ErrorMessages.Any()) { -
+
@foreach (var msg in ErrorMessages) { @(msg) diff --git a/Moonlight/Shared/Components/Navigations/CommunityNavigation.razor b/Moonlight/Shared/Components/Navigations/CommunityNavigation.razor index 4000e033..8a428389 100644 --- a/Moonlight/Shared/Components/Navigations/CommunityNavigation.razor +++ b/Moonlight/Shared/Components/Navigations/CommunityNavigation.razor @@ -10,7 +10,7 @@
- Announcements + News
diff --git a/Moonlight/Shared/Components/Partials/SoftErrorHandler.razor b/Moonlight/Shared/Components/Partials/SoftErrorHandler.razor index 4668a9ea..e4504dc9 100644 --- a/Moonlight/Shared/Components/Partials/SoftErrorHandler.razor +++ b/Moonlight/Shared/Components/Partials/SoftErrorHandler.razor @@ -33,7 +33,7 @@ else { foreach (var errorMessage in ErrorMessages) { -
+
@errorMessage
} @@ -65,6 +65,10 @@ else { Exception = exception; Crashed = true; + + var username = IdentityService.IsSignedIn ? IdentityService.CurrentUser.Username : "Guest"; + Logger.Warn($"A crash occured in the view of the user '{username}'"); + Logger.Warn(exception); } Recover(); diff --git a/Moonlight/Shared/Components/TicketPopup/TicketPopupMain.razor b/Moonlight/Shared/Components/TicketPopup/TicketPopupMain.razor index f4411697..1227dcb8 100644 --- a/Moonlight/Shared/Components/TicketPopup/TicketPopupMain.razor +++ b/Moonlight/Shared/Components/TicketPopup/TicketPopupMain.razor @@ -3,7 +3,7 @@ @if (ViewIndex == 0) { - } diff --git a/Moonlight/Shared/Components/TicketPopup/TicketPopupOverview.razor b/Moonlight/Shared/Components/TicketPopup/TicketPopupOverview.razor index 735345f8..0441a218 100644 --- a/Moonlight/Shared/Components/TicketPopup/TicketPopupOverview.razor +++ b/Moonlight/Shared/Components/TicketPopup/TicketPopupOverview.razor @@ -51,6 +51,11 @@ @(Formatter.FormatAgoFromDateTime(ticket.CreatedAt))
+ + if (ticket.Id != Tickets.Last().Id) + { + + } } } else diff --git a/Moonlight/Shared/Views/Account/Index.razor b/Moonlight/Shared/Views/Account/Index.razor index 8ec07b5b..bf28559e 100644 --- a/Moonlight/Shared/Views/Account/Index.razor +++ b/Moonlight/Shared/Views/Account/Index.razor @@ -29,12 +29,12 @@
-

+
Your avatar -

- - PNG or JPG no bigger than 1000px wide and tall. - +
+
+ PNG or JPG no bigger than 1000px wide and tall +
diff --git a/Moonlight/Shared/Views/Account/Payments.razor b/Moonlight/Shared/Views/Account/Payments.razor index 72a0d5a1..9bf4dd2a 100644 --- a/Moonlight/Shared/Views/Account/Payments.razor +++ b/Moonlight/Shared/Views/Account/Payments.razor @@ -16,7 +16,7 @@
-
+

Redeem gift code

@@ -29,7 +29,7 @@
-
+
@@ -61,7 +61,7 @@ diff --git a/Moonlight/Shared/Views/Account/Security.razor b/Moonlight/Shared/Views/Account/Security.razor index 98b6cc76..1f4f2936 100644 --- a/Moonlight/Shared/Views/Account/Security.razor +++ b/Moonlight/Shared/Views/Account/Security.razor @@ -1,6 +1,5 @@ @page "/account/security" -@using Moonlight.App.Models.Forms @using Moonlight.App.Services @using Moonlight.App.Services.Users @using OtpNet @@ -17,6 +16,9 @@
+
+ Change password +
@@ -45,44 +47,49 @@
@if (IdentityService.Flags[UserFlag.TotpEnabled]) { -
- Your account is secured with 2fa -
- +
+
+ Your account is secured with 2fa +
+
+
} else if (!IdentityService.Flags[UserFlag.TotpEnabled] && IdentityService.CurrentUser.TotpKey != null) { -
-
-

- Scan the qr code and enter the code generated by the app you have scanned it in -

+
+
+ Scan the qr code and enter the code generated by the app you have scanned it in +
+
@{ QRCodeGenerator qrGenerator = new QRCodeGenerator(); var qrCodeData = qrGenerator.CreateQrCode - ( - $"otpauth://totp/{Uri.EscapeDataString(IdentityService.CurrentUser.Email)}?secret={IdentityService.CurrentUser.TotpKey}&issuer={Uri.EscapeDataString("Moonlight")}", - QRCodeGenerator.ECCLevel.Q - ); + ( + $"otpauth://totp/{Uri.EscapeDataString(IdentityService.CurrentUser.Email)}?secret={IdentityService.CurrentUser.TotpKey}&issuer={Uri.EscapeDataString("Moonlight")}", + QRCodeGenerator.ECCLevel.Q + ); PngByteQRCode qrCode = new PngByteQRCode(qrCodeData); byte[] qrCodeAsPngByteArr = qrCode.GetGraphic(5); var base64 = Convert.ToBase64String(qrCodeAsPngByteArr); }
- QR Code + QR Code
-
- @(IdentityService.CurrentUser.TotpKey) +
+ @(IdentityService.CurrentUser.TotpKey)