From c81536a91ab28fd3e2de9dca396e8e93a2108cda Mon Sep 17 00:00:00 2001
From: Hamza Albreem <94292623+braim23@users.noreply.github.com>
Date: Wed, 23 Mar 2022 16:26:25 +0300
Subject: [PATCH 01/90] open link in new tab quick fix
---
.../AbpIoLocalization/Www/Localization/Resources/en.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en.json b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en.json
index 2f2b4c8481..dbdd8b47ef 100644
--- a/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en.json
+++ b/abp_io/AbpIoLocalization/AbpIoLocalization/Www/Localization/Resources/en.json
@@ -183,7 +183,7 @@
"InstallABPCLIInfo": "ABP CLI is the fastest way to start a new solution with the ABP framework. Install the ABP CLI using a command line window:",
"DifferentLevelOfNamespaces": "You can use different levels of namespaces; e.g. BookStore, Acme.BookStore or Acme.Retail.BookStore.",
"ABPCLIExamplesInfo": "The new command creates a layered MVC application with Entity Framework Core as the database provider. However, it has additional options.",
- "SeeCliDocumentForMoreInformation": "Check out the ABP CLI document for more options or select the \"Direct Download\" tab above.",
+ "SeeCliDocumentForMoreInformation": "Check out the ABP CLI document for more options or select the \"Direct Download\" tab above.",
"Optional": "Optional",
"LocalFrameworkRef": "Keep the local project reference for the framework packages.",
"BlobStoring": "BLOB Storing",
From d5dc276f590da9f9ccbdabf60b2173c701ef84fa Mon Sep 17 00:00:00 2001
From: selman koc <64414348+skoc10@users.noreply.github.com>
Date: Thu, 24 Mar 2022 17:44:34 +0300
Subject: [PATCH 02/90] unit test added trx
---
nupkg/unit_test.ps1 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nupkg/unit_test.ps1 b/nupkg/unit_test.ps1
index 6f53d6c738..07cdfe3655 100644
--- a/nupkg/unit_test.ps1
+++ b/nupkg/unit_test.ps1
@@ -4,7 +4,7 @@
foreach($solution in $solutions) {
$solutionFolder = Join-Path $rootFolder $solution
Set-Location $solutionFolder
- dotnet test --no-build
+ dotnet test --no-build --logger trx
-}
\ No newline at end of file
+}
From ce45aea0b2fc53462bf26e5e449b3acc675781ed Mon Sep 17 00:00:00 2001
From: liangshiwei
Date: Mon, 4 Apr 2022 17:45:54 +0800
Subject: [PATCH 03/90] Some enhancements for Blazor UI
---
.../Pages/Identity/UserManagement.razor | 35 ++++++++----
.../Pages/Identity/UserManagement.razor.cs | 17 +++++-
.../PermissionManagementModal.razor.cs | 9 +++
.../EmailSettingGroupViewComponent.razor | 6 +-
.../EmailSettingGroupViewComponent.razor.cs | 56 +++++++++++++++++--
...ettingManagementBlazorAutoMapperProfile.cs | 4 +-
6 files changed, 108 insertions(+), 19 deletions(-)
diff --git a/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor b/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor
index 6fe89dd768..5b67c74784 100644
--- a/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor
+++ b/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor
@@ -89,11 +89,18 @@
@L["DisplayName:Password"]
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -203,11 +210,19 @@
@L["DisplayName:Password"]
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor.cs b/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor.cs
index 462ce6ec72..db9a718949 100644
--- a/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor.cs
+++ b/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor.cs
@@ -39,7 +39,8 @@ public partial class UserManagement
protected PageToolbar Toolbar { get; } = new();
private List UserManagementTableColumns => TableColumns.Get();
-
+ private TextRole _passwordTextRole = TextRole.Password;
+
public UserManagement()
{
ObjectMapperContext = typeof(AbpIdentityBlazorModule);
@@ -90,6 +91,7 @@ public partial class UserManagement
IsAssigned = x.IsDefault
}).ToArray();
+ ChangePasswordTextRole(TextRole.Password);
return base.OpenCreateModalAsync();
}
@@ -115,6 +117,7 @@ public partial class UserManagement
IsAssigned = userRoleNames.Contains(x.Name)
}).ToArray();
+ ChangePasswordTextRole(TextRole.Password);
await base.OpenEditModalAsync(entity);
}
catch (Exception ex)
@@ -211,6 +214,18 @@ public partial class UserManagement
return base.SetToolbarItemsAsync();
}
+
+ protected virtual void ChangePasswordTextRole(TextRole? textRole)
+ {
+ if (textRole == null)
+ {
+ ChangePasswordTextRole(_passwordTextRole == TextRole.Password ? TextRole.Text: TextRole.Password);
+ }
+ else
+ {
+ _passwordTextRole = textRole.Value;
+ }
+ }
}
public class AssignedRoleViewModel
diff --git a/modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components/PermissionManagementModal.razor.cs b/modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components/PermissionManagementModal.razor.cs
index 2a908140b5..6683690002 100644
--- a/modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components/PermissionManagementModal.razor.cs
+++ b/modules/permission-management/src/Volo.Abp.PermissionManagement.Blazor/Components/PermissionManagementModal.razor.cs
@@ -122,6 +122,7 @@ public partial class PermissionManagementModal
{
try
{
+
var updateDto = new UpdatePermissionsDto
{
Permissions = _groups
@@ -129,6 +130,14 @@ public partial class PermissionManagementModal
.Select(p => new UpdatePermissionDto { IsGranted = p.IsGranted, Name = p.Name })
.ToArray()
};
+
+ if (!updateDto.Permissions.Any(x => x.IsGranted))
+ {
+ if (!await Message.Confirm(L["RemoveAllPermissionsWarningMessage"].Value))
+ {
+ return;
+ }
+ }
await PermissionAppService.UpdateAsync(_providerName, _providerKey, updateDto);
diff --git a/modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Pages/SettingManagement/EmailSettingGroup/EmailSettingGroupViewComponent.razor b/modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Pages/SettingManagement/EmailSettingGroup/EmailSettingGroupViewComponent.razor
index 6037231df0..36d5857776 100644
--- a/modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Pages/SettingManagement/EmailSettingGroup/EmailSettingGroupViewComponent.razor
+++ b/modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Pages/SettingManagement/EmailSettingGroup/EmailSettingGroupViewComponent.razor
@@ -5,12 +5,12 @@
@if (EmailSettings != null)
{