diff --git a/Docs/Bones Docs/.obsidian/workspace.json b/Docs/Bones Docs/.obsidian/workspace.json index 517f8e4..b0cddc9 100644 --- a/Docs/Bones Docs/.obsidian/workspace.json +++ b/Docs/Bones Docs/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "Development/Deployment of Frontend on Cloudflare Pages.md", + "file": "Development/Deployment of Backend on Fedora Server.md", "mode": "source", "source": true }, "icon": "lucide-file", - "title": "Deployment of Frontend on Cloudflare Pages" + "title": "Deployment of Backend on Fedora Server" } } ] @@ -166,8 +166,8 @@ }, "active": "63538227fcb0a17d", "lastOpenFiles": [ - "Development/Deployment of Backend on Fedora Server.md", "Development/Deployment of Frontend on Cloudflare Pages.md", + "Development/Deployment of Backend on Fedora Server.md", "Development/Feature Areas/Account Management.md", "Development/Overview.md", "Development/Feature Areas/Asset Management.md", diff --git a/Frontend/Bones.WebUI.Leaflet/Models/GridLayer.cs b/Frontend/Bones.WebUI.Leaflet/Models/GridLayer.cs index 94db391..6566f64 100644 --- a/Frontend/Bones.WebUI.Leaflet/Models/GridLayer.cs +++ b/Frontend/Bones.WebUI.Leaflet/Models/GridLayer.cs @@ -36,5 +36,5 @@ public abstract class GridLayer : Layer /// /// If set, tiles will only be loaded inside the set. /// - public ValueTuple? Bounds { get; set; } + public (LatLon, LatLon)? Bounds { get; set; } } \ No newline at end of file diff --git a/Frontend/Bones.WebUI/Components/Auth/RedirectToLogin.razor b/Frontend/Bones.WebUI/Components/Auth/RedirectToLogin.razor index 0ae6588..146e87c 100644 --- a/Frontend/Bones.WebUI/Components/Auth/RedirectToLogin.razor +++ b/Frontend/Bones.WebUI/Components/Auth/RedirectToLogin.razor @@ -1,5 +1,3 @@ - - @code { /// protected override void OnInitialized() @@ -12,6 +10,6 @@ loginUrl += $"?returnUrl={Uri.EscapeDataString(baseRelativePath)}"; } - NavManager.NavigateTo(loginUrl, true); + NavManager.NavigateTo(loginUrl, false); } } \ No newline at end of file diff --git a/Frontend/Bones.WebUI/Infrastructure/BonesAuthenticationStateProvider.cs b/Frontend/Bones.WebUI/Infrastructure/BonesAuthenticationStateProvider.cs index 9e73783..9302570 100644 --- a/Frontend/Bones.WebUI/Infrastructure/BonesAuthenticationStateProvider.cs +++ b/Frontend/Bones.WebUI/Infrastructure/BonesAuthenticationStateProvider.cs @@ -18,17 +18,15 @@ public override async Task GetAuthenticationStateAsync() if (currentUser == null) { - return new(new(new ClaimsIdentity())); + return new(new()); } Claim[] claims = [ new(BonesClaimTypes.User.EMAIL, currentUser.Email ?? string.Empty), new(BonesClaimTypes.User.DISPLAY_NAME, currentUser.DisplayName ?? string.Empty) ]; - - AuthenticationState authenticationState = new(new(new ClaimsIdentity(claims, authenticationType: nameof(BonesAuthenticationStateProvider)))); - - return authenticationState; + + return new(new(new ClaimsIdentity(claims, authenticationType: nameof(BonesAuthenticationStateProvider)))); } /// diff --git a/Frontend/Bones.WebUI/Pages/Account/ChangeEmailPage.razor b/Frontend/Bones.WebUI/Pages/Account/ChangeEmailPage.razor index c855e3d..e3f99bd 100644 --- a/Frontend/Bones.WebUI/Pages/Account/ChangeEmailPage.razor +++ b/Frontend/Bones.WebUI/Pages/Account/ChangeEmailPage.razor @@ -1,5 +1,5 @@ @attribute [Route(FrontEndUrls.Account.CHANGE_EMAIL)] -@layout MainLayout +@layout AuthenticatedLayout

ChangeEmailPage

diff --git a/Frontend/Bones.WebUI/Pages/Account/ChangePasswordPage.razor b/Frontend/Bones.WebUI/Pages/Account/ChangePasswordPage.razor index 143240e..3fa5332 100644 --- a/Frontend/Bones.WebUI/Pages/Account/ChangePasswordPage.razor +++ b/Frontend/Bones.WebUI/Pages/Account/ChangePasswordPage.razor @@ -1,5 +1,5 @@ @attribute [Route(FrontEndUrls.Account.CHANGE_PASSWORD)] -@layout MainLayout +@layout AuthenticatedLayout

ChangePasswordPage

diff --git a/Frontend/Bones.WebUI/Pages/Account/MyProfilePage.razor b/Frontend/Bones.WebUI/Pages/Account/MyProfilePage.razor index 11e5aef..b071861 100644 --- a/Frontend/Bones.WebUI/Pages/Account/MyProfilePage.razor +++ b/Frontend/Bones.WebUI/Pages/Account/MyProfilePage.razor @@ -1,4 +1,5 @@ @attribute [Route(FrontEndUrls.Account.MY_PROFILE)] +@layout AuthenticatedLayout

MyProfile

diff --git a/Frontend/Bones.WebUI/Pages/RequiresLogin.razor b/Frontend/Bones.WebUI/Pages/RequiresLogin.razor index 146bf99..e88b187 100644 --- a/Frontend/Bones.WebUI/Pages/RequiresLogin.razor +++ b/Frontend/Bones.WebUI/Pages/RequiresLogin.razor @@ -1,5 +1,5 @@ @page "/RequiresLogin" -@layout MainLayout +@layout AuthenticatedLayout

RequiresLogin

diff --git a/Frontend/Bones.WebUI/Pages/SystemAdmin/SysAdminDashboard.razor b/Frontend/Bones.WebUI/Pages/SystemAdmin/SysAdminDashboard.razor index e11323d..5d9cada 100644 --- a/Frontend/Bones.WebUI/Pages/SystemAdmin/SysAdminDashboard.razor +++ b/Frontend/Bones.WebUI/Pages/SystemAdmin/SysAdminDashboard.razor @@ -1,5 +1,5 @@ @attribute [Route(FrontEndUrls.SystemAdmin.DASHBOARD)] -@layout MainLayout +@layout AuthenticatedLayout

SysAdminDashboard

diff --git a/Frontend/Bones.WebUI/Pages/TestMapPage.razor b/Frontend/Bones.WebUI/Pages/TestMapPage.razor index 0b5808a..a565a66 100644 --- a/Frontend/Bones.WebUI/Pages/TestMapPage.razor +++ b/Frontend/Bones.WebUI/Pages/TestMapPage.razor @@ -1,6 +1,6 @@ @page "/TestMapPage" @using Bones.WebUI.Components.Leaflet -@layout MainLayout +@layout AuthenticatedLayout Test Map Page Test Map Page