Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
# Conflicts:
#	angular/package.json
#	common.props
#	sample/MyAbpApp/src/MyAbpApp.Web/package.json
#	sample/MyAbpApp/src/MyAbpApp.Web/yarn.lock
#	test/EasyAbp.Abp.SettingUi.Domain.Tests/EasyAbp.Abp.SettingUi.Domain.Tests.csproj
#	test/EasyAbp.Abp.SettingUi.TestBase/EasyAbp.Abp.SettingUi.TestBase.csproj
  • Loading branch information
wakuflair committed May 6, 2021
2 parents c7f7350 + b832d59 commit 0b83925
Show file tree
Hide file tree
Showing 34 changed files with 60 additions and 57 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
regex_flags: 'gim'
search_string: '${{ steps.commonProps.outputs.content }}'

- name: dotnet restore
run: dotnet restore -s "https://api.nuget.org/v3/index.json"

- name: dotnet build
run: dotnet build -c Release

Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>

<AbpVersion>4.1.0</AbpVersion>
<AbpVersion>4.2.2</AbpVersion>

</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ stages:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '3.x'
version: '5.x'

- task: DotNetCoreCLI@2
displayName: 'restore'
Expand Down Expand Up @@ -94,7 +94,7 @@ stages:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '3.x'
version: '5.x'

