From db2c9e75b42c49a5f44d9d1ce689efda971604b6 Mon Sep 17 00:00:00 2001 From: bharathwajv Date: Sun, 22 May 2022 15:16:47 +0530 Subject: [PATCH] boilerplate contents removed --- .../Pages/Identity/Users/Users.razor.cs | 4 -- src/Client/Pages/Index.razor | 64 +------------------ src/Client/Shared/BaseLayout.razor.cs | 9 +-- src/Client/Shared/MainLayout.razor | 46 +------------ src/Client/Shared/NavMenu.razor | 2 - src/Client/wwwroot/appsettings.json | 2 +- src/Client/wwwroot/index.html | 8 ++- src/Host/.config/dotnet-tools.json | 12 ++++ 8 files changed, 24 insertions(+), 123 deletions(-) create mode 100644 src/Host/.config/dotnet-tools.json diff --git a/src/Client/Pages/Identity/Users/Users.razor.cs b/src/Client/Pages/Identity/Users/Users.razor.cs index 609412a..1f6c719 100644 --- a/src/Client/Pages/Identity/Users/Users.razor.cs +++ b/src/Client/Pages/Identity/Users/Users.razor.cs @@ -47,8 +47,6 @@ protected override async Task OnInitializedAsync() deleteAction: string.Empty, fields: new() { - new(user => user.FirstName, L["First Name"]), - new(user => user.LastName, L["Last Name"]), new(user => user.UserName, L["UserName"]), new(user => user.Email, L["Email"]), new(user => user.PhoneNumber, L["PhoneNumber"]), @@ -59,8 +57,6 @@ protected override async Task OnInitializedAsync() loadDataFunc: async () => (await UsersClient.GetListAsync()).ToList(), searchFunc: (searchString, user) => string.IsNullOrWhiteSpace(searchString) - || user.FirstName?.Contains(searchString, StringComparison.OrdinalIgnoreCase) == true - || user.LastName?.Contains(searchString, StringComparison.OrdinalIgnoreCase) == true || user.Email?.Contains(searchString, StringComparison.OrdinalIgnoreCase) == true || user.PhoneNumber?.Contains(searchString, StringComparison.OrdinalIgnoreCase) == true || user.UserName?.Contains(searchString, StringComparison.OrdinalIgnoreCase) == true, diff --git a/src/Client/Pages/Index.razor b/src/Client/Pages/Index.razor index 362ae97..73cec12 100644 --- a/src/Client/Pages/Index.razor +++ b/src/Client/Pages/Index.razor @@ -6,77 +6,19 @@ -
- -
-
- - @L["RewardsPlus"] - @L["RewardsPlus WebAssembly Client"] + @L["👋 Explore Rewards+ Loyalty"] - - - @L["Built with the goodness of"] MudBlazor @L["Component Library"]. - - - @L["Compatible with"] fullstackhero .NET WebAPI Boilerplate v1. - -
- @L["Get Started"] - @L["Star on GitHub"] + @L["Get Started"]
@L["Version 1.0"] - - - - @L["In case you are stuck anywhere or have any queries regarding this implementation, I have compiled a Quick Start Guide for you reference."] - @L["Read The Guide"] - - - - - - - - - @L["Here are few articles that should help you get started with Blazor."] - - - - - - - - - - - - @L["Application Claims of the currently logged in user."] - - @if (Claims is not null) - { - @foreach (var claim in Claims) - { - - - @claim.Type - - @claim.Value - - } - } - - - - - @L["Liked this Boilerplate? Star us on Github!"] + @L["Liked this? Star on Github!"]
diff --git a/src/Client/Shared/BaseLayout.razor.cs b/src/Client/Shared/BaseLayout.razor.cs index 0bb3d81..b5f4fbb 100644 --- a/src/Client/Shared/BaseLayout.razor.cs +++ b/src/Client/Shared/BaseLayout.razor.cs @@ -17,17 +17,10 @@ protected override async Task OnInitializedAsync() if (_themePreference == null) _themePreference = new ClientPreference(); SetCurrentTheme(_themePreference); - Snackbar.Add("Like this boilerplate? ", Severity.Normal, config => + Snackbar.Add("Always Welcome You", Severity.Normal, config => { config.BackgroundBlurred = true; - config.Icon = Icons.Custom.Brands.GitHub; - config.Action = "Star us on Github!"; config.ActionColor = Color.Primary; - config.Onclick = snackbar => - { - Navigation.NavigateTo("https://github.com/fullstackhero/blazor-wasm-boilerplate"); - return Task.CompletedTask; - }; }); } diff --git a/src/Client/Shared/MainLayout.razor b/src/Client/Shared/MainLayout.razor index 085f12f..8220502 100644 --- a/src/Client/Shared/MainLayout.razor +++ b/src/Client/Shared/MainLayout.razor @@ -9,58 +9,14 @@ @L["RewardsPlus"] - - @L["Sponsor"] - - - - @L["Community"] - @L["Discord"] - @L["Facebook"] - - LinkedIn - Buy Me a Coffee! - - Open Collective - - @L["Resources"] - @L["Documentation"] - - - + Link="https://github.com/bharathwajv/RewardsPlus" Target="_blank" /> - - - - -
- - -
- @L["Community"] - @L["Discord"] - @L["Facebook"] - - LinkedIn - @L["Resources"] - - @L["MudBlazor Documentation"] - - @L["Quick-Start Guide"] -
diff --git a/src/Client/Shared/NavMenu.razor b/src/Client/Shared/NavMenu.razor index 9ccb1ba..f536ee9 100644 --- a/src/Client/Shared/NavMenu.razor +++ b/src/Client/Shared/NavMenu.razor @@ -5,8 +5,6 @@ @L["Start"] @L["Home"] - @L["Getting Started"] @if (_canViewHangfire) { @L["Hangfire"] diff --git a/src/Client/wwwroot/appsettings.json b/src/Client/wwwroot/appsettings.json index 704cf56..1a49bec 100644 --- a/src/Client/wwwroot/appsettings.json +++ b/src/Client/wwwroot/appsettings.json @@ -1,6 +1,6 @@ { "ApiBaseUrl": "https://localhost:5001/", - "AuthProvider": "Jwt", + "AuthProvider": "Jwt", "AzureAd": { "Authority": "https://login.microsoftonline.com/organizations", "ClientId": "", diff --git a/src/Client/wwwroot/index.html b/src/Client/wwwroot/index.html index 5ca6c95..10b4177 100644 --- a/src/Client/wwwroot/index.html +++ b/src/Client/wwwroot/index.html @@ -48,6 +48,7 @@ top: 50%; transform: translate(-50%, -50%) } +
@@ -55,9 +56,12 @@
- +
+ +
+
Getting things ready for you...
+
-
diff --git a/src/Host/.config/dotnet-tools.json b/src/Host/.config/dotnet-tools.json new file mode 100644 index 0000000..e80b80f --- /dev/null +++ b/src/Host/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "6.0.5", + "commands": [ + "dotnet-ef" + ] + } + } +} \ No newline at end of file