Refactoring, database structure changed

This commit is contained in:
2025-03-03 00:56:32 +01:00
Unverified
parent d3805ef3db
commit c603c41c0b
913 changed files with 21764 additions and 32775 deletions

View File

@@ -0,0 +1,50 @@
using System.Net;
using Blazorise.Snackbar;
using Microsoft.AspNetCore.Components;
using WatchIt.Website.Clients;
using WatchIt.Website.Components.Layout;
using WatchIt.Website.Services.Authentication;
using WatchIt.Website.Services.Tokens;
namespace WatchIt.Website.Components.Pages;
public partial class AuthPage
{
#region SERVICES
[Inject] public NavigationManager NavigationManager { get; set; } = null!;
#endregion
#region PARAMETERS
[SupplyParameterFromQuery(Name = "redirect_to")]
private string RedirectTo { get; set; } = "/";
#endregion
#region FIELDS
private bool _isSingUp;
#endregion
#region METHODS
protected override async Task OnFirstRenderAsync()
{
Base.CustomBackground = null;
if (Base.AuthorizedAccount is not null)
{
NavigationManager.NavigateTo(WebUtility.UrlDecode(RedirectTo));
}
}
#endregion
}