- task: CmdLine@2
displayName: 'install dotnet-ef'
Expand Down
2 changes: 1 addition & 1 deletion common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>1.3.3</Version>
<Version>1.4.1</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Run following command in your ABP project root folder:
* EasyAbp.Abp.SettingUi.HttpApi.Client (Only [Tiered structure](https://docs.abp.io/en/abp/latest/Startup-Templates/Application#tiered-structure) is needed)
* EasyAbp.Abp.SettingUi.Web

1. Add `DependsOn(typeof(AbpSettingUiXxxModule))` attribute to configure the module dependencies. ([see how](https://github.com/EasyAbp/EasyAbpGuide/blob/master/How-To.md#add-module-dependencies))
1. Add `DependsOn(typeof(AbpSettingUiXxxModule))` attribute to configure the module dependencies. ([see how](https://github.com/EasyAbp/EasyAbpGuide/blob/master/docs/How-To.md#add-module-dependencies))

### Configure localization resource

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace MyAbpApp
typeof(AbpPermissionManagementApplicationContractsModule),
typeof(AbpTenantManagementApplicationContractsModule),
typeof(AbpObjectExtendingModule),
typeof(SettingUiApplicationContractsModule)
typeof(AbpSettingUiApplicationContractsModule)
)]
public class MyAbpAppApplicationContractsModule : AbpModule
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace MyAbpApp
typeof(AbpPermissionManagementApplicationModule),
typeof(AbpTenantManagementApplicationModule),
typeof(AbpFeatureManagementApplicationModule),
typeof(SettingUiApplicationModule),
typeof(AbpSettingUiApplicationModule),
typeof(AbpEmailingModule)
)]
public class MyAbpAppApplicationModule : AbpModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace MyAbpApp
typeof(AbpSettingManagementDomainSharedModule),
typeof(AbpTenantManagementDomainSharedModule)
)]
[DependsOn(typeof(SettingUiDomainSharedModule))]
[DependsOn(typeof(AbpSettingUiDomainSharedModule))]
public class MyAbpAppDomainSharedModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace MyAbpApp
typeof(AbpTenantManagementHttpApiModule),
typeof(AbpFeatureManagementHttpApiModule)
)]
[DependsOn(typeof(SettingUiHttpApiModule))]
[DependsOn(typeof(AbpSettingUiHttpApiModule))]
public class MyAbpAppHttpApiModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
Expand Down
12 changes: 6 additions & 6 deletions sample/MyAbpApp/src/MyAbpApp.Web/MyAbpAppWebModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace MyAbpApp.Web
typeof(AbpTenantManagementWebModule),
typeof(AbpAspNetCoreSerilogModule),
typeof(AbpSwashbuckleModule),
typeof(SettingUiWebModule)
typeof(AbpSettingUiWebModule)
)]
public class MyAbpAppWebModule : AbpModule
{
Expand Down Expand Up @@ -140,11 +140,11 @@ private void ConfigureVirtualFileSystem(IWebHostEnvironment hostingEnvironment)
options.FileSets.ReplaceEmbeddedByPhysical<MyAbpAppWebModule>(hostingEnvironment.ContentRootPath);
string moduleDir = Path.Combine(hostingEnvironment.ContentRootPath, $"..{sept}..{sept}..{sept}..{sept}src");
options.FileSets.ReplaceEmbeddedByPhysical<SettingUiDomainSharedModule>(Path.Combine(moduleDir, "EasyAbp.Abp.SettingUi.Domain.Shared"));
options.FileSets.ReplaceEmbeddedByPhysical<SettingUiDomainModule>(Path.Combine(moduleDir, "EasyAbp.Abp.SettingUi.Domain"));
options.FileSets.ReplaceEmbeddedByPhysical<SettingUiApplicationContractsModule>(Path.Combine(moduleDir, "EasyAbp.Abp.SettingUi.Application.Contracts"));
options.FileSets.ReplaceEmbeddedByPhysical<SettingUiApplicationModule>(Path.Combine(moduleDir, "EasyAbp.Abp.SettingUi.Application"));
options.FileSets.ReplaceEmbeddedByPhysical<SettingUiWebModule>(Path.Combine(moduleDir, "EasyAbp.Abp.SettingUi.Web"));
options.FileSets.ReplaceEmbeddedByPhysical<AbpSettingUiDomainSharedModule>(Path.Combine(moduleDir, "EasyAbp.Abp.SettingUi.Domain.Shared"));
options.FileSets.ReplaceEmbeddedByPhysical<AbpSettingUiDomainModule>(Path.Combine(moduleDir, "EasyAbp.Abp.SettingUi.Domain"));
options.FileSets.ReplaceEmbeddedByPhysical<AbpSettingUiApplicationContractsModule>(Path.Combine(moduleDir, "EasyAbp.Abp.SettingUi.Application.Contracts"));
options.FileSets.ReplaceEmbeddedByPhysical<AbpSettingUiApplicationModule>(Path.Combine(moduleDir, "EasyAbp.Abp.SettingUi.Application"));
options.FileSets.ReplaceEmbeddedByPhysical<AbpSettingUiWebModule>(Path.Combine(moduleDir, "EasyAbp.Abp.SettingUi.Web"));
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="NSubstitute" Version="4.2.2" />
<PackageReference Include="Shouldly" Version="3.0.2" />
<PackageReference Include="Shouldly" Version="4.0.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.extensibility.execution" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.26" />
<ProjectReference Include="..\MyAbpApp.Application.Tests\MyAbpApp.Application.Tests.csproj" />
<ProjectReference Include="..\..\src\MyAbpApp.Web\MyAbpApp.Web.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
namespace EasyAbp.Abp.SettingUi
{
[DependsOn(
typeof(SettingUiDomainSharedModule),
typeof(AbpSettingUiDomainSharedModule),
typeof(AbpDddApplicationContractsModule),
typeof(AbpAuthorizationModule)
)]
public class SettingUiApplicationContractsModule : AbpModule
public class AbpSettingUiApplicationContractsModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace EasyAbp.Abp.SettingUi.Authorization
{
public class SettingUiPermissions
{
public const string GroupName = "SettingUi";
public const string GroupName = "EasyAbp.Abp.SettingUi";
public const string ShowSettingPage = GroupName + ".ShowSettingPage";

public static string[] GetAll()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
namespace EasyAbp.Abp.SettingUi
{
[DependsOn(
typeof(SettingUiDomainModule),
typeof(SettingUiApplicationContractsModule),
typeof(AbpSettingUiDomainModule),
typeof(AbpSettingUiApplicationContractsModule),
typeof(AbpDddApplicationModule)
)]
public class SettingUiApplicationModule : AbpModule
public class AbpSettingUiApplicationModule : AbpModule
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ namespace EasyAbp.Abp.SettingUi
typeof(AbpUiModule),
typeof(AbpSettingManagementDomainSharedModule)
)]
public class SettingUiDomainSharedModule : AbpModule
public class AbpSettingUiDomainSharedModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpVirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded<SettingUiDomainSharedModule>(); });
Configure<AbpVirtualFileSystemOptions>(options => { options.FileSets.AddEmbedded<AbpSettingUiDomainSharedModule>(); });

Configure<AbpLocalizationOptions>(options =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace EasyAbp.Abp.SettingUi.Localization
{
[LocalizationResourceName("SettingUi")]
[LocalizationResourceName("EasyAbpAbpSettingUi")]
public class SettingUiResource
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
namespace EasyAbp.Abp.SettingUi
{
[DependsOn(
typeof(SettingUiDomainSharedModule),
typeof(AbpSettingUiDomainSharedModule),
typeof(AbpSettingManagementDomainModule)
)]
public class SettingUiDomainModule : AbpModule
public class AbpSettingUiDomainModule : AbpModule
{

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
namespace EasyAbp.Abp.SettingUi
{
[DependsOn(
typeof(SettingUiApplicationContractsModule),
typeof(AbpSettingUiApplicationContractsModule),
typeof(AbpHttpClientModule))]
public class SettingUiHttpApiClientModule : AbpModule
public class AbpSettingUiHttpApiClientModule : AbpModule
{
public const string RemoteServiceName = "SettingUi";
public const string RemoteServiceName = "EasyAbpAbpSettingUi";

public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddHttpClientProxies(
typeof(SettingUiApplicationContractsModule).Assembly,
typeof(AbpSettingUiApplicationContractsModule).Assembly,
RemoteServiceName
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/EasyAbp.Abp.SettingUi.HttpApi.Client/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<ConfigureAwait />
<ConfigureAwait ContinueOnCapturedContext="false"/>
</Weavers>
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
namespace EasyAbp.Abp.SettingUi
{
[DependsOn(
typeof(SettingUiApplicationContractsModule),
typeof(AbpSettingUiApplicationContractsModule),
typeof(AbpAspNetCoreMvcModule))]
public class SettingUiHttpApiModule : AbpModule
public class AbpSettingUiHttpApiModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(SettingUiHttpApiModule).Assembly);
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpSettingUiHttpApiModule).Assembly);
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/EasyAbp.Abp.SettingUi.HttpApi/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<ConfigureAwait />
<ConfigureAwait ContinueOnCapturedContext="false"/>
</Weavers>
8 changes: 4 additions & 4 deletions src/EasyAbp.Abp.SettingUi.HttpApi/SettingUiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

namespace EasyAbp.Abp.SettingUi
{
[RemoteService(Name = "SettingUi")]
[RemoteService(Name = "EasyAbpAbpSettingUi")]
[Area("settingUi")]
[Route("api/settingUi")]
[Route("api/setting-ui")]
public class SettingUiController : AbpController, ISettingUiAppService
{
private readonly ISettingUiAppService _service;
Expand All @@ -28,14 +28,14 @@ public virtual Task<List<SettingGroup>> GroupSettingDefinitions()
}

[HttpPut]
[Route("setSettingValues")]
[Route("set-setting-values")]
public virtual Task SetSettingValues(Dictionary<string, string> settingValues)
{
return _service.SetSettingValues(settingValues);
}

[HttpPut]
[Route("resetSettingValues")]
[Route("reset-setting-values")]
public virtual Task ResetSettingValues(List<string> settingNames)
{
return _service.ResetSettingValues(settingNames);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ namespace EasyAbp.Abp.SettingUi.Web
typeof(AbpAspNetCoreMvcUiThemeSharedModule),
typeof(AbpSettingManagementWebModule)
)]
[DependsOn(typeof(SettingUiHttpApiModule))]
public class SettingUiWebModule : AbpModule
[DependsOn(typeof(AbpSettingUiHttpApiModule))]
public class AbpSettingUiWebModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
PreConfigure<IMvcBuilder>(mvcBuilder =>
{
mvcBuilder.AddApplicationPartIfNotExists(typeof(SettingUiWebModule).Assembly);
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpSettingUiWebModule).Assembly);
});
}

public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpVirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<SettingUiWebModule>();
options.FileSets.AddEmbedded<AbpSettingUiWebModule>();
});

Configure<SettingManagementPageOptions>(options =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function ($) {

var service = easyAbp.abp.settingUi.settingUi;
var l = abp.localization.getResource("SettingUi");
var l = abp.localization.getResource("EasyAbpAbpSettingUi");

$("form").submit(function (e) {
e.preventDefault();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ItemGroup>
<ProjectReference Include="..\..\src\EasyAbp.Abp.SettingUi.Application\EasyAbp.Abp.SettingUi.Application.csproj" />
<ProjectReference Include="..\EasyAbp.Abp.SettingUi.Domain.Tests\EasyAbp.Abp.SettingUi.Domain.Tests.csproj" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace EasyAbp.Abp.SettingUi
{
[DependsOn(
typeof(SettingUiApplicationModule),
typeof(AbpSettingUiApplicationModule),
typeof(SettingUiDomainTestModule)
)]
public class SettingUiApplicationTestModule : AbpModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Volo.Abp.EntityFrameworkCore" Version="4.3.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace EasyAbp.Abp.SettingUi
*/
[DependsOn(
typeof(SettingUiTestBaseModule),
typeof(SettingUiDomainModule),
typeof(AbpSettingUiDomainModule),
typeof(AbpEntityFrameworkCoreModule)
)]
public class SettingUiDomainTestModule : AbpModule
Expand Down

0 comments on commit 0b83925

Please sign in to comment.