From e025a2509a1f2a59549726758c53582e43aea931 Mon Sep 17 00:00:00 2001 From: Xian55 <367101+Xian55@users.noreply.github.com> Date: Tue, 24 Dec 2024 17:42:58 +0100 Subject: [PATCH] Frontend: Removed MatBlazor Frontend: Added Blazor.Bootstrap Frontend: Added support for light theme and be able to switch between light and dark on demand. Frontend: Removed hacks around PathSelectorComponent. --- BlazorServer/App.razor | 35 +- Directory.Packages.props | 1 + Frontend/DependencyInjection.cs | 6 +- Frontend/Frontend.csproj | 2 +- Frontend/Pages/AddonConfiguration.razor | 94 +-- Frontend/Pages/BagChanges.razor | 22 +- Frontend/Pages/BotHeader.razor | 124 ++-- Frontend/Pages/ChangeTheme.razor | 3 + Frontend/Pages/ChatComponent.razor | 31 +- .../Pages/ClassConfigurationComponent.razor | 182 +++--- Frontend/Pages/FrameConfiguration.razor | 2 +- Frontend/Pages/GoalsComponent.razor | 120 ++-- Frontend/Pages/GoapGoalView.razor | 127 ++-- Frontend/Pages/History.razor | 2 +- Frontend/Pages/Index.razor | 68 ++- Frontend/Pages/InitButton.razor | 6 +- Frontend/Pages/ItemComponent.razor | 19 +- Frontend/Pages/LogComponent.razor | 61 +- Frontend/Pages/PathSelectorComponent.razor | 146 ++--- Frontend/Pages/RecordPath.razor | 132 +++-- Frontend/Pages/RouteComponent.razor | 81 ++- Frontend/Pages/Swag.razor | 81 +-- Frontend/Pages/TableOfComponent.razor | 64 ++- Frontend/Pages/TalentTreeComponent.razor | 52 +- Frontend/Pages/ToggleButton.razor | 6 +- Frontend/Routes.razor | 3 +- Frontend/Shared/MainLayout.razor | 135 ++++- Frontend/Shared/NavMenu.razor | 217 ------- Frontend/_Imports.razor | 4 +- .../css/bootstrap/bootstrap-dark.min.css | 1 - .../css/bootstrap/bootstrap-theme.min.css | 14 - .../css/bootstrap/bootstrap.icons.min.css | 14 - .../wwwroot/css/bootstrap/bootstrap.min.css | 7 - .../css/bootstrap/bootstrap.min.css.map | 1 - Frontend/wwwroot/css/open-iconic/FONT-LICENSE | 86 --- Frontend/wwwroot/css/open-iconic/ICON-LICENSE | 21 - Frontend/wwwroot/css/open-iconic/README.md | 114 ---- .../font/css/open-iconic-bootstrap.min.css | 1 - .../open-iconic/font/fonts/open-iconic.eot | Bin 28196 -> 0 bytes .../open-iconic/font/fonts/open-iconic.otf | Bin 20996 -> 0 bytes .../open-iconic/font/fonts/open-iconic.svg | 543 ------------------ .../open-iconic/font/fonts/open-iconic.ttf | Bin 28028 -> 0 bytes .../open-iconic/font/fonts/open-iconic.woff | Bin 14984 -> 0 bytes Frontend/wwwroot/css/site.css | 63 -- Frontend/wwwroot/script/route.js | 6 +- 45 files changed, 921 insertions(+), 1776 deletions(-) create mode 100644 Frontend/Pages/ChangeTheme.razor delete mode 100644 Frontend/Shared/NavMenu.razor delete mode 100644 Frontend/wwwroot/css/bootstrap/bootstrap-dark.min.css delete mode 100644 Frontend/wwwroot/css/bootstrap/bootstrap-theme.min.css delete mode 100644 Frontend/wwwroot/css/bootstrap/bootstrap.icons.min.css delete mode 100644 Frontend/wwwroot/css/bootstrap/bootstrap.min.css delete mode 100644 Frontend/wwwroot/css/bootstrap/bootstrap.min.css.map delete mode 100644 Frontend/wwwroot/css/open-iconic/FONT-LICENSE delete mode 100644 Frontend/wwwroot/css/open-iconic/ICON-LICENSE delete mode 100644 Frontend/wwwroot/css/open-iconic/README.md delete mode 100644 Frontend/wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css delete mode 100644 Frontend/wwwroot/css/open-iconic/font/fonts/open-iconic.eot delete mode 100644 Frontend/wwwroot/css/open-iconic/font/fonts/open-iconic.otf delete mode 100644 Frontend/wwwroot/css/open-iconic/font/fonts/open-iconic.svg delete mode 100644 Frontend/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf delete mode 100644 Frontend/wwwroot/css/open-iconic/font/fonts/open-iconic.woff diff --git a/BlazorServer/App.razor b/BlazorServer/App.razor index aee799e88..3487e7dbf 100644 --- a/BlazorServer/App.razor +++ b/BlazorServer/App.razor @@ -1,5 +1,8 @@ @using Frontend +@using Microsoft.AspNetCore.Components.Web +@using static Microsoft.AspNetCore.Components.Web.RenderMode + @inject IHostEnvironment Env @@ -10,21 +13,14 @